From ed930338f7936630705c665cad9dd6d562344efc Mon Sep 17 00:00:00 2001 From: jvech Date: Wed, 30 Aug 2023 20:59:20 -0500 Subject: add: network read and write done json_read reactored --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e56ada6..7cbbd9c 100644 --- a/Makefile +++ b/Makefile @@ -22,10 +22,13 @@ build: $(OBJS) ${CC} ${DLIBS} -o ${BIN} ${OBJS} run: build - ./${BIN} train -a 1e-6 data/sample_data.json -e 150 + @./${BIN} train data/sample_data.json | tee data/train_history.txt + @./${BIN} predict data/sample_data.json | jq -r '.[] | [values[] as $$val | $$val] | @tsv' > ./data/net_data.tsv + @gnuplot -p utils/plot.gpi debug: build gdb -x utils/commands.gdb --tui --args ${BIN} train -a 230 data/sample_data.json -e 150 + gdb -x utils/commands.gdb --tui --args ${BIN} predict data/sample_data.json clean: @rm $(OBJS) $(OBJDIR) -rv -- cgit v1.2.3-70-g09d2