aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorjvech <jmvalenciae@unal.edu.co>2023-08-30 20:59:20 -0500
committerjvech <jmvalenciae@unal.edu.co>2023-08-30 20:59:20 -0500
commited930338f7936630705c665cad9dd6d562344efc (patch)
tree798051533e4bb52637dc9a7452e99b9903179af4 /Makefile
parent8daf85f463d159b2b69939233c18760d72b6f4ab (diff)
add: network read and write done json_read reactored
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
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
Feel free to download, copy and edit any repo