aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorjvech <jmvalenciae@unal.edu.co>2023-10-21 21:43:36 -0500
committerjvech <jmvalenciae@unal.edu.co>2023-10-21 21:43:36 -0500
commit17b2cf8dc274f950865911185fc4c6a9ccf915d5 (patch)
tree81f11089540264ebdf187ba028a58ed7f57a34c3 /Makefile
parent8abcac7b3b42609f349b8a9cb132bae9746ba576 (diff)
setup: man page improved
Documentation: Example sections was improved Files sections was added Fixes: default config filepath was fixed
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 856e3b4..4df3d18 100644
--- a/Makefile
+++ b/Makefile
@@ -35,6 +35,9 @@ uninstall:
rm -v $(BINPREFIX)/${BIN}
rm -v $(MANPREFIX)/man1/ml.1
+man: build
+ help2man -N ./ml -I doc/man.txt > doc/ml.1
+
run: build
@./${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
@@ -42,8 +45,8 @@ run: build
@gnuplot utils/plot.gpi
debug: build
- gdb -x utils/commands.gdb --tui --args ${BIN} train data/sample_data.json
- gdb -x utils/commands.gdb --tui --args ${BIN} predict data/sample_data.json
+ gdb -x utils/commands.gdb --tui --args ${BIN} train data/xor.json -e 100
+ @#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