Permalink
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (37 sloc) 1.93 KB
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<PMML xmlns="http://www.dmg.org/PMML-4_2">
<Header description="k-means clustering">
<Application name="Apache Spark MLlib" version="1.4.0-SNAPSHOT"/>
<Timestamp>2015-04-28T07:25:30</Timestamp>
</Header>
<DataDictionary numberOfFields="4">
<DataField name="field_0" optype="continuous" dataType="double"/>
<DataField name="field_1" optype="continuous" dataType="double"/>
<DataField name="field_2" optype="continuous" dataType="double"/>
<DataField name="field_3" optype="continuous" dataType="double"/>
</DataDictionary>
<ClusteringModel modelName="k-means" functionName="clustering" modelClass="centerBased" numberOfClusters="3">
<MiningSchema>
<MiningField name="field_0" usageType="active"/>
<MiningField name="field_1" usageType="active"/>
<MiningField name="field_2" usageType="active"/>
<MiningField name="field_3" usageType="active"/>
</MiningSchema>
<ComparisonMeasure kind="distance">
<squaredEuclidean/>
</ComparisonMeasure>
<ClusteringField field="field_0" compareFunction="absDiff"/>
<ClusteringField field="field_1" compareFunction="absDiff"/>
<ClusteringField field="field_2" compareFunction="absDiff"/>
<ClusteringField field="field_3" compareFunction="absDiff"/>
<Cluster name="cluster_0">
<Array n="4" type="real">6.8538461538461535 3.076923076923076 5.715384615384614 2.0538461538461537</Array>
</Cluster>
<Cluster name="cluster_1">
<Array n="4" type="real">5.883606557377049 2.740983606557377 4.388524590163936 1.4344262295081966</Array>
</Cluster>
<Cluster name="cluster_2">
<Array n="4" type="real">5.005999999999999 3.4180000000000006 1.4640000000000002 0.2439999999999999</Array>
</Cluster>
</ClusteringModel>
</PMML>