<commit_before>P= example_als_mcmc example_sgd example_sgd_bpr
VPATH = ../
OBJECTS = example_als_mcmc.o example_sgd example_sgd_bpr
INCLUDE = -I../include -L../bin -I../externals/CXSparse/Include -I../externals/OpenBLAS
CFLAGS = -std=c99 -g -Wall -O0 $(INCLUDE)
LDLIBS = -L../bin -lfastfm -L../externals/CXSparse/Lib -lcxsparse -L../externals/OpenBLAS -lblas -lm
CC = gcc

all: $(P)
	( cd .. ; $(MAKE) lib)


demo_lib:
	./example_sgd
	./example_sgd_bpr
	./example_als_mcmc

demo_cli: regression classification

regression:
	./../bin/fastfm data/train_regression data/test_regression \
		--task regression   \
		--rng-seed 1234     \
		--init-var=0.11     \
		--n-iter=123        \
		--solver='mcmc'     \
		--rank 7            \
		--l2-reg=.22

classification:
	./../bin/fastfm data/train_classification data/test_classification \
		--task classification\
		--solver='als'     \
		--l2-reg-w=.11     \
		--l2-reg-V=.22


ranking:
	./../bin/fastfm data/train_ranking data/test_ranking \
		--task ranking     \
		--train-pairs  data/train_pairs \
		--solver='sgd'     \
		--init-var=0.01     \
		--n-iter=2000      \
		--rank 2           \
		--l2-reg=0.5       \
		--step-size=0.002 \
		--test-predict data/ranking_predictions


.PHONY : clean
clean : 
	rm -f $(P) $(OBJECTS)
	rm -f *.o
<commit_msg>[Issue #85] Fix2 for demo make.<commit_after>P= example_als_mcmc example_sgd example_sgd_bpr
VPATH = ../
OBJECTS = example_als_mcmc.o example_sgd example_sgd_bpr
INCLUDE = -I../include -L../bin -I../externals/CXSparse/Include -I../externals/OpenBLAS
CFLAGS = -std=c99 -g -Wall -O0 $(INCLUDE)
LDLIBS = -L../bin -lfastfm -L../externals/CXSparse/Lib -lcxsparse -L../externals/OpenBLAS -lopenblas -lpthread -lm
CC = gcc

all: $(P)
	( cd .. ; $(MAKE) lib)


demo_lib:
	./example_sgd
	./example_sgd_bpr
	./example_als_mcmc

demo_cli: regression classification

regression:
	./../bin/fastfm data/train_regression data/test_regression \
		--task regression   \
		--rng-seed 1234     \
		--init-var=0.11     \
		--n-iter=123        \
		--solver='mcmc'     \
		--rank 7            \
		--l2-reg=.22

classification:
	./../bin/fastfm data/train_classification data/test_classification \
		--task classification\
		--solver='als'     \
		--l2-reg-w=.11     \
		--l2-reg-V=.22


ranking:
	./../bin/fastfm data/train_ranking data/test_ranking \
		--task ranking     \
		--train-pairs  data/train_pairs \
		--solver='sgd'     \
		--init-var=0.01     \
		--n-iter=2000      \
		--rank 2           \
		--l2-reg=0.5       \
		--step-size=0.002 \
		--test-predict data/ranking_predictions


.PHONY : clean
clean : 
	rm -f $(P) $(OBJECTS)
	rm -f *.o

{'fraction_non_alphanumeric': 0.17022086824067023, 'fraction_numerical': 0.030083777608530083, 'mean_word_length': 2.0797186400937866, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3655028', 'n_tokens_mistral': 1197, 'n_tokens_neox': 1058, 'n_words': 190}