Generate the PMML representation for a kmeans object (cluster) from package stats. The
kmeans object (a cluster described by k centroids) is converted into a
PMML representation.
the name of the application that generated the PMML code.
description
a descriptive text for the Header element of the PMML code.
copyright
the copyright notice for the model.
transforms
data transformations represented in PMML via pmmlTransformations.
unknownValue
value to be used as the 'missingValueReplacement' attribute for all MiningFields.
algorithm.name
the variety of kmeans used.
...
further arguments passed to or from other methods.
Details
A kmeans object is obtained by applying the kmeans function from the stats
package. This method typically requires the user to normalize all the variables, these
operations can be done using the pmmlTransformations package so that the normalization
information is included in the pmml model format.