From: Aaron A. <aa...@us...> - 2007-10-23 23:52:29
|
Update of /cvsroot/jboost/jboost/src/jboost/atree In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv31948/src/jboost/atree Modified Files: InstrumentedAlternatingTree.java Log Message: bunch of misc changes Index: InstrumentedAlternatingTree.java =================================================================== RCS file: /cvsroot/jboost/jboost/src/jboost/atree/InstrumentedAlternatingTree.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** InstrumentedAlternatingTree.java 13 Oct 2007 04:32:27 -0000 1.4 --- InstrumentedAlternatingTree.java 23 Oct 2007 23:52:26 -0000 1.5 *************** *** 159,162 **** --- 159,165 ---- Prediction[] tmpPred= null; initialWeights[0]= m_booster.newBag(m_examples); + int[][] tmpEx= new int[1][]; + tmpEx[0]= m_examples; + // To make it behave like boost texter. if (m_emulateBoosTexter) { *************** *** 166,173 **** } initialWeights[0].reset(); } - int[][] tmpEx= new int[1][]; - tmpEx[0]= m_examples; tmpPred= m_booster.getPredictions(initialWeights, tmpEx); m_booster.update(tmpPred, tmpEx); --- 169,180 ---- } initialWeights[0].reset(); + tmpPred= m_booster.getPredictions(initialWeights, tmpEx); + m_booster.update(tmpPred, tmpEx); + PredictorNode predictorNode= new PredictorNode(tmpPred[0], "R", + 0, null, null, 0); + m_predictors.add(predictorNode); + return; } tmpPred= m_booster.getPredictions(initialWeights, tmpEx); m_booster.update(tmpPred, tmpEx); |