Skip to content

Instantly share code, notes, and snippets.

# collored less
set -xU LESS_TERMCAP_md (printf "\e[01;31m")
set -xU LESS_TERMCAP_me (printf "\e[0m")
set -xU LESS_TERMCAP_se (printf "\e[0m")
set -xU LESS_TERMCAP_so (printf "\e[01;44;33m")
set -xU LESS_TERMCAP_ue (printf "\e[0m")
set -xU LESS_TERMCAP_us (printf "\e[01;32m")
# go
set -x GOPATH $HOME/.go
@bilzard
bilzard / .xonshrc
Last active July 7, 2019 11:30
xonshrc
# vi風の操作
$VI_MODE = True
# Ctrl + D で終了しない
$IGNOREEOF = True
# tabではなく空白4つ
$INDENT = " "
# 補完時に大小区別しない
$CASE_SENSITIVE_COMPLETIONS = False
# 補完選択Enterで即実行しない
$COMPLETIONS_CONFIRM = True
@bilzard
bilzard / node_aws_blackbelt_online_seminar_aws_lambda_part4.md
Created May 31, 2019 04:13
Security consideration for your Lambda Functions

Note: AWS blackbelt online seminar - part4

Security consideration for your Lambda Functions

Speaker: 西谷 圭介, AWS Japan

Security assured by AWS

@bilzard
bilzard / node_aws_blackbelt_online_seminar_aws_lambda_part3.md
Created May 31, 2019 04:11
Anti-patterns & Best Practices in AWS Lambda

Note: AWS blackbelt online seminar - part3

Anti-patterns & Best Practices in AWS Lambda

Speaker: 西谷 圭介, AWS Japan

  • The only tunable parameter is MEMORY, but, in fact, it affects all computing resources ex. CPU usage
  • Reduce package size
@bilzard
bilzard / embed_youtube_video_to_markdown.md
Last active May 31, 2019 00:54
Markdown に Youtube の動画リンクを画像付きで埋め込む

Youtube のサムネイルを markdown に埋め込む

画像にリンクを張る

[![alt text](http://example.com/exampl.png)](http://example.com/link "title")

YouTube の動画のサムネイル画像を取得する

@bilzard
bilzard / terraform_switcher_config.fish
Created May 25, 2019 02:31
Terraform Switcher config for fish
# Terraform Switcher
function cdtfswitch
builtin cd $argv
set cdir $PWD
if test -f "$cdir/.tfswitchrc"
tfswitch
end
end
alias cd='cdtfswitch'

行列の固有値分解

行列の固有値分解

$$ A={a_{i,j}},\\ v^{(j)}={v_i},\\ V={v^{(1)},...,v^{(n)}}$$

@bilzard
bilzard / deep_learning_goodfellow_chap02.md
Last active May 17, 2019 00:06
数式を読むにはMathJaxに対応したブラウザのプラグインが必要です. https://chrome.google.com/webstore/detail/mathjax-plugin-for-github/ioemnmodlmafdkllaclgeombjnmnbima

『深層学習』本の落ち穂拾い的なやつ - 第2章 線形代数

はじめに

この本を読んで理解しずらかった部分を掘り下げています. ページ数を記載してあるものは、「原文」の方を指します.

数式をレンダリングするブラウザ拡張

GitHub や Gist で数式のレンダリングはできない。

以下の Issue で議論されているが、Issue は close されているので、当面 Github で実装される見込みはなさそう。 github/markup#897

以下のように、ブラウザ拡張でレンダリングすることができる。

[MathJax Plugin for Github]

2クラス分類を多クラス分類に拡張する

二値分類を多クラス分類に拡張するには以下の方法がある:

  • One-vs-.rest (OvR)
  • One-vs.-one (OvO)

One-vs-.rest (OvR)

「そのクラスに所属するか否か」を判定した二値判別機を各クラスごとに学習する.