Using C/C++, C#, and Java Code for Deployment
Practically all Statistica modules will generate C/C++, C#, and Java code for trained models, which can be incorporated into compiled programs to compute predictions or predicted classifications for new observations. Obviously, writing and debugging compiled programs requires some experience and experimentation to make sure that all information is passed and processed as expected. So, as a general initial recommendation, we strongly urge you to carefully verify the predictions computed from your specific compiled programs by comparing the results to those computed, for example, by the Rapid Deployment of Predictive Models module (which computes those predictions or predicted classifications based on PMML-based deployment files).
Here are a few general recommendations and caveats to consider when debugging such C/C++ programs that incorporate code generated from Statistica Data Miner modules for predictive data mining.
Procedure
Result
Categorical variables of type TEXT will be treated in the same manner as numeric variables with text values (codes). Usually, however, during the analyses the text-to-numeric-codes translation is done on-the-fly; i.e., numeric codes are assigned to text values as they are processed. There are two ways in which you can determine how the program made these assignments. You can either carefully review the results of the analyses (that generated the code) once more, and examine in any of the results spreadsheets how the text values are coded ( on the spreadsheet of predicted classifications, double-click on the column header for the predictions, and review the numeric values associated with the displayed text labels). A second method is to carefully review the actual generated C/C++, C#, or Java code that contains the codes (usually in an obvious location) used to process and correctly classify each input case.