Package weka.classifiers.trees.j48

Examples of weka.classifiers.trees.j48.HTreeModelSelection


   *
   * @param instances the data to train the classifier with
   * @throws Exception if classifier can't be built successfully
   */
  public void buildClassifier( Instances instances ) throws Exception {
    ModelSelection modSelection = new HDIGModelSelection( m_minNumObj, instances );

    if( !m_reducedErrorPruning ) {
      m_root = new C45PruneableClassifierTree( modSelection, !m_unpruned, m_CF, m_subtreeRaising, !m_noCleanup );
    } else {
      m_root = new PruneableClassifierTree( modSelection, !m_unpruned, m_numFolds, !m_noCleanup, m_Seed );
View Full Code Here


   * @throws Exception if classifier can't be built successfully
   */
  public void buildClassifier( Instances instances )
      throws Exception {

    ModelSelection modSelection;

    if( m_binarySplits ) {
      modSelection = new BinC45ModelSelection( m_minNumObj, instances );
    } else {
      modSelection = new C45ModelSelection( m_minNumObj, instances );
View Full Code Here

    // remove instances with missing class
    instances = new Instances(instances);
    instances.deleteWithMissingClass();
   
    ModelSelection modSelection;  

    if (m_binarySplits)
      modSelection = new BinC45ModelSelection(m_minNumObj, instances);
    else
      modSelection = new C45ModelSelection(m_minNumObj, instances);
View Full Code Here

   * @throws Exception if classifier can't be built successfully
   */
  public void buildClassifier(Instances instances)
       throws Exception {

    ModelSelection modSelection;

    if (m_binarySplits)
      modSelection = new BinC45ModelSelection(m_minNumObj, instances);
    else
      modSelection = new C45ModelSelection(m_minNumObj, instances);
View Full Code Here

    // remove instances with missing class
    instances = new Instances(instances);
    instances.deleteWithMissingClass();
   
    ModelSelection modSelection;  

    if (m_binarySplits)
      modSelection = new BinC45ModelSelection(m_minNumObj, instances, m_useMDLcorrection);
    else
      modSelection = new C45ModelSelection(m_minNumObj, instances, m_useMDLcorrection);
View Full Code Here

   * @throws Exception if classifier can't be built successfully
   */
  public void buildClassifier(Instances instances)
       throws Exception {

    ModelSelection modSelection;  

    if (m_binarySplits)
      modSelection = new BinC45ModelSelection(m_minNumObj, instances, m_useMDLcorrection);
    else
      modSelection = new C45ModelSelection(m_minNumObj, instances, m_useMDLcorrection);
View Full Code Here

    }

    int minNumInstances = 2;
 
    //create ModelSelection object, either for splits on the residuals or for splits on the class value
    ModelSelection modSelection; 
    if (m_splitOnResiduals) {
      modSelection = new ResidualModelSelection(minNumInstances);
    } else {
      modSelection = new C45ModelSelection(minNumInstances, filteredData, true);
    }
View Full Code Here

   * Returns default capabilities of the classifier.
   *
   * @return      the capabilities of this classifier
   */
  public Capabilities getCapabilities() {
    return new NBTreeClassifierTree(null).getCapabilities();
  }
View Full Code Here

  public void buildClassifier(Instances instances) throws Exception {
   
    NBTreeModelSelection modSelection =
      new NBTreeModelSelection(m_minNumObj, instances);

    m_root = new NBTreeClassifierTree(modSelection);
    m_root.buildClassifier(instances);
  }
View Full Code Here

   * @param instances the data to train with
   * @throws Exception if classifier can't be built successfully
   */
  public void buildClassifier(Instances instances) throws Exception {
   
    NBTreeModelSelection modSelection =
      new NBTreeModelSelection(m_minNumObj, instances);

    m_root = new NBTreeClassifierTree(modSelection);
    m_root.buildClassifier(instances);
  }
View Full Code Here

TOP

Related Classes of weka.classifiers.trees.j48.HTreeModelSelection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.