Table Of Contents

KMeansModel publish


publish(self)

[BETA] Creates a tar file that will be used as input to the scoring engine

Parameters:
Returns:

: dict

Returns the HDFS path to the trained model’s tar file

The publish method exports the KMeansModel and its implementation into a tar file. The tar file is then published on HDFS and this method returns the path to the tar file. The tar file serves as input to the scoring engine. This model can then be used to predict the cluster assignment of an observation.

Examples

See here for examples.