Streaming Live Events
When to Use Streaming vs. Batch Publishing
Stream Individual Inference Events
project = fdl.Project.from_name(name='your_project_name')
model = fdl.Model.from_name(name='your_model_name', project_id=project.id)
# A single event must still be passed as an array.
model.publish([
{
'customer_id': 1234,
'timestamp': 1710428785,
'CreditScore': 650,
'Geography': 'France',
'Gender': 'Female',
'Age': 45,
'Tenure': 2,
'Balance': 10000.0,
'NumOfProducts': 1,
'HasCrCard': 'Yes',
'isActiveMember': 'Yes',
'EstimatedSalary': 120000,
'probability_churned': 0.105,
'churn': 1
}
])Stream Small Batches of Events
Last updated
Was this helpful?