-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make predict processes for ML more general #368
- Loading branch information
Showing
4 changed files
with
53 additions
and
7 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"id": "predict_ml_model_probabilities", | ||
"summary": "Predict class probabilities using a ML model", | ||
"description": "Applies a machine learning model to an array and predicts (class) probabilities for them.", | ||
"categories": [ | ||
"machine learning", | ||
"reducer" | ||
], | ||
"experimental": true, | ||
"parameters": [ | ||
{ | ||
"name": "data", | ||
"description": "An array of numbers.", | ||
"schema": { | ||
"type": "array", | ||
"items": { | ||
"type": [ | ||
"number", | ||
"null" | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "model", | ||
"description": "A ML model that can be trained with one of the ML processes such as ``fit_regr_random_forest()``.", | ||
"schema": { | ||
"type": "object", | ||
"subtype": "ml-model" | ||
} | ||
} | ||
], | ||
"returns": { | ||
"description": "The predicted (class) probabilities. Returns `null` if any of the given values in the array is a no-data value.", | ||
"schema": { | ||
"type": "array", | ||
"items": { | ||
"type": [ | ||
"number", | ||
"null" | ||
] | ||
} | ||
} | ||
} | ||
} |