- LibSVM形式
- Handle inbalanced dataset : AUC evaluation + scale_pos_weight + max_delta_step
- 過学習の解消
- モデルの複雑度
- max_depth : 木の最大深さ.大きくすると決定木は複雑になる
- min_child_weight : それぞれの葉に含まれる訓練データの重みの和(典型的には訓練データの個数そのもの)はこれ以上でなければならない/これ未満になるとき,ノードは分割されない.大きくすると決定木は単純になる
- gamma / min_split_loss : 葉1つあたりのloss.大きくすると決定木は単純になる
- lambda : L2ノルムの係数
- alpha : L1ノルムの係数
- モデルの複雑度
- eta / learning_rate (step size) : 葉の値の割引率.木が完成したのちに葉の値を割引き,残りの木に押し付ける残差を大きくする.lambdaは正則化によって葉の値を縮めるが,etaは後から直接割り引く.小さくすると学習が安定するが,より多くの木が必要になる(num_roundを大きくする)
公式からダウンロード or brew cask
.
This file contains 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
""" | |
Markdownの目次を生成するスクリプト. | |
日本語をエスケープしない+見出し行に含まれるスペースを丸めるスクリプトが見当たらなかったので. | |
利用例 | |
> md = '''# 欅 | |
## ぽん ![](badge1.svg) | |
## もん ![](badge2.svg)''' |
This file contains 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
# gitプロジェクトのときカレントブランチを取得 | |
function gbranch { | |
git branch 2>/dev/null | sed -n "s/\* \(.*\)/ [\1]/p" | |
} | |
# {username}@{hostname} {current directory} [git branch]$ | |
# プロンプトを表示するたびにgbranchが評価されるようシングルクォーテーションで囲む | |
PS1='\u@\h \w$(gbranch)$ ' |
GNU sed (stream editor) はsedスクリプトによって文字列を編集するソフトウェア.
sedスクリプトは [address]{command}
の形式で指定する.
{command}
は複数続けて指定できる.
This file contains 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
# ~/.bashrcが存在するならばsource (= .) | |
if [ -f ~/.bashrc ]; then | |
. ~/.bashrc | |
fi |
NewerOlder