Then, we make an ajax call to 'api/PredictiveAnalytics/PostAnalyticsAction' giving as parameter the pmml filename and the data (where do you define window.imports??) |
“window.imports” is the input data in JSON format, which will be invoked from the ‘jsondata.min.js’ file. This file can be located from,
%LocalAppData%\Syncfusion\EssentialStudio\14.3.0.49\JavaScript\samples\web\scripts |
So from my understanding if I change the data (adding rows i.e.), I don't have to run again the R script to generate a new pmml, because the new data will be processed from the engine following the model in the PMML, inluding it in the results, is it right? |
Yes, you don’t have to run the R script to generate PMML each time (unless if you want to create a new model) and you can make use of the existing PMML generated and pass the input data to get the predicted results. |
But if I want to make a change in the model I need to manually run again the R script to produce a new model pmml, is it right? |
Yes, if you want to make change/create a new model, you can run again the R script to produce a new PMML. |
R script error:
but I get an error on the nnet() funtion:
Error in `contrasts<-`(`*tmp*`, value = contr.funs[1 + isOF[nn]]) :
contrasts can be applied only to factors with 2 or more levels |
We have checked our R script and we could reproduce the same error when we use the “Imports.csv” data shipped in the build.
Cause: This appears since the variable (it can be any – here it is “engineLocation”) in the data contain only one level and it is must that for any categorical variable there should be 2 or more levels.
R command: “str(data)” – will list the observation details and the variables presented in the data.
Fixes:
1. If you use the data “import85” (contains 2 levels in “engineLocation”) which was shipped with R package – “randomForest”, this error can be overcome.
2. Or, if you feel that field/variable (“engineLocation”) is not required for building the model, then it can be omitted from your data.
|
What PMML version is currently supported by the Syncfusion Predictive Analytics? |
Syncfusion’ s PMML execution engine currently supports PMML version – 4.1, 4.2 and 4.2.1.
To know more about our supported features and compatibilities, please refer to the below documentation links,
|
Syncfusion Predictive Analytics support all the operation I define in the R script (and translated into the pmml model) or there is some limitation?
I.e., if I insert some operations in the R script to aggregate data, this will be translated into PMML and the executed by the Syncfusion Predictive Analytics? |
We have built our execution engine based on the PMML standard of Data Mining Group (please refer dmg.org). This standard includes the PMML schema of existing machine learning models. So, you can use any statistical tools (like R, SAS, SPSS etc.) to generate your PMML and that can be evaluated using our PMML Execution Engine. |