...
This sample demonstrates how a model is generated out of a data set using the k-means algorithm. The sample uses a data set to generate a model, which is divided into two sets for training and testing.
Info |
---|
The K-Means algorithm generates a PMML supported model. |
Prerequisites
Follow the steps below to set up the prerequisites before you start.
...
The sample executes the generated model on the <ML_HOME>/samples/rest-apidefault/k-means/prediction-test
data set, and it prints the value [1]
as the prediction result In the CLI logs.