public void installLinearModels() throws Exception {
  Evaluation nodeModelEval;
  if (m_isLeaf) {
    buildLinearModel(m_indices);
  }
 else {
    if (m_left != null) {
      m_left.installLinearModels();
    }
    if (m_right != null) {
      m_right.installLinearModels();
    }
    buildLinearModel(m_indices);
  }
  nodeModelEval=new Evaluation(m_instances);
  nodeModelEval.evaluateModel(m_nodeModel,m_instances);
  m_rootMeanSquaredError=nodeModelEval.rootMeanSquaredError();
  if (!m_saveInstances) {
    m_instances=new Instances(m_instances,0);
  }
}

public void installLinearModels ( ) throws Exception { Evaluation nodeModelEval ; if ( m_isLeaf ) { buildLinearModel ( m_indices ) ; } else { if ( m_left != null ) { m_left . installLinearModels ( ) ; } if ( m_right != null ) { m_right . installLinearModels ( ) ; } buildLinearModel ( m_indices ) ; } nodeModelEval = new Evaluation ( m_instances ) ; nodeModelEval . evaluateModel ( m_nodeModel , m_instances ) ; m_rootMeanSquaredError = nodeModelEval . rootMeanSquaredError ( ) ; if ( ! m_saveInstances ) { m_instances = new Instances ( m_instances , 0 ) ; } }
traverses the tree and installs linear models at each node . this method must be called if pruning is not to be performed .
