This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.
Machine Learning Extension
This extension provides Siddhi the capability to make predictions based on Machine Learning models. Supported functions of the ML extension are as follows.
Predict function
Syntax | <double|float|long|int|string|boolean>Â ml:predict(<string>Â pathToMLModel, <string>Â dataType) |
---|---|
Extension Type | Stream Processor |
Description | Returns an output event with the additional attribute that has the response variable name of the model, set with the predicted value, using the feature values extracted from the input event. This function uses the following input parameters.
|
Example |
|
Syntax | <double|float|long|int|string|boolean> ml:predict(<string> pathToMLModel, <string> dataType, <double> input) |
---|---|
Extension Type | Stream Processor |
Description | Returns an output event with the additional attribute that has the response variable name of the model, set with the predicted value, using the feature values extracted from the input event. This function uses the following input parameters.
|
Example | predict(‘registry:/_system/governance/mlmodels/indian-diabetes-model’, NumPregnancies, TSFT, DPF, BMI, DBP, PG2, Age, SI2) |