m_Successors[i].insertHoldOutInstance(inst, weight * m_Prop[i], this); m_Successors[(int) inst.value(m_Attribute)].insertHoldOutInstance( inst, weight, this); } else { m_Successors[0].insertHoldOutInstance(inst, weight, this); } else { m_Successors[1].insertHoldOutInstance(inst, weight, this);
m_Successors[i].insertHoldOutInstance(inst, weight * m_Prop[i], this); m_Successors[(int) inst.value(m_Attribute)].insertHoldOutInstance( inst, weight, this); } else { m_Successors[0].insertHoldOutInstance(inst, weight, this); } else { m_Successors[1].insertHoldOutInstance(inst, weight, this);
/** * Inserts hold-out set into tree. * * @param data the data to insert * @throws Exception if something goes wrong */ protected void insertHoldOutSet(Instances data) throws Exception { for (int i = 0; i < data.numInstances(); i++) { insertHoldOutInstance(data.instance(i), data.instance(i).weight(), this); } }
/** * Inserts hold-out set into tree. * * @param data the data to insert * @throws Exception if something goes wrong */ protected void insertHoldOutSet(Instances data) throws Exception { for (int i = 0; i < data.numInstances(); i++) { insertHoldOutInstance(data.instance(i), data.instance(i).weight(), this); } }