Package edu.uci.jforestsx.learning.trees

Examples of edu.uci.jforestsx.learning.trees.LeafInstances


  @Override
  public void init(int curLeafIndex, TreeLeafInstances treeLeafInstances, Sample trainSet) {
    this.init(curLeafIndex);
    totalWeightedCount = 0;
   
    LeafInstances leafInstances = treeLeafInstances.getLeafInstances(curLeafIndex);
    numInstancesInLeaf = leafInstances.end - leafInstances.begin;
   
    sumTargets = 0;
    for (int i = 0; i < numInstancesInLeaf; i++) {
      indices[i] = leafInstances.indices[leafInstances.begin + i];
View Full Code Here


    return learningRate * ((numerator + Constants.EPSILON) / (denomerator + Constants.EPSILON));
  }

  @Override
  protected void adjustOutputs(Tree tree, TreeLeafInstances treeLeafInstances) {
    LeafInstances leafInstances = new LeafInstances();
    for (int l = 0; l < tree.numLeaves; l++) {
      treeLeafInstances.loadLeafInstances(l, leafInstances);
      ((RegressionTree) tree).setLeafOutput(l, getAdjustedOutput(leafInstances));
    }
  }
View Full Code Here

    return (numerator + Constants.EPSILON) / (denomerator + Constants.EPSILON);
  }

  @Override
  protected void adjustOutputs(Tree tree, TreeLeafInstances treeLeafInstances) {
    LeafInstances leafInstances = new LeafInstances();
    for (int l = 0; l < tree.numLeaves; l++) {
      treeLeafInstances.loadLeafInstances(l, leafInstances);
      double adjustedOutput = getAdjustedOutput(leafInstances);
      ((RegressionTree) tree).setLeafOutput(l, adjustedOutput);
    }
View Full Code Here

  @Override
  public void init(int curLeafIndex, TreeLeafInstances treeLeafInstances, Sample trainSet) {
    this.init(curLeafIndex);
    totalWeightedCount = 0;
   
    LeafInstances leafInstances = treeLeafInstances.getLeafInstances(curLeafIndex);
    numInstancesInLeaf = leafInstances.end - leafInstances.begin;
   
    Arrays.fill(targetDist, 0);
    for (int i = 0; i < numInstancesInLeaf; i++) {
      indices[i] = leafInstances.indices[leafInstances.begin + i];
View Full Code Here

TOP

Related Classes of edu.uci.jforestsx.learning.trees.LeafInstances

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.