Ranking
Integration
id
feature1 (numeric)
feature2 (boolean)
scores (array)
relevance (array)
timestamp (datetime)
apr_model = aporia.create_model_version(
model_id="<MODEL_ID>", # You will need to create a model with this MODEL_ID in advance
model_version="v1",
model_type="ranking"
features={
...
},
predictions={
"scores": "array"
},
)apr_model.connect_serving(
data_source=my_data_source,
id_column="id",
timestamp_column="timestamp",
predictions={
# Prediction name -> Column name representing
"relevance": "scores"
}
)Last updated