@@ -48,39 +48,12 @@ public sealed partial class FastTreeTweedieTrainer
48
48
49
49
private SchemaShape . Column [ ] _outputColumns ;
50
50
51
- /// <summary>
52
- /// Initializes a new instance of <see cref="FastTreeTweedieTrainer"/>
53
- /// </summary>
54
- /// <param name="env">The private instance of <see cref="IHostEnvironment"/>.</param>
55
- /// <param name="labelColumn">The name of the label column.</param>
56
- /// <param name="featureColumn">The name of the feature column.</param>
57
- /// <param name="weightColumn">The name for the column containing the initial weight.</param>
58
- /// <param name="learningRate">The learning rate.</param>
59
- /// <param name="minDatapointsInLeaves">The minimal number of documents allowed in a leaf of a regression tree, out of the subsampled data.</param>
60
- /// <param name="numLeaves">The max number of leaves in each regression tree.</param>
61
- /// <param name="numTrees">Total number of decision trees to create in the ensemble.</param>
62
- public FastTreeTweedieTrainer ( IHostEnvironment env ,
63
- string labelColumn = DefaultColumnNames . Label ,
64
- string featureColumn = DefaultColumnNames . Features ,
65
- string weightColumn = null ,
66
- int numLeaves = Defaults . NumLeaves ,
67
- int numTrees = Defaults . NumTrees ,
68
- int minDatapointsInLeaves = Defaults . MinDocumentsInLeaves ,
69
- double learningRate = Defaults . LearningRates )
70
- : base ( env , TrainerUtils . MakeR4ScalarColumn ( labelColumn ) , featureColumn , weightColumn , null , numLeaves , numTrees , minDatapointsInLeaves , learningRate )
71
- {
72
- Host . CheckNonEmpty ( labelColumn , nameof ( labelColumn ) ) ;
73
- Host . CheckNonEmpty ( featureColumn , nameof ( featureColumn ) ) ;
74
-
75
- Initialize ( ) ;
76
- }
77
-
78
51
/// <summary>
79
52
/// Initializes a new instance of <see cref="FastTreeTweedieTrainer"/> by using the <see cref="Options"/> class.
80
53
/// </summary>
81
54
/// <param name="env">The instance of <see cref="IHostEnvironment"/>.</param>
82
55
/// <param name="options">Algorithm advanced settings.</param>
83
- public FastTreeTweedieTrainer ( IHostEnvironment env , Options options )
56
+ internal FastTreeTweedieTrainer ( IHostEnvironment env , Options options )
84
57
: base ( env , options , TrainerUtils . MakeR4ScalarColumn ( options . LabelColumn ) )
85
58
{
86
59
Initialize ( ) ;
0 commit comments