Skip to content

Train Ml

POST
/api/creative/lore/ml/train

Train or retrain ML models for the active project.

LoreMLTrainRequest

Request to train/retrain ML models.

object
force
Force

Force retrain even if recent

boolean

Successful Response

LoreMLTrainResponse

Response from ML training.

Per-module failures are no longer reported as a list — any phase failure raises LoreMLPhaseError and the conduit converts that to HandlerResult(success=False) with a structured error message naming the failing phase. A successful response means every phase persisted cleanly.

object
clustersFound
required
Clustersfound
integer
anomaliesDetected
required
Anomaliesdetected
integer
contradictionsFound
required
Contradictionsfound
integer
trainingDurationMs
required
Trainingdurationms
integer
maturityStats
Maturitystats
object
key
additional properties
integer
validationIssuesFound
Validationissuesfound
integer
0
coverageReportsGenerated
Coveragereportsgenerated
integer
0

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object