No description, website, or topics provided.
Perl Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/Intern/ML
script
.gitignore
README.md
cpanfile

README.md

Intern::ML

Web開発におけるコンピュータサイエンス - 機械学習編 の課題雛形。

セットアップ

$ carton install

コマンドの実行

$ script/run <subcommand> <args>...

利用可能なコマンドは

$ script/run

で確認可能。

学習曲線の表示

データセットの大きさを変えて実行

コマンドの引数にデータセットの大きさをとるようにしてあれば、script/iterateを使って各大きさでコマンドを実行できます。

$ script/iterate <num> <subcommand> <args>...

とすると

$ script/run <subcommand> <args>... 1
$ script/run <subcommand> <args>... 2
$ script/run <subcommand> <args>... 3
...
$ script/run <subcommand> <args>... <num>

とするのとだいたい同じになります。(警告などを表示しない点が異なります。)

グラフの表示

訓練データセットとテストデータセットの精度もしくは誤り率をスペース区切りにしたものを、データの大きさごとに1行ずつ出力したものをscript/plotの標準入力に渡すと学習曲線のグラフを表示できます。

script/run <subcommand> <args>... <num>が大きさ<num>の精度を1行出力するだけのスクリプトになっていれば、script/iterateと併用して

$ script/iterate <num> <subcommand> <args>... | script/plot

などとできます。

グラフの表示にはgnuplotが必要です。