R/pmml.kmeans.R
pmml.kmeans.Rd
The kmeans object (a cluster described by k centroids) is converted into a PMML representation.
# S3 method for kmeans
pmml(
model,
model_name = "KMeans_Model",
app_name = "SoftwareAG PMML Generator",
description = "KMeans cluster model",
copyright = NULL,
model_version = NULL,
transforms = NULL,
missing_value_replacement = NULL,
algorithm_name = "KMeans: Hartigan and Wong",
...
)
A kmeans object.
A name to be given to the PMML model.
The name of the application that generated the PMML.
A descriptive text for the Header element of the PMML.
The copyright notice for the model.
A string specifying the model version.
Data transformations.
Value to be used as the 'missingValueReplacement' attribute for all MiningFields.
The variety of kmeans used.
Further arguments passed to or from other methods.
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 transforms so that the
normalization information is included in PMML.