From c312e729b9aee09a3bc4129e6b1049ff4e0c7a72 Mon Sep 17 00:00:00 2001 From: The-Ben Date: Wed, 24 Jan 2018 16:35:54 -0800 Subject: [PATCH] add negative numbers to training data --- model-development/generate-training-data.py | 4 ++-- model-development/predictor-gd.pkl | Bin 0 -> 703 bytes model-development/predictor-lr.pkl | Bin 0 -> 531 bytes 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 model-development/predictor-gd.pkl create mode 100644 model-development/predictor-lr.pkl diff --git a/model-development/generate-training-data.py b/model-development/generate-training-data.py index a01eadd..3aeb916 100644 --- a/model-development/generate-training-data.py +++ b/model-development/generate-training-data.py @@ -12,8 +12,8 @@ from tqdm import tqdm def add_two_random_ints(): - int_1 = randint(0,999) - int_2 = randint(0,999) + int_1 = randint(-9,99) + int_2 = randint(-9,99) return "%s,%s,%s\n" % (int_1 + int_2, int_1, int_2) number_cases = abs(int(sys.argv[1])) diff --git a/model-development/predictor-gd.pkl b/model-development/predictor-gd.pkl new file mode 100644 index 0000000000000000000000000000000000000000..4d0c6936271916c697c84e4bf6cb12d1762f7b36 GIT binary patch literal 703 zcmXX^y>HV%6t|Op1k*r(K%uli`AmSC1|-x0uuzaJVJQ+}u~<%L`x09?cYb&0RskV_ z)TqtEir|mv&I%(EVq*qI1{m4G`I0x>J-z$g@BQA#>vAZbrv!6qrwLUz8nB3@wva50 zv5-lK`W#0Iq0)NlKI)P_Cqgi8fzf;e<|`;Q{5iugQYHkH{UzlJ$T24o(xEwjQH3%> zaVm!}@0SYfZCLQDg;V5BXdiJb2`u`SiY0Vggji|mLq-23nMhJb;gIWmd|%iHe_r8m zn#C9_*IBvy^Y?0d!#7p14ToLluX2?66?LSof;(ZbBJ(=d%cvv(S2PO$24LCBxIqr*3pn{!UHA<9P>=w1tRe#9Cw}F7eCyC z`paqUY=>|p;e_jaD|9JkMV&jCYcejOKGs02*l?e~$+0dlWTc1SR7mqdHnc;=i9N_u znPATG&_bMqj0(x~P+G7&MOieOzQSqG7{Qsg8NkXOobAGD!!y0o2-ar6NDeb%!8tvT z-WHtq4A0zy3td=mcxBzodvLMS={%k&(}!nBxD<@rwI}!geVI)DIBWLXuf+|QC0q$K zlSFXUefaMCZm|-xan72I;99&KYh8_4iE4J?dLhaj!Hsx*+^#e~9XzYne?5Sk5;g+A crWnv{HIeF!NYoD4dQO{mYs+rItvs;*1HXRS=l}o! literal 0 HcmV?d00001 diff --git a/model-development/predictor-lr.pkl b/model-development/predictor-lr.pkl new file mode 100644 index 0000000000000000000000000000000000000000..69eb7415cdc38004f1c49f2a6cb74aad3b7b4a3d GIT binary patch literal 531 zcmZ{hKW`H;7{+}GEvca;1So&Y|CV$)=+=RXN|~rphMT-ucNeF3 zS4zAs6N5z-@CDzLeSwRqs)nO+n3h_G!>X`(taUu5Ld&#N#_B4y6ph&wRlQjkON<PuYfcDs9j-0~YE z7T1%LPBZyF)qcF%`#n2x!(uh@gwB=8dzCb}`5)gVjf+@Q+{#*=#?RB|gZ`wkgWD6_ ziE!6*>sSp0?y;JG(d25sayJClvPR~y?q`naL4=2Mrbk)Jx%&L&*P3SMyWb90Kb^fk z-^F8#CkdyH