|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.base.node.mine.cluster.PMMLClusterTranslator
public class PMMLClusterTranslator
A Cluster translator class between KNIME and PMML. Modified from the original PMMLClusterHandler.java by Fabian Dill.
| Nested Class Summary | |
|---|---|
static class |
PMMLClusterTranslator.ComparisonMeasure
Constants indicating whether the squared euclidean or the euclidean comparison measure should be used. |
| Constructor Summary | |
|---|---|
PMMLClusterTranslator()
Constructor. |
|
PMMLClusterTranslator(PMMLClusterTranslator.ComparisonMeasure measure,
int nrOfClusters,
double[][] prototypes,
int[] clusterCoverage,
Set<String> colSpecs)
Constructor. |
|
| Method Summary | |
|---|---|
org.apache.xmlbeans.SchemaType |
exportTo(org.dmg.pmml40.PMMLDocument pmmlDoc,
PMMLPortObjectSpec spec)
Exports the translators state to a PMML document. |
PMMLClusterTranslator.ComparisonMeasure |
getComparisonMeasure()
|
String[] |
getLabels()
|
double[][] |
getPrototypes()
|
Set<String> |
getUsedColumns()
|
void |
initializeFrom(org.dmg.pmml40.PMMLDocument pmmlDoc)
Initializes the translator based on a PMML document. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PMMLClusterTranslator(PMMLClusterTranslator.ComparisonMeasure measure,
int nrOfClusters,
double[][] prototypes,
int[] clusterCoverage,
Set<String> colSpecs)
measure - the comparison measurenrOfClusters - number of clustersprototypes - the clustersclusterCoverage - the size of clusterscolSpecs - the fields used as cluster coordinatespublic PMMLClusterTranslator()
| Method Detail |
|---|
public void initializeFrom(org.dmg.pmml40.PMMLDocument pmmlDoc)
initializeFrom in interface PMMLTranslatorpmmlDoc - the PMML document
public org.apache.xmlbeans.SchemaType exportTo(org.dmg.pmml40.PMMLDocument pmmlDoc,
PMMLPortObjectSpec spec)
exportTo in interface PMMLTranslatorpmmlDoc - the PMML document to export tospec - the spec of the PMMLPortObject
public PMMLClusterTranslator.ComparisonMeasure getComparisonMeasure()
public String[] getLabels()
public double[][] getPrototypes()
public Set<String> getUsedColumns()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||