From f16a9f299d0ec2e6592f50316c2c3577c054fff5 Mon Sep 17 00:00:00 2001 From: surajhell88 Date: Wed, 12 Jul 2017 09:48:09 +0000 Subject: [PATCH 1/3] Done --- build_model.py | 2 +- build_model.pyc | Bin 0 -> 1156 bytes tests/__init__.pyc | Bin 0 -> 155 bytes tests/test_build_model.pyc | Bin 0 -> 1560 bytes 4 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 build_model.pyc create mode 100644 tests/__init__.pyc create mode 100644 tests/test_build_model.pyc diff --git a/build_model.py b/build_model.py index 85aa1f8..480a46d 100644 --- a/build_model.py +++ b/build_model.py @@ -18,4 +18,4 @@ def buildLogisticRegression(): creditClf.fit(X=X_train, y=y_train) return creditClf -build = buildRandomForestClassifier \ No newline at end of file +build = buildLogisticRegression diff --git a/build_model.pyc b/build_model.pyc new file mode 100644 index 0000000000000000000000000000000000000000..853735427c97734d9feba649c63d1b125b311bb9 GIT binary patch literal 1156 zcmb_bO=}x55FPD$L~aA+)3v3MB!h&~zy*@@gE*(SER!3xW3J z{)GO}LVrLzqcsU7J!V5D;Lw12_U4g6_eAPGB7|_a%aC z7qUm7x8MgIx(B)+z!-20*<&u|VzNzznLqTLO$0&zgu;jV$~bQdiB~N;XX>is_KB0K z(slW+Cc>XuMeN*Q>z)#oYUNdWg>9*-+_%b9)5b?cw6kCc@1M{(rQuQvJ{Y1SmP@6t zA^HyRjr5Qw3D8oi+{c_3l)aerY0a4*QLJ)0-jvGMtuuUf$hM)j+n9$sK&--0=l?Hs%;ZE#;$f8AUNalP(69~b*A(Sra5>vNo)pCK>9v!8h>h{_- zs=&0UHKuc?9Uc~SSsH(6%~wokD`RzD5^1N+jekzNgw+52+#%X+Q2_Bw?2G&My&~$? zzBPzD^+h_;b!z)XJd+Mi=mln=lQ}N%~e}Xt*PkS87nCdK5VjKv2s|>EOz(K1~keq!ewjI zR;t8+)r{_r@+?2k=f+~5hlxBt|CqmhFFh}{wbB994OVwnNxm$}UFq4^AnneyfF7u6 exV&R(p_RoG{$DwkIufI3EXL6b@iH1DgXAy6bo~ne literal 0 HcmV?d00001 diff --git a/tests/__init__.pyc b/tests/__init__.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5d4cca479ac81231feb53d473b9d465483831747 GIT binary patch literal 155 zcmZSn%*%D{eQIPf0~9a-4mn69W literal 0 HcmV?d00001 diff --git a/tests/test_build_model.pyc b/tests/test_build_model.pyc new file mode 100644 index 0000000000000000000000000000000000000000..32de5ad0822f36f59804e8666d56705864b16223 GIT binary patch literal 1560 zcmcIkO>Y}F5FKje&(uv)80e)ah@5nZbm<|7qG@B~t4M=FF6!6_u%Nk=MVq@^kX#!o zq?2>c59+PIpr`(Z-g+q7Yx{Hh zHo6~7Ob05O*UP1kv81%_g3_}xY9CCxyYhO{Syz>{uZ+7P$uLjQ;(c_6m>Z}eD|n3$ zGo)spEwl}^1GM-vy4gM##5Lra7O3f{`JDQxM;E&kz91pQoanrus-SCF8$oYo4=DBN ze1p;^p-R+u-DBh19xd=M=&0Gh6}Wj5I2SC#qEB;#Z_zwQEr7F4^Md9XX93JDN;@>q zai2ba!TEQ2T5VIcL)S&t{cx}g{;zMz$c3GkvVf+Mel}c)KW&#F- zwP|XCocT^p)ujQ{KDGEI_NHQ6sGGIF#c zC2bn!b9C&xAlHXbg2UP0gSYR0`Rn(`@iA)tW_3I>2HZ@W)G3#bxQtz42TV#(;tGOD zpG8^MF&x|hM&d4S)AB%%i}m8my7eJF4FNqnsTfU2&yr;ez#`T`R6F?3#4dEi@= z#Yemirm{MX^X+2Dm_pjadx`Qq7zJ7bcFlp&xXCg#L%+!zoU_c9!yT+@#!LrpvNCXv zd~??d4d6t%i?1*mO?_=f5jXgJYMguYXmsSmMQoKeBaO>Dn#3xahuYV*O%I*DG$Y=_ znEUdUCc}1?xwExgCu8dIGtMXqu`l+-{azs+V7w{r^mfGE{2OF7`Rh`ajjByqCcZNz zYu!0a$NQN6$NR&OAM-t7U1J`I{PoMqb-09F)fh$^Gtc~yi`ZBdnjtQ3usY^l%pf0{ WX(sjMQk<{&>_n!0Pkbcq75@U)HIpd- literal 0 HcmV?d00001 From 24c6918a6f42ea9617957c1e78c084878c47fcd3 Mon Sep 17 00:00:00 2001 From: Suraj Jadhav Date: Mon, 16 Apr 2018 17:52:38 +0530 Subject: [PATCH 2/3] Update README.md --- README.md | 167 ++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 104 insertions(+), 63 deletions(-) diff --git a/README.md b/README.md index e4e73f0..2ffd48b 100644 --- a/README.md +++ b/README.md @@ -1,63 +1,104 @@ -![GitHub Logo](https://s3.ap-south-1.amazonaws.com/greyatom-social/logo.png) - -## Let's Get Rolling - Student Pre-Read -Before this lesson, we recommend you go through -* [Integrated Development Environment](https://en.wikipedia.org/wiki/Integrated_development_environment) - -## Learning Objectives - -After this lesson, you'll be able to -* Use Commit.Live Web App -* Use Commit.Live IDE -* Use Commit.Live CLI - -## Agenda - -* Why Commit.Live ? -* Comit.Live Platform -* Comit.Live Web Application -* Comit.Live IDE -* Comit.Live Command Line (CLI) -* Practice Exercise - -## Slides -@[gslides](1gEb00r1CyjxWignP0JC84UArH7qny05p-CQhMdBcu2o) - -## Download -* [Download for Linux](https://s3.ap-south-1.amazonaws.com/commit.live.ide/CommitLive-amd64.deb) - * If Atom is already installed this will replace your Atom, please save your settings if you have any - * To install use command `sudo dpkg -I ` -* [Download for MacOS X](https://s3.ap-south-1.amazonaws.com/commit.live.ide/CommitLive.dmg) - -## Practice Exercise - -* Let's do a small exercise to see how Commit.Live web application, IDE and CLI works together -* Navigate to web application dashboard and click on continue button under current course. This will take you to lesson page. -* To open this repo inside Commit.Live IDE click on `Open in app` button on lesson page and copy the open command which will look like below - - clive open fsdse-commit-live - -* Run above command in Commit.Live IDE terminal -* Let's quickly go through what we have in repo - - data - Contains dummy data set - test - Contains test cases - build_model.py - File which we are going to run and test - README.md - Readme file - -* build_model.py tries to solve one of ML problem using two algorithms below: - * RandomForestClassifier - * LogisticRegression -* We will first run test cases present in the test folder and see test case output.Open terminal and run test command - - clive test - -* This will run test cases against the build_model.py file. Your test case will fail ans say you can improve accuracy even more -* Now open build_model.py and change build method to buildLogisticRegression. You last line in build_model.py should look like below: - - build = buildLogisticRegression - -* Now again run test command again.This time your test case will pass -* To submit PR and changes to repo use below command: - - clive submit +

Form

+Props: + onValidSubmit : function | required + +

FormElement

+ - Props : + 1. valueLink : function(stateComponent, path, onUpdate[optional]) + 2. label : “First Name” + 3. required : false | optional | default - false + 4. helpText: string | optional + 5. hint : { + title : React Element, + description : React Element + } | optional + 6. validations : [{ + type: enum constant[error | warning] | default: error + validation: function(value: anything) => returns a boolean, + message: string | required + }] + 7. control : { + className : ‘’ | optional + type: ElementType, + settings : { + // all settings will act the props to material-ui/core element + } + } constant | required + + +

ElementTypes

+```Text``` + maxLength : number + placeholder: string + endAdornment: ReactElement + startAdornment: ReactElement + type: text|password + +```TexArea``` + maxLength : number + rows: number + placeholder: string + +`RadioGroup` +options: [{ +key: string +label: (ReactElement)/String, +}], +columns: number + +`CheckboxGroup` => (value will always be an array) +options: [{ +key: string +label: (ReactElement)/String, +}], +columns: number + +`Select` => (if multiple value will always be an array) +options: [{ +key: string +label: (ReactElement), +labelString: string | optional (Required if label is not string) +}], +multiple : boolean + +`SearchableSelect` => (if multiple value will always be an array) +options: [{ +key: string +label: (ReactElement), +labelString: string | optional (Required if label is not string) +}], +multi: boolean, + +`Switch` => (always returns boolean value) +onLabel : ReactElement +offLabel : ReactElement + +`DateTimePicker` +format : string +minDate : timestamp, +maxDate : timestamp + +`DatePicker` +format : string +minDate : timestamp, +maxDate : timestamp + +`FileUpload` +maxFiles : number | optional | defaults to 1 +fileFormats : string | required + +`AutoComplete` => (if multiple value will always be an array) +source : function (query){ +returns searchResult: { +total: number, +entities: [{}], +objects:{} +} +}, +renderer : function(entity, objects){ +returns React Element/String +} +labelRenderrer: function(entity, objects){ +returns React Element/String +} +multiple : boolean From d61159bdd62df947d97bdec76a32de6ed0c66683 Mon Sep 17 00:00:00 2001 From: Suraj Jadhav Date: Mon, 16 Apr 2018 18:02:18 +0530 Subject: [PATCH 3/3] Update README.md --- README.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 2ffd48b..f0b6425 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,13 @@ Props: onValidSubmit : function | required

FormElement

- - Props : - 1. valueLink : function(stateComponent, path, onUpdate[optional]) - 2. label : “First Name” - 3. required : false | optional | default - false - 4. helpText: string | optional - 5. hint : { + +Props : +1. valueLink : function(stateComponent, path, onUpdate[optional]) +2. label : “First Name” +3. required : false | optional | default - false +4. helpText: string | optional +5. hint : { title : React Element, description : React Element } | optional @@ -26,7 +27,8 @@ Props: } constant | required -

ElementTypes

+

ElementTypes

+ ```Text``` maxLength : number placeholder: string