diff options
author | jvech <jmvalenciae@unal.edu.co> | 2024-07-18 21:42:38 -0500 |
---|---|---|
committer | jvech <jmvalenciae@unal.edu.co> | 2024-07-18 21:42:38 -0500 |
commit | 4a5b6b12040a87dd8319a735cc48f31a2d140e3a (patch) | |
tree | d82e7f1610de7d68710cf8d015bf554624453bd8 /tests/plots.gpi | |
parent | d6db47f94e9b72c551000326172219f4fe7a23a4 (diff) |
add: linear activation added
Diffstat (limited to 'tests/plots.gpi')
-rw-r--r-- | tests/plots.gpi | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/tests/plots.gpi b/tests/plots.gpi index 85fbf98..4fd11b0 100644 --- a/tests/plots.gpi +++ b/tests/plots.gpi @@ -11,10 +11,12 @@ predict_cmd = "<./ml predict %s -c %s | ".sprintf(json2tsv, "-") # -- data_gauss1d = "data/gauss1d.json" data_xor = "data/xor.json" +data_sine = "data/sine.json" # -- arch_gauss1d = "tests/architectures/gauss1d.cfg" arch_xor = "tests/architectures/xor.cfg" +arch_sine = "tests/architectures/sine.cfg" set ylabel arch_gauss1d @@ -26,12 +28,21 @@ unset ylabel plot sprintf(predict_cmd, data_gauss1d, arch_gauss1d) with lines title 'network',\ "<".sprintf(json2tsv, data_gauss1d) with lines title 'original' -set ylabel arch_xor +#set ylabel arch_xor +#set logscale x +#plot sprintf(train_cmd, data_xor, arch_xor) u 2:4 with lines title 'loss' +#unset logscale +#unset ylabel +# +#set table "/dev/stdout" +#plot "<".sprintf(json2tsv, data_xor) using 1:2:3 with table,\ +# sprintf(predict_cmd, data_xor, arch_xor) using 3 with table + +set ylabel arch_sine set logscale x -plot sprintf(train_cmd, data_xor, arch_xor) u 2:4 with lines title 'loss' +plot sprintf(train_cmd, data_sine, arch_sine) u 2:4 with lines title 'loss' unset logscale unset ylabel -set table "/dev/stdout" -plot "<".sprintf(json2tsv, data_xor) using 1:2:3 with table,\ - sprintf(predict_cmd, data_xor, arch_xor) using 3 with table +plot sprintf(predict_cmd, data_sine, arch_sine) with lines title 'network',\ + "<".sprintf(json2tsv, data_sine) with lines title 'original' |