public class MLKMeansModel extends Object implements Externalizable, PMMLModelContainer
KMeansModel
model.Constructor and Description |
---|
MLKMeansModel() |
MLKMeansModel(org.apache.spark.mllib.clustering.KMeansModel model) |
Modifier and Type | Method and Description |
---|---|
org.apache.spark.mllib.clustering.KMeansModel |
getModel() |
org.apache.spark.mllib.pmml.PMMLExportable |
getPMMLExportable() |
void |
readExternal(ObjectInput in) |
void |
setModel(org.apache.spark.mllib.clustering.KMeansModel model) |
void |
writeExternal(ObjectOutput out) |
public MLKMeansModel()
public MLKMeansModel(org.apache.spark.mllib.clustering.KMeansModel model)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public org.apache.spark.mllib.clustering.KMeansModel getModel()
public void setModel(org.apache.spark.mllib.clustering.KMeansModel model)
public org.apache.spark.mllib.pmml.PMMLExportable getPMMLExportable() throws MLPmmlExportException
getPMMLExportable
in interface PMMLModelContainer
MLPmmlExportException
Copyright © 2015 WSO2, Inc.. All Rights Reserved.