This file contains 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": "Batch-centroid", | |
"description": "Create a dataset with a new column showing the cluster each instance belongs to", | |
"inputs": [ | |
{ | |
"name": "source-id", | |
"type": "source-id", | |
"description": "Identifier of the input source" | |
} |
This file contains 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
;; A simple function to get the max value in a list | |
(define (get-max xs) (reduce (lambda (x y) (if (> x y) x y)) (head xs) xs)) | |
;; Get feature names given ids | |
(define (feature-names dataset-id ids) | |
(let (fields (get (fetch dataset-id) "fields")) | |
(map (lambda (id) (get-in fields [id "name"])) ids))) | |
;; Create a dataset sample | |
(define (sample-dataset ds-id rate oob) |
This file contains 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": "Gradient Boosting", | |
"description": "Perform gradient boosting for classification", | |
"inputs": [{ | |
"name": "dataset-id", | |
"type": "dataset-id", | |
"description": "Select the training dataset" | |
}], | |
"outputs": [{ | |
"name": "model-array", |
This file contains 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": "Normalize Dataset", | |
"description": "Remove the top n anomalies from a dataset", | |
"inputs": [ | |
{"name": "dataset-id", "type": "dataset-id", "description": "Dataset Id"}, | |
{"name": "top-n", "type": "number", "description": "Top N Anomalies to Remove"} | |
], | |
"outputs": [ | |
{"name": "normalized-dataset", "type": "dataset-id", "description": "Normalized Dataset"} | |
], |