Skip to content

Commit

Permalink
Merge pull request #121 from Open-EO/feature/oge48-catboost-probabili…
Browse files Browse the repository at this point in the history
…ties

Feature/oge48: Catboost Probabilities
  • Loading branch information
jdries committed Jun 13, 2022
2 parents e7e89ec + 9027037 commit b85e4b3
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
3 changes: 3 additions & 0 deletions openeo_driver/ProcessGraphDeserializer.py
Expand Up @@ -775,6 +775,9 @@ def predict_random_forest(args: dict, env: EvalEnv) -> SaveResult:
def predict_catboost(args: dict, env: EvalEnv) -> SaveResult:
pass

@process_registry_100.add_function(spec=read_spec("openeo-processes/experimental/predict_probabilities.json"))
def predict_probabilities(args: dict, env: EvalEnv) -> SaveResult:
pass

@process
def add_dimension(args: dict, env: EvalEnv) -> DriverDataCube:
Expand Down
@@ -0,0 +1,45 @@
{
"id": "predict_probabilities",
"summary": "Predict class probabilities from a machine learning model",
"description": "Applies a machine learning model to an array and predicts a probability for each class.",
"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 model object that can be trained with the processes ``fit_regr_<model_name>()`` (regression) and ``fit_class_<model_name>()`` (classification).",
"schema": {
"type": "object",
"subtype": "ml-model"
}
}
],
"returns": {
"description": "A probability for each class",
"schema": {
"type": "array",
"items": {
"type": [
"number",
"null"
]
}
}
}
}

0 comments on commit b85e4b3

Please sign in to comment.