Compare commits
2 Commits
180a72df9f
...
60cd7ef5bb
Author | SHA1 | Date |
---|---|---|
Starbeamrainbowlabs | 60cd7ef5bb | |
Starbeamrainbowlabs | c9989e776c |
|
@ -227,3 +227,12 @@ dist
|
||||||
.vscode-test
|
.vscode-test
|
||||||
|
|
||||||
# End of https://www.toptal.com/developers/gitignore/api/node,git,archives,images
|
# End of https://www.toptal.com/developers/gitignore/api/node,git,archives,images
|
||||||
|
|
||||||
|
# Created by https://www.toptal.com/developers/gitignore/api/libreoffice
|
||||||
|
# Edit at https://www.toptal.com/developers/gitignore?templates=libreoffice
|
||||||
|
|
||||||
|
### LibreOffice ###
|
||||||
|
# LibreOffice locks
|
||||||
|
.~lock.*#
|
||||||
|
|
||||||
|
# End of https://www.toptal.com/developers/gitignore/api/libreoffice
|
||||||
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
script_root="$(dirname "$(readlink -f "$0")")";
|
||||||
|
|
||||||
|
temp_dir="$(mktemp --tmpdir -d "gnuplot-XXXXXXX")";
|
||||||
|
|
||||||
|
on_exit() {
|
||||||
|
rm -rf "${temp_dir}";
|
||||||
|
}
|
||||||
|
trap on_exit EXIT;
|
||||||
|
|
||||||
|
graph_data_rmse() {
|
||||||
|
jq --raw-output "[ input_line_number - 1, (.mse | sqrt), (.val_mse | sqrt) ] | @tsv"
|
||||||
|
}
|
||||||
|
|
||||||
|
metrics_filename="${1}";
|
||||||
|
|
||||||
|
if [[ -z "${metrics_filename}" ]]; then
|
||||||
|
echo "Error: No metrics json file specified.";
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
|
||||||
|
tmpfile_metrics="${temp_dir}/data";
|
||||||
|
|
||||||
|
graph_data_rmse <"${metrics_filename}" >"${tmpfile_metrics}";
|
||||||
|
gnuplot -e "metric_name='Root Mean Squared Error'; graph_title='Film Genres Predictor - Root Mean Squared Error'; data_filename='${tmpfile_metrics}'" "${script_root}/tensorflow-metrics.plt"
|
|
@ -0,0 +1,9 @@
|
||||||
|
set title graph_title
|
||||||
|
set xlabel "Epochs"
|
||||||
|
set ylabel metric_name
|
||||||
|
set key title "Legend"
|
||||||
|
set grid
|
||||||
|
|
||||||
|
set datafile separator "\t"
|
||||||
|
set terminal png linewidth 3 size 1366,768
|
||||||
|
plot data_filename using 1:2 with lines title "Training", data_filename using 1:3 with lines title "Validation"
|
Loading…
Reference in New Issue