PMML Based Predictive Analytics Extension
This extension adds PMML based predictive analytic model compliance to Siddhi. It allows you to make predictions based on a predictive analytic model. Supported functions of the PMML extension are as follows.
Predict function
Syntax | < double | float|long|int|string|boolean > pmml:predict(<string> pathToPmmlFile) |
---|---|
Extension Type | Stream Processor |
Description | Processes the input stream attributes according to the defined PMML standard model and outputs the processed results together with the input stream attributes. This function uses the following input parameter.
The function returns the outputs defined in the output fields. The number of outputs can vary. |
Example |
This model is implemented to detect network intruders. The input event stream is processed by the execution plan that uses the pmml predictive model to detect whether a particular user is an intruder to the network or not. The output stream contains the processed query results that include the predicted responses together with the feature values extracted from the input event stream. |
Syntax | < double | float|long|int|string|boolean > pmml:predict(<string> pathToPmmlFile, <double|float|long|int|string|boolean> input ) |
---|---|
Extension Type | Stream Processor |
Description | Processes the input stream attributes according to the defined PMML standards model and outputs the processed results. This function uses the following input parameters.
This function returns the processed outputs defined in the query. The number of outputs can vary depending on the query definition. |
Examples |
This model is implemented to detect network intruders. The input event stream is processed by the execution plan that uses the pmml predictive model to detect whether a particular user is an intruder to the network or not. The output stream contains the processed query results that include the predicted responses. |