diff --git a/README.md b/README.md index e4e73f0..f0b6425 100644 --- a/README.md +++ b/README.md @@ -1,63 +1,106 @@ -![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 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 0000000..8537354 Binary files /dev/null and b/build_model.pyc differ diff --git a/tests/__init__.pyc b/tests/__init__.pyc new file mode 100644 index 0000000..5d4cca4 Binary files /dev/null and b/tests/__init__.pyc differ diff --git a/tests/test_build_model.pyc b/tests/test_build_model.pyc new file mode 100644 index 0000000..32de5ad Binary files /dev/null and b/tests/test_build_model.pyc differ