Last active
February 22, 2019 08:31
-
-
Save jaor/673e83c5ba1bca355e9fb62ac0075151 to your computer and use it in GitHub Desktop.
Model and eval input data
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "Model and eval input data", | |
| "kind": "script", | |
| "description": "Take a dataset, split, train and eval", | |
| "source_code": "script.whizzml", | |
| "inputs":[ | |
| { | |
| "name": "dataset", | |
| "type": "dataset-id", | |
| "description": "Data for training and evaluation" | |
| }], | |
| "outputs":[ | |
| { | |
| "name": "evaluation", | |
| "type": "evaluation-id", | |
| "description": "Evaluation over training dataset" | |
| }, | |
| { | |
| "name": "model", | |
| "type": "model-id", | |
| "description": "Model over test dataset" | |
| }] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (define full-name ((fetch dataset) "name")) | |
| (define train-name (str full-name " (training)")) | |
| (define test-name (str full-name " (test)")) | |
| (define [train-dataset test-dataset] | |
| (create-dataset-split dataset 0.8 "bigml" | |
| {"name" train-name} | |
| {"name" test-name})) | |
| (define model | |
| (create-model train-dataset)) | |
| (define evaluation | |
| (wait (create-evaluation model test-dataset))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment