This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function | |
import numpy as np | |
import chainer | |
import chainer.links as L | |
import chainer.optimizers as O | |
import data | |
import net |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---epoch 9--- | |
source label:-1, data:[0 0 0 0 0 0 0 0] | |
predoct label:-1, weight:[-0.39016744 1.07635597 0.21081006 0.18976978 -0.7392488 0.20338442 | |
-1.12607911 -1.17872689 0.41622946] | |
OK | |
source label:1, data:[0 1 0 0 0 0 0 1] | |
predoct label:1, weight:[-0.39016744 1.07635597 0.21081006 0.18976978 -0.7392488 0.20338442 | |
-1.12607911 -1.17872689 0.41622946] | |
OK | |
source label:1, data:[1 0 1 0 0 0 0 0] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -g status-bg black | |
set -g status-fg colour254 | |
# mouse setting | |
set-window-option -g mode-mouse on | |
set-option -g mouse-select-window on | |
set-option -g mouse-select-pane on | |
set-option -g mouse-resize-pane on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root=http://www.oreilly.co.jp/library/4873112699/ | |
files=`curl ${root} 2> /dev/null | grep pdf | cut -d \" -f2 | sed -n '2,21p'` | |
# download | |
printf '%s\n' $files | xargs -I{} wget ${root}{} | |
# merge | |
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=gnumake.pdf $files |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import chainer | |
import chainer.functions as F | |
import chainer.links as L | |
class DenseNet(chainer.Chain): | |
""" | |
https://github.com/liuzhuang13/DenseNet/blob/master/densenet.lua | |
""" | |
def __init__(self, output_num, in_shape, depth): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy | |
import six | |
import chainer | |
from chainer.functions.activation import lstm | |
from chainer.functions.array import concat | |
from chainer.functions.array import split_axis | |
from chainer import initializers | |
from chainer import link | |
from chainer import variable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from chainer.functions.activation import sigmoid | |
from chainer.functions.activation import tanh | |
from chainer.functions.array import reshape | |
from chainer.functions.array import split_axis | |
from chainer import link | |
from chainer.links.connection.convolution_2d import Convolution2D | |
from chainer import variable | |
from chainer.links.connection.convolution_2d import Convolution2D, _pair | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy | |
import cupy | |
from chainer.cuda import to_cpu, to_gpu | |
import pylab | |
xp = cupy | |
pi = numpy.float32(numpy.pi) | |
def plot(func, label, range=(-10, 10), size=10000): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set-option -g default-shell /home/skarita/local/bin/zsh | |
set-option -g history-limit 1000000 | |
set-option -g mouse on | |
set-option -g status-bg "colour23" | |
run-shell "powerline-daemon -q" | |
source $HOME/tool/virtualenvs/powerline/lib/python3.5/site-packages/powerline/bindings/tmux/powerline.conf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
status key command | |
Composition Backspace Backspace | |
Conversion Backspace Cancel | |
Precomposition Backspace Revert | |
Composition Ctrl a MoveCursorToBeginning | |
Conversion Ctrl a SegmentFocusFirst | |
Composition Ctrl Backspace Backspace | |
Conversion Ctrl Backspace Cancel | |
Precomposition Ctrl Backspace Undo | |
Composition Ctrl d MoveCursorRight |