Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

future proof load_ml_model #306

Open
soxofaan opened this issue Aug 20, 2024 · 1 comment
Open

future proof load_ml_model #306

soxofaan opened this issue Aug 20, 2024 · 1 comment
Assignees

Comments

@soxofaan
Copy link
Member

We have an old spec of load_ml_model in openeo-python-driver:

"id": "load_ml_model",
"summary": "Load a ML model",
"description": "Loads a machine learning model from a STAC Item.\n\nSuch a model could be trained and saved as part of a previous batch job with processes such as ``fit_random_forest()`` and ``save_ml_model()``.",
"categories": [
"machine learning",
"import"
],
"experimental": true,
"parameters": [
{
"name": "id",
"description": "The STAC Item to load the machine learning model from. The STAC Item must implement the `ml-model` extension.",
"schema": [
{
"title": "URL",
"type": "string",
"format": "uri",
"subtype": "uri",
"pattern": "^https?://"
},
{
"title": "Batch Job ID",
"description": "Loading a model by batch job ID is possible only if a single model has been saved by the job. Otherwise, you have to load a specific model from a batch job by URL.",
"type": "string",
"subtype": "job-id",
"pattern": "^[\\w\\-\\.~]+$"
},
{
"title": "User-uploaded Files",
"type": "string",
"subtype": "file-path",
"pattern": "^[^\r\n\\:'\"]+$"
}
]
}
],

this was based on an old version of load_ml_model in openeo-processes, which was removed by Open-EO/openeo-processes#417

The new version of load_ml_model is under construction at Open-EO/openeo-processes#441

Important detail: the single argument of old load_ml_model was named id (which will be weird because only urls will be passed in practice), while the new one is uri which makes more sense

@soxofaan
Copy link
Member Author

related ticket for python client:

@JeroenVerstraelen JeroenVerstraelen self-assigned this Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants