localInstances = (Instances[])localModel().split(data);
Distribution savedDist = localModel().m_distribution; localModel().resetDistribution(data); localInstances = (Instances[])localModel().split(data); localModel().m_distribution = savedDist;
  private double getEstimatedErrorsForBranch(Instances data)        throws Exception {    Instances [] localInstances;    double errors = 0;    int i;    if (m_isLeaf)      return getEstimatedErrorsForDistribution(new Distribution(data));    else{      localInstances = 	(Instances[])localModel().split(data);      for (i=0;i<m_sons.length;i++)	errors = errors+	  son(i).getEstimatedErrorsForBranch(localInstances[i]);      return errors;    }  }