@@ -67,10 +67,22 @@ public sealed partial class FastTreeRankingTrainer
6767 /// <param name="featureColumn">The name of the feature column.</param>
6868 /// <param name="groupIdColumn">The name for the column containing the group ID. </param>
6969 /// <param name="weightColumn">The name for the column containing the initial weight.</param>
70+ /// <param name="numLeaves">The max number of leaves in each regression tree.</param>
71+ /// <param name="numTrees">Total number of decision trees to create in the ensemble.</param>
72+ /// <param name="minDocumentsInLeafs">The minimal number of documents allowed in a leaf of a regression tree, out of the subsampled data.</param>
73+ /// <param name="learningRate">The learning rate.</param>
7074 /// <param name="advancedSettings">A delegate to apply all the advanced arguments to the algorithm.</param>
71- public FastTreeRankingTrainer ( IHostEnvironment env , string labelColumn , string featureColumn , string groupIdColumn ,
72- string weightColumn = null , Action < Arguments > advancedSettings = null )
73- : base ( env , TrainerUtils . MakeR4ScalarLabel ( labelColumn ) , featureColumn , weightColumn , groupIdColumn , advancedSettings : advancedSettings )
75+ public FastTreeRankingTrainer ( IHostEnvironment env ,
76+ string labelColumn ,
77+ string featureColumn ,
78+ string groupIdColumn ,
79+ string weightColumn = null ,
80+ int numLeaves = Defaults . NumLeaves ,
81+ int numTrees = Defaults . NumTrees ,
82+ int minDocumentsInLeafs = Defaults . MinDocumentsInLeafs ,
83+ double learningRate = Defaults . LearningRates ,
84+ Action < Arguments > advancedSettings = null )
85+ : base ( env , TrainerUtils . MakeR4ScalarLabel ( labelColumn ) , featureColumn , weightColumn , groupIdColumn , numLeaves , numTrees , minDocumentsInLeafs , learningRate , advancedSettings : advancedSettings )
7486 {
7587 Host . CheckNonEmpty ( labelColumn , nameof ( labelColumn ) ) ;
7688 Host . CheckNonEmpty ( featureColumn , nameof ( featureColumn ) ) ;
0 commit comments