/** * Test method for this class * * @param args the commandline options */ public static void main(String[] args) { runCheck(new CheckClusterer(), args); } }
/** * Main method. * * @param argv the commandline options */ public static void main(String[] argv) { runClusterer(new Cobweb(), argv); } }
public void updateFinished() { if (m_canopy != null && !m_finalized) { m_canopy.updateFinished(); m_finalized = true; } }
/** * Initialize with the fartherst first centers * * @param data the training data * @throws Exception if a problem occurs */ protected void farthestFirstInit(Instances data) throws Exception { FarthestFirst ff = new FarthestFirst(); ff.setNumClusters(m_NumClusters); ff.buildClusterer(data); m_ClusterCentroids = ff.getClusterCentroids(); }
/** * Main method for testing this class. * * @param argv should contain the following arguments: * <p> * -t training file [-T test file] [-N number of clusters] [-S random * seed] */ public static void main(String[] argv) { runClusterer(new EM(), argv); } }
/** * tests whether the scheme declares a serialVersionUID. */ public void testSerialVersionUID() { boolean[] result; result = m_Tester.declaresSerialVersionUID(); if (!result[0]) fail("Doesn't declare serialVersionUID!"); }
/** * Main method for testing this class. * * @param argv should contain the following arguments: * <p> * -t training file [-N number of clusters] */ public static void main(String[] argv) { runClusterer(new FarthestFirst(), argv); } }
/** * Main method for testing this class. * * @param args the commandline options, use "-h" for help */ public static void main(String[] args) { runClusterer(new FilteredClusterer(), args); } }
/** * default constructor */ public Cobweb() { super(); m_SeedDefault = 42; setSeed(m_SeedDefault); }
/** * the default constructor. */ public SimpleKMeans() { super(); m_SeedDefault = 10; setSeed(m_SeedDefault); }
/** * Get the number of clusters from the base clusterer * * @return the number of clusters * @throws Exception if a problem occurs */ public int numberOfClusters() throws Exception { return m_model.numberOfClusters(); } }
/** * Returns the tip text for this property * * @return tip text for this property suitable for displaying in the * explorer/experimenter gui */ @Override public String seedTipText() { String result = super.seedTipText() + " Use -1 for no randomization."; return result; }
/** * Constructor. * **/ public EM() { super(); m_SeedDefault = 100; resetOptions(); }
@Override public double[] call() { return moveCentroid(m_centroidIndex, m_cluster, true, false); } }
/** * Contructs a MakeDensityBasedClusterer wrapping a given Clusterer. * * @param toWrap the clusterer to wrap around */ public MakeDensityBasedClusterer(Clusterer toWrap) { setClusterer(toWrap); }
/** * Initialize with the fartherst first centers * * @param data the training data * @throws Exception if a problem occurs */ protected void farthestFirstInit(Instances data) throws Exception { FarthestFirst ff = new FarthestFirst(); ff.setNumClusters(m_NumClusters); ff.buildClusterer(data); m_ClusterCentroids = ff.getClusterCentroids(); }
/** * Main method for testing this class. * * @param argv should contain the following arguments: * <p> * -t training file [-T test file] [-N number of clusters] [-S random * seed] */ public static void main(String[] argv) { runClusterer(new EM(), argv); } }
/** * tests whether the scheme declares a serialVersionUID. */ public void testSerialVersionUID() { boolean[] result; result = m_Tester.declaresSerialVersionUID(); if (!result[0]) fail("Doesn't declare serialVersionUID!"); }
/** * Returns the tip text for this property * * @return tip text for this property suitable for displaying in the * explorer/experimenter gui */ @Override public String seedTipText() { String result = super.seedTipText() + " Use -1 for no randomization."; return result; }