Multi-Label Classification
Integration
apr_model = aporia.create_model_version(
model_id="<MODEL_ID>",
model_version="v1",
model_type="multi-label"
features={
...
},
predictions={
"genres": "dict"
},
)Last updated
apr_model = aporia.create_model_version(
model_id="<MODEL_ID>",
model_version="v1",
model_type="multi-label"
features={
...
},
predictions={
"genres": "dict"
},
)Last updated
apr_model.log_prediction(
id="<PREDICTION_ID>",
features={
...
},
predictions={
"genres": {
"action": 0.8,
"horror": 0.7,
"thriller": 0.9,
"drama": 0.2,
...
}
},
)apr_model.log_actuals(
id="<PREDICTION_ID>",
actuals={
"genres": {
"action": 1.0,
"horror": 1.0,
"thriller": 1.0,
"drama": 0.0,
...
}
},
)