GithubHelp home page GithubHelp logo

blog's Introduction

My blog based on Pelican. Build Status

blog's People

Contributors

ih4cku avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar  avatar

blog's Issues

weight initialization

thesis writing setup

Basically, I want to use vim to write my thesis. And I want to have features below which are commonly needed when writing code:

  • auto completion
  • structural navigation
  • forward/backward search
  • ...

So, I choose to use vimtex plugin and qpdfview as the pdf viewer.

The forward/backward search feature depends on the vim client/server mode. So, I add a alias to create a vim server when start writing.

# in ~/.bashrc
alias vimtex='vim --servername LATEX'
# in qpdfview: Edit>Settings>Behavior>Source editor
vim --servername LATEX --remote-silent +%2<CR> %1

Build options:

let g:vimtex_latexmk_options='-xelatex -verbose -file-line-error -synctex=1 -interaction=nonstopmode'

Set the viewer:

if has("win32")
    let g:vimtex_view_general_viewer='SumatraPDF'
    let g:vimtex_view_general_options='-reuse-instance -forward-search @tex @line @pdf'
    let g:vimtex_view_general_options_latexmk='-reuse-instance'
elseif has("unix")
    let g:vimtex_view_general_viewer='qpdfview'
    let g:vimtex_view_general_options='--unique @pdf\#src:@tex:@line:@col'
    let g:vimtex_view_general_options_latexmk='--unique'
endif

Forward call after success building.

let g:vimtex_view_general_callback = 'ViewerCallback'
function! ViewerCallback(status) dict
    if a:status
        VimtexView
    endif
endfunction

vim and terminal

  • s: terminal shift ins
  • gvim v issue
  • surround not select whole word issue
  • python comment indent issue
  • open head file of #include
  • use SHIFT + h,j,k,l to switch tabs
  • scroll shell output

Graph, BFS & DFS

Many problems can be stated in term of paths in the graph constructed using the edges.

loss

  • multinomial logistic loss
  • cross entropy loss
  • softmax loss

vim echo

  • echo : normal message
  • echom : keep in messages list
  • echohl : using highlight, need change back to None after using
echohl WarningMsg | echo "warning" | echohl None

modify Poker II key mapping

The home, end, page up and page down keys are used frequently. However, the default positions of these keys are hard to reach. So I decide to make some alias for these keys. Thanks to the programmable feature of Poker II. The changes I made is:

  • a to home
  • d to end
  • w to page up
  • s to page down
  • x to delete

The functions are triggered by pressing the PN key and the corresponding key at the same time. Now it`s convenient for me. :)

vim todo

  • variable and option difference
  • let and set difference

batch normalization

Simple experiments of Batch Normalization on MNIST. The network set up follows the paper[1] which contains just 3 fully connected hidden layers.

Compared nonlinear units with Sigmoid and ReLU.

References:

[1] Ioffe, Sergey, and Christian Szegedy. "Batch normalization: Accelerating deep network training by reducing internal covariate shift." arXiv preprint arXiv:1502.03167 (2015).

autocommand groups

When using autocmd, Vim doesn't know if you want to replacing an existing one. So it just append the new operation to the event. This is when to use augroup.

Use autocmd! to clear previous group.

see: LVTHW - Autocommand Groups

sampling

spatial transform network

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.