backend.api.tasks.declarative_constraints_tasks¶
Contains the tasks for handling log skeletons and related operations.
Functions¶
Computes the declarative constraints and stores it in the app state. |
Module Contents¶
- backend.api.tasks.declarative_constraints_tasks.compute_and_store_declarative_constraints(app: fastapi.FastAPI, job_id: str, celonis: backend.celonis_connection.celonis_connection_manager.CelonisConnectionManager, min_support_ratio: float = 0.3, min_confidence_ratio: float = 0.75, fitness_score: float = 1.0) None ¶
Computes the declarative constraints and stores it in the app state.
- Parameters:
app – The FastAPI app instance.
job_id – The ID of the job to be computed.
celonis – The CelonisConnectionManager instance.
min_support_ratio – The minimum support ratio for the constraints.
min_confidence_ratio – The minimum confidence ratio for the constraints.
fitness_score – The fitness score for the constraints.