Package org.apache.mahout.df.split

Examples of org.apache.mahout.df.split.Split


    }
   
    int[] attributes = randomAttributes(rng, selected, m);
   
    // find the best split
    Split best = null;
    for (int attr : attributes) {
      Split split = igSplit.computeSplit(data, attr);
      if ((best == null) || (best.ig < split.ig)) {
        best = split;
      }
    }
   
View Full Code Here


    }
   
    int[] attributes = randomAttributes(rng, selected, m);
   
    // find the best split
    Split best = null;
    for (int attr : attributes) {
      Split split = igSplit.computeSplit(data, attr);
      if ((best == null) || (best.getIg() < split.getIg())) {
        best = split;
      }
    }
   
    boolean alreadySelected = selected[best.getAttr()];
View Full Code Here

      return new Leaf(data.get(0).label);

    int[] attributes = randomAttributes(data.getDataset(), rng, m);

    // find the best split
    Split best = null;
    for (int attr : attributes) {
      Split split = igSplit.computeSplit(data, attr);
      if (best == null || best.ig < split.ig)
        best = split;
    }

    if (data.getDataset().isNumerical(best.attr)) {
View Full Code Here

      // we tried all the attributes and could not split the data anymore
      return new Leaf(data.majorityLabel(rng));
    }

    // find the best split
    Split best = null;
    for (int attr : attributes) {
      Split split = igSplit.computeSplit(data, attr);
      if (best == null || best.getIg() < split.getIg()) {
        best = split;
      }
    }
   
    boolean alreadySelected = selected[best.getAttr()];
View Full Code Here

TOP

Related Classes of org.apache.mahout.df.split.Split

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.