From: Sunsern C. <sch...@us...> - 2009-02-05 05:57:06
|
Update of /cvsroot/jboost/jboost/src/jboost/atree In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv9501/src/jboost/atree Modified Files: InstrumentedAlternatingTree.java Log Message: Added support for RobustBoost Index: InstrumentedAlternatingTree.java =================================================================== RCS file: /cvsroot/jboost/jboost/src/jboost/atree/InstrumentedAlternatingTree.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** InstrumentedAlternatingTree.java 24 Jan 2008 22:48:53 -0000 1.6 --- InstrumentedAlternatingTree.java 5 Feb 2009 05:56:57 -0000 1.7 *************** *** 16,19 **** --- 16,20 ---- import jboost.booster.Prediction; import jboost.booster.NormalizedPrediction; + import jboost.booster.RobustBinaryPrediction; import jboost.controller.Configuration; import jboost.controller.ConfigurationException; *************** *** 35,450 **** public class InstrumentedAlternatingTree extends ComplexLearner { [...1448 lines suppressed...] ! } ! /** Constructor to specify that only the root prediction should be updated. */ ! public AtreeCandidateSplit(double loss) { ! updateRoot= true; ! this.loss= loss; ! pNode= 0; ! builder= null; ! splitter= null; ! partition= null; ! } } /** Contains a SplitterBuilder and the number of the PredictorNode to which it belongs. */ class PredictorNodeSB { ! public int pNode; ! public SplitterBuilder[] SB; ! public PredictorNodeSB(int p, SplitterBuilder[] sb) { ! SB= sb; ! pNode= p; ! } } |