Predict
AI-generatedSummary
Predict new samples using a trained sklearn voting classifier model.
Inputs
- modelData (required) — JSON string containing the trained model
- predictFeatureColumns (required) — Comma-separated list of feature column names
- pythonPath — Path to Python executable with scikit-learn installed
Output shape
array of prediction objects
Each object includes a 'prediction' field; if voting='soft' it also includes a 'probabilities' field.
Examples
Example 1: Classify new customer records
modelData = '<base64‑encoded pickled model>'; predictFeatureColumns = 'age,income,gender'