Table of Contents maxLevel 3
...
Info |
---|
You can stop the WSO2 ML server after generating the required model, since this process of using the model in a Java client does not require a running ML server. |
Building the sample
To build this sample, a Java project should be created as follows.
...
Code Block |
---|
INFO [MLModelUsageSample] - Algorithm Type : Classification INFO [MLModelUsageSample] - Algorithm Name : LOGISTIC_REGRESSION INFO [MLModelUsageSample] - Response Variable : Class INFO [MLModelUsageSample] - Features : [Feature [name=Age, index=7, type=NUMERICAL, imputeOption=DISCARD, include=true], Feature [name=BMI, index=5, type=NUMERICAL, imputeOption=DISCARD, include=true], Feature [name=DBP, index=2, type=NUMERICAL, imputeOption=DISCARD, include=true], Feature [name=DPF, index=6, type=NUMERICAL, imputeOption=DISCARD, include=true], Feature [name=NumPregnancies, index=0, type=NUMERICAL, imputeOption=DISCARD, include=true], Feature [name=PG2, index=1, type=NUMERICAL, imputeOption=DISCARD, include=true], Feature [name=SI2, index=4, type=NUMERICAL, imputeOption=DISCARD, include=true], Feature [name=TSFT, index=3, type=NUMERICAL, imputeOption=DISCARD, include=true]] Sep 03WARN [org.wso2.carbon.ml.core.impl.Predictor] - Metric Service is not available! Sep 24, 2015 93:3506:2028 AMPM com.github.fommil.netlib.BLAS <clinit> WARNING: Failed to load implementation from: com.github.fommil.netlib.NativeSystemBLAS Sep 0324, 2015 93:3506:2028 AMPM com.github.fommil.netlib.BLAS <clinit> WARNING: Failed to load implementation from: com.github.fommil.netlib.NativeRefBLAS INFO [MLModelUsageSample] - Predictions Feature values list 1 : [2, 84, 0, 0, 0, 0.0, 0.304, 21] INFO [MLModelUsageSample] - Prediction : 1 INFO [MLModelUsageSample] - Feature values list 2 : [0, 101, 80, 40, 0, 26, 0.5, 33] INFO [MLModelUsageSample] - Prediction : 0 |
Info |
---|
If you package this project as a JAR file, add the following JAR files that are found in the
|