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 (clean-up ds-id) | |
| (let (ds (fetch ds-id) | |
| fds (resource-fields ds) | |
| fds (map (lambda (id f) (assoc f "id" id)) (keys fds) (values fds)) | |
| cf? (lambda (fd) (< (count (field-distribution fd)) 2)) | |
| excl (map (lambda (f) (f "id")) (filter cf? fds))) | |
| (wait (create-dataset ds-id {"excluded_fields" excl})))) | |
| (define dataset (clean-up input-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
| { | |
| "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" |
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", | |
| "imports":[ | |
| "dataset"], | |
| "inputs":[ | |
| { | |
| "name": "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-id) "name")) | |
| (define train-name (str full-name " (training)")) | |
| (define test-name (str full-name " (test)")) | |
| (define [train-dataset-id test-dataset-id] | |
| (create-dataset-split dataset-id 0.8 "bigml" | |
| {"name" train-name} | |
| {"name" test-name})) | |
| (define model |
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": "Incremental anomalies", | |
| "kind": "script", | |
| "description": "Adds a new dataset to a collection and computes a set of anomalies for the new, extended data", | |
| "source_code": "script.whizzml", | |
| "imports":[ | |
| ], | |
| "inputs":[ | |
| { | |
| "name": "url", |
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": "Mark non-preferred", | |
| "kind": "script", | |
| "description": "Given a dataset, mark as non-preferred fields starting with a prefix", | |
| "source_code": "script.whizzml", | |
| "imports":[ | |
| ], | |
| "inputs":[ | |
| { | |
| "name": "dataset-id", |
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": "select-important", | |
| "kind": "script", | |
| "description": "Select the important features from an existig moddel to create a new one", | |
| "source_code": "script.whizzml", | |
| "imports":[ | |
| ], | |
| "inputs":[ | |
| { | |
| "name": "model-id", |
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 (model-range dataset from to) | |
| (create-model dataset {"range" [from to]})) | |
| (define (eval-range dataset model from to) | |
| (let (ev-id (create-evaluation dataset model {"range" [from to]})) | |
| [ev-id ((fetch (wait ev-id)) ["result" "model" "average_phi"])])) | |
| (define (size-evaluations dataset-id steps) | |
| (let (ds (fetch dataset-id) | |
| rows (ds "rows") |
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": "Name topics", | |
| "kind": "script", | |
| "description": "Give a name to all topics in a topicmodel", | |
| "source_code": "script.whizzml", | |
| "imports":[ | |
| ], | |
| "inputs":[ | |
| { | |
| "name": "topic-model", |
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": "Filtered timeseries", | |
| "kind": "script", | |
| "description": "Takes a filter field and an objective field and creates a timeseries for each category in the filter field, collecting all resulting forecasts in a new dataset", | |
| "source_code": "script.whizzml", | |
| "inputs":[ | |
| { | |
| "name": "dataset", | |
| "type": "dataset-id", | |
| "description": "Input dataset" |