benchmark.sh

来自「一个功能强大的神经网络分析程序」· Shell 代码 · 共 72 行

SH
72
字号
#!/bin/shdate;max_seconds_training=200;secs_between_reports=0.01;function benchmark_algorithm() {    ./quality $algo datasets/$prob.train datasets/$prob.test $prob.$algo.train.out $prob.$algo.test.out $n1 $n2 $sec_train $secs_between_reports    date;}function benchmark_problem() {    #rm -f *_fixed.net    algo="fann_rprop"; benchmark_algorithm;    #./quality_fixed $prob.$algo.train.out_fixed_train $prob.$algo.train.out_fixed_test $prob.$algo.fixed_train.out $prob.$algo.fixed_test.out *_fixed.net    algo="fann_rprop_stepwise"; benchmark_algorithm;    algo="fann_quickprop"; benchmark_algorithm;    #algo="fann_quickprop_stepwise"; benchmark_algorithm;    algo="fann_batch"; benchmark_algorithm;    #algo="fann_batch_stepwise"; benchmark_algorithm;    algo="fann_incremental"; benchmark_algorithm;    #algo="fann_incremental_stepwise"; benchmark_algorithm;    #comment out two following lines if the libraries are not available    algo="lwnn"; benchmark_algorithm;    algo="jneural"; benchmark_algorithm;}#comment out some of the lines below if some of the problems should not be benchmarkedprob="building"; n1=16; n2=0; sec_train=$max_seconds_training;benchmark_problem;prob="diabetes"; n1=4; n2=0; sec_train=$max_seconds_training;benchmark_problem;prob="gene"; n1=4; n2=2; sec_train=$max_seconds_training;benchmark_problem;prob="mushroom"; n1=32; n2=0; sec_train=$max_seconds_training;benchmark_problem;prob="parity8"; n1=16; n2=0; sec_train=$max_seconds_training;benchmark_problem;prob="parity13"; n1=26; n2=0; sec_train=$max_seconds_training;benchmark_problem;prob="pumadyn-32fm"; n1=10; n2=0; sec_train=30;benchmark_problem;prob="robot"; n1=96; n2=0; sec_train=$max_seconds_training;benchmark_problem;prob="soybean"; n1=16; n2=8; sec_train=$max_seconds_training;benchmark_problem;prob="thyroid"; n1=16; n2=8; sec_train=$max_seconds_training;benchmark_problem;prob="two-spiral"; n1=20; n2=10; sec_train=$max_seconds_training;benchmark_problem;./performance fann fann_performance.out 1 2048 2 20./performance fann_stepwise fann_stepwise_performance.out 1 2048 2 20./performance_fixed fann fann_fixed_performance.out 1 2048 2 20./performance lwnn lwnn_performance.out 1 2048 2 20./performance jneural jneural_performance.out 1 256 2 20gnuplot < gnuplot

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?