protected void canopyInit(Instances data) throws Exception {
  if (m_canopyClusters == null) {
    m_canopyClusters=new Canopy();
    m_canopyClusters.setNumClusters(m_NumClusters);
    m_canopyClusters.setSeed(getSeed());
    m_canopyClusters.setT2(getCanopyT2());
    m_canopyClusters.setT1(getCanopyT1());
    m_canopyClusters.setMaxNumCandidateCanopiesToHoldInMemory(getCanopyMaxNumCanopiesToHoldInMemory());
    m_canopyClusters.setPeriodicPruningRate(getCanopyPeriodicPruningRate());
    m_canopyClusters.setMinimumCanopyDensity(getCanopyMinimumCanopyDensity());
    m_canopyClusters.setDebug(getDebug());
    m_canopyClusters.buildClusterer(data);
  }
  m_ClusterCentroids=m_canopyClusters.getCanopies();
}

protected void canopyInit ( Instances data ) throws Exception { if ( m_canopyClusters == null ) { m_canopyClusters = new Canopy ( ) ; m_canopyClusters . setNumClusters ( m_NumClusters ) ; m_canopyClusters . setSeed ( getSeed ( ) ) ; m_canopyClusters . setT2 ( getCanopyT2 ( ) ) ; m_canopyClusters . setT1 ( getCanopyT1 ( ) ) ; m_canopyClusters . setMaxNumCandidateCanopiesToHoldInMemory ( getCanopyMaxNumCanopiesToHoldInMemory ( ) ) ; m_canopyClusters . setPeriodicPruningRate ( getCanopyPeriodicPruningRate ( ) ) ; m_canopyClusters . setMinimumCanopyDensity ( getCanopyMinimumCanopyDensity ( ) ) ; m_canopyClusters . setDebug ( getDebug ( ) ) ; m_canopyClusters . buildClusterer ( data ) ; } m_ClusterCentroids = m_canopyClusters . getCanopies ( ) ; }
initialize with the canopy centers of the canopy clustering method
