@@ -49,7 +49,7 @@ public sealed class OneVersusAllTrainer : MetaMulticlassTrainer<MulticlassPredic
49
49
private readonly Options _options ;
50
50
51
51
/// <summary>
52
- /// Options passed to OneVsAll.
52
+ /// Options passed to <see cref="OneVersusAllTrainer"/>
53
53
/// </summary>
54
54
internal sealed class Options : OptionsBase
55
55
{
@@ -78,26 +78,26 @@ internal OneVersusAllTrainer(IHostEnvironment env, Options options)
78
78
/// <param name="env">The <see cref="IHostEnvironment"/> instance.</param>
79
79
/// <param name="binaryEstimator">An instance of a binary <see cref="ITrainerEstimator{TTransformer, TPredictor}"/> used as the base trainer.</param>
80
80
/// <param name="calibrator">The calibrator. If a calibrator is not provided, it will default to <see cref="PlattCalibratorTrainer"/></param>
81
- /// <param name="labelColumn ">The name of the label colum.</param>
81
+ /// <param name="labelColumnName ">The name of the label colum.</param>
82
82
/// <param name="imputeMissingLabelsAsNegative">If true will treat missing labels as negative labels.</param>
83
- /// <param name="maxCalibrationExamples ">Number of instances to train the calibrator.</param>
83
+ /// <param name="maximumCalibrationExampleCount ">Number of instances to train the calibrator.</param>
84
84
/// <param name="useProbabilities">Use probabilities (vs. raw outputs) to identify top-score category.</param>
85
85
internal OneVersusAllTrainer ( IHostEnvironment env ,
86
86
TScalarTrainer binaryEstimator ,
87
- string labelColumn = DefaultColumnNames . Label ,
87
+ string labelColumnName = DefaultColumnNames . Label ,
88
88
bool imputeMissingLabelsAsNegative = false ,
89
89
ICalibratorTrainer calibrator = null ,
90
- int maxCalibrationExamples = 1000000000 ,
90
+ int maximumCalibrationExampleCount = 1000000000 ,
91
91
bool useProbabilities = true )
92
92
: base ( env ,
93
93
new Options
94
94
{
95
95
ImputeMissingLabelsAsNegative = imputeMissingLabelsAsNegative ,
96
- MaxCalibrationExamples = maxCalibrationExamples ,
96
+ MaxCalibrationExamples = maximumCalibrationExampleCount ,
97
97
} ,
98
- LoadNameValue , labelColumn , binaryEstimator , calibrator )
98
+ LoadNameValue , labelColumnName , binaryEstimator , calibrator )
99
99
{
100
- Host . CheckValue ( labelColumn , nameof ( labelColumn ) , "Label column should not be null." ) ;
100
+ Host . CheckValue ( labelColumnName , nameof ( labelColumnName ) , "Label column should not be null." ) ;
101
101
_options = ( Options ) Args ;
102
102
_options . UseProbabilities = useProbabilities ;
103
103
}
@@ -165,12 +165,12 @@ private IDataView MapLabels(RoleMappedData data, int cls)
165
165
return MapLabelsCore ( NumberDataViewType . Double , ( in double val ) => key == val , data ) ;
166
166
}
167
167
168
- throw Host . ExceptNotSupp ( $ "Label column type is not supported by OneVsAllTrainer : { lab . Type } ") ;
168
+ throw Host . ExceptNotSupp ( $ "Label column type is not supported by OneVersusAllTrainer : { lab . Type . RawType } ") ;
169
169
}
170
170
171
- /// <summary> Trains a <see cref="MulticlassPredictionTransformer{OneVsAllModelParameters }"/> model.</summary>
171
+ /// <summary> Trains a <see cref="MulticlassPredictionTransformer{OneVersusAllModelParameters }"/> model.</summary>
172
172
/// <param name="input">The input data.</param>
173
- /// <returns>A <see cref="MulticlassPredictionTransformer{OneVsAllModelParameters }"/> model./></returns>
173
+ /// <returns>A <see cref="MulticlassPredictionTransformer{OneVersusAllModelParameters }"/> model./></returns>
174
174
public override MulticlassPredictionTransformer < OneVersusAllModelParameters > Fit ( IDataView input )
175
175
{
176
176
var roles = new KeyValuePair < CR , string > [ 1 ] ;
@@ -203,7 +203,7 @@ public override MulticlassPredictionTransformer<OneVersusAllModelParameters> Fit
203
203
}
204
204
205
205
/// <summary>
206
- /// Contains the model parameters and prediction functions for OneVsAll .
206
+ /// Contains the model parameters and prediction functions for <see cref="OneVersusAllTrainer"/> .
207
207
/// </summary>
208
208
public sealed class OneVersusAllModelParameters :
209
209
ModelParametersBase < VBuffer < float > > ,
@@ -305,7 +305,7 @@ internal static OneVersusAllModelParameters Create(IHost host, bool useProbabili
305
305
}
306
306
307
307
/// <summary>
308
- /// Create a OneVsAll predictor from an array of predictors.
308
+ /// Create a <see cref="OneVersusAllModelParameters"/> from an array of predictors.
309
309
/// </summary>
310
310
[ BestFriend ]
311
311
internal static OneVersusAllModelParameters Create ( IHost host , TScalarPredictor [ ] predictors )
0 commit comments