@@ -18,16 +18,16 @@ private protected BoostingFastTreeTrainerBase(IHostEnvironment env, TOptions opt
1818
1919 private protected BoostingFastTreeTrainerBase ( IHostEnvironment env ,
2020 SchemaShape . Column label ,
21- string featureColumn ,
22- string weightColumn ,
23- string groupIdColumn ,
24- int numLeaves ,
25- int numTrees ,
26- int minDatapointsInLeaves ,
21+ string featureColumnName ,
22+ string exampleWeightColumnName ,
23+ string rowGroupColumnName ,
24+ int numberOfLeaves ,
25+ int numberOfTrees ,
26+ int minimumExampleCountPerLeaf ,
2727 double learningRate )
28- : base ( env , label , featureColumn , weightColumn , groupIdColumn , numLeaves , numTrees , minDatapointsInLeaves )
28+ : base ( env , label , featureColumnName , exampleWeightColumnName , rowGroupColumnName , numberOfLeaves , numberOfTrees , minimumExampleCountPerLeaf )
2929 {
30- FastTreeTrainerOptions . LearningRates = learningRate ;
30+ FastTreeTrainerOptions . LearningRate = learningRate ;
3131 }
3232
3333 private protected override void CheckOptions ( IChannel ch )
@@ -40,10 +40,10 @@ private protected override void CheckOptions(IChannel ch)
4040 if ( FastTreeTrainerOptions . CompressEnsemble && FastTreeTrainerOptions . WriteLastEnsemble )
4141 throw ch . Except ( "Ensemble compression cannot be done when forcing to write last ensemble (hl)" ) ;
4242
43- if ( FastTreeTrainerOptions . NumLeaves > 2 && FastTreeTrainerOptions . HistogramPoolSize > FastTreeTrainerOptions . NumLeaves - 1 )
43+ if ( FastTreeTrainerOptions . NumberOfLeaves > 2 && FastTreeTrainerOptions . HistogramPoolSize > FastTreeTrainerOptions . NumberOfLeaves - 1 )
4444 throw ch . Except ( "Histogram pool size (ps) must be at least 2." ) ;
4545
46- if ( FastTreeTrainerOptions . NumLeaves > 2 && FastTreeTrainerOptions . HistogramPoolSize > FastTreeTrainerOptions . NumLeaves - 1 )
46+ if ( FastTreeTrainerOptions . NumberOfLeaves > 2 && FastTreeTrainerOptions . HistogramPoolSize > FastTreeTrainerOptions . NumberOfLeaves - 1 )
4747 throw ch . Except ( "Histogram pool size (ps) must be at most numLeaves - 1." ) ;
4848
4949 if ( FastTreeTrainerOptions . EnablePruning && ! HasValidSet )
@@ -61,12 +61,12 @@ private protected override void CheckOptions(IChannel ch)
6161 private protected override TreeLearner ConstructTreeLearner ( IChannel ch )
6262 {
6363 return new LeastSquaresRegressionTreeLearner (
64- TrainSet , FastTreeTrainerOptions . NumLeaves , FastTreeTrainerOptions . MinDocumentsInLeafs , FastTreeTrainerOptions . EntropyCoefficient ,
64+ TrainSet , FastTreeTrainerOptions . NumberOfLeaves , FastTreeTrainerOptions . MinimumExampleCountPerLeaf , FastTreeTrainerOptions . EntropyCoefficient ,
6565 FastTreeTrainerOptions . FeatureFirstUsePenalty , FastTreeTrainerOptions . FeatureReusePenalty , FastTreeTrainerOptions . SoftmaxTemperature ,
66- FastTreeTrainerOptions . HistogramPoolSize , FastTreeTrainerOptions . RngSeed , FastTreeTrainerOptions . SplitFraction , FastTreeTrainerOptions . FilterZeroLambdas ,
67- FastTreeTrainerOptions . AllowEmptyTrees , FastTreeTrainerOptions . GainConfidenceLevel , FastTreeTrainerOptions . MaxCategoricalGroupsPerNode ,
68- FastTreeTrainerOptions . MaxCategoricalSplitPoints , BsrMaxTreeOutput ( ) , ParallelTraining ,
69- FastTreeTrainerOptions . MinDocsPercentageForCategoricalSplit , FastTreeTrainerOptions . Bundling , FastTreeTrainerOptions . MinDocsForCategoricalSplit , FastTreeTrainerOptions . Bias ) ;
66+ FastTreeTrainerOptions . HistogramPoolSize , FastTreeTrainerOptions . Seed , FastTreeTrainerOptions . FeatureFractionPerSplit , FastTreeTrainerOptions . FilterZeroLambdas ,
67+ FastTreeTrainerOptions . AllowEmptyTrees , FastTreeTrainerOptions . GainConfidenceLevel , FastTreeTrainerOptions . MaximumCategoricalGroupCountPerNode ,
68+ FastTreeTrainerOptions . MaximumCategoricalSplitPointCount , BsrMaxTreeOutput ( ) , ParallelTraining ,
69+ FastTreeTrainerOptions . MinimumExampleFractionForCategoricalSplit , FastTreeTrainerOptions . Bundling , FastTreeTrainerOptions . MinimumExamplesForCategoricalSplit , FastTreeTrainerOptions . Bias ) ;
7070 }
7171
7272 private protected override OptimizationAlgorithm ConstructOptimizationAlgorithm ( IChannel ch )
@@ -94,7 +94,7 @@ private protected override OptimizationAlgorithm ConstructOptimizationAlgorithm(
9494 optimizationAlgorithm . ObjectiveFunction = ConstructObjFunc ( ch ) ;
9595 optimizationAlgorithm . Smoothing = FastTreeTrainerOptions . Smoothing ;
9696 optimizationAlgorithm . DropoutRate = FastTreeTrainerOptions . DropoutRate ;
97- optimizationAlgorithm . DropoutRng = new Random ( FastTreeTrainerOptions . RngSeed ) ;
97+ optimizationAlgorithm . DropoutRng = new Random ( FastTreeTrainerOptions . Seed ) ;
9898 optimizationAlgorithm . PreScoreUpdateEvent += PrintTestGraph ;
9999
100100 return optimizationAlgorithm ;
@@ -162,7 +162,7 @@ private protected override int GetBestIteration(IChannel ch)
162162 private protected double BsrMaxTreeOutput ( )
163163 {
164164 if ( FastTreeTrainerOptions . BestStepRankingRegressionTrees )
165- return FastTreeTrainerOptions . MaxTreeOutput ;
165+ return FastTreeTrainerOptions . MaximumTreeOutput ;
166166 else
167167 return - 1 ;
168168 }
0 commit comments