Skip to content

Commit e854271

Browse files
committed
Remove single value predictions and merge ml and dl
1 parent 1fc4a8e commit e854271

File tree

4 files changed

+17
-105
lines changed

4 files changed

+17
-105
lines changed

CHANGELOG.md

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1818
- `ml_fit_class_random_forest`
1919
- `ml_fit_regr_random_forest`
2020
- `ml_predict`
21-
- `ml_predict_probabilities`
2221
- `save_ml_model`
2322
- `unflatten_dimension`
2423
- `vector_buffer`

proposals/dl_predict.json

-45
This file was deleted.

proposals/ml_predict.json

+17-13
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "ml_predict",
3-
"summary": "Predict classification or regression values using ML",
4-
"description": "Applies a machine learning model to a data cube of input features and predicts output values or classes for it.",
3+
"summary": "Predict using ML",
4+
"description": "Applies a machine learning model to a data cube of input features and returns the predicted values.",
55
"categories": [
66
"machine learning"
77
],
@@ -17,30 +17,34 @@
1717
},
1818
{
1919
"name": "model",
20-
"description": "A ML model that was trained with one of the ML training processes such as ``ml_fit_class_random_forest()``.",
20+
"description": "A ML model that was trained with one of the ML training processes such as ``ml_fit_regr_random_forest()``.",
2121
"schema": {
2222
"type": "object",
2323
"subtype": "ml-model"
2424
}
2525
},
2626
{
27-
"name": "dimension",
28-
"description": "The name of the dimension that the model applies to. Fails with a `DimensionNotAvailable` exception if the specified dimension does not exist.",
27+
"name": "dimensions",
28+
"description": "One or more dimensions to apply the model to. The dimensions may get removed depending on the model. Fails with a `DimensionNotAvailable` exception if one of the specified dimensions does not exist.",
2929
"schema": {
30-
"type": "string"
30+
"type": "array",
31+
"minItems": 1,
32+
"items": {
33+
"type": "string"
34+
}
3135
}
3236
}
3337
],
3438
"returns": {
35-
"description": "The data cube with the predicted values. It removes the specified dimension.",
39+
"description": "A data cube with the predicted values. It removes the specified dimensions and adds new dimension for the predicted values. It has the name `predictions` and is of type `other`. If a single value is returned, the dimension has a single label with name `0`.",
3640
"schema": {
3741
"type": "object",
38-
"subtype": "datacube"
39-
}
40-
},
41-
"exceptions": {
42-
"DimensionNotAvailable": {
43-
"message": "A dimension with the specified name does not exist."
42+
"subtype": "datacube",
43+
"dimensions": [
44+
{
45+
"type": "other"
46+
}
47+
]
4448
}
4549
}
4650
}

proposals/ml_predict_probabilities.json

-46
This file was deleted.

0 commit comments

Comments
 (0)