Skip to content

Latest commit

 

History

History
17 lines (17 loc) · 1.17 KB

README.md

File metadata and controls

17 lines (17 loc) · 1.17 KB

annpmml

This is a library for deploying and scoring Artificial Neural Network model PMML v4.2 implemented in IBM SPSS Modeler software. With this library you can implement a model in software, export the PMML file and deploy the model in your own application.

How to Use

In your application code, you construct a NNModel object with path of proper PMML file:

NNModel model = new NNModel("E:/Drug.xml");

Then, you should create a dictionary for your data input:

Dictionary<string, object> input = new Dictionary<string, object>(); input.Add("Age", 23);
input.Add("Sex", "F");
input.Add("BP", "HIGH");
input.Add("Cholesterol", "HIGH");
input.Add("Na", 0.792535);
input.Add("K", 0.031258);

And finally with Predict function you can score your input:

model.Predict(input)
Console.WriteLine(model.Predict(input));