deseasion.backend.services.processing_model module
- class deseasion.backend.services.processing_model.ProcessingModelService
Bases:
object
- get_used_input_attributes(model_id) list[DataAttribute]
Get list of used input attributes in a model definition.
- Parameters:
model_id –
- Raises:
RequestError – 404, if model model_id does not exist.
- Returns:
- infer_model(mrsort)
Infer the MR-Sort model and update its parameters from the alternatives.
- Args:
mrsort: The MR-Sort object.
- load_mrsort_inference_data(model)
Decompose the geometries to generate the alternatives for the MR-Sort inference.
- task_process(model_id)
Start a celery task to process the model.
- Args:
model_id: The id of the processing model.
- Returns:
A celery task.
- update_stream_process(data_id)