File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed
src/Microsoft.ML.StandardLearners/Standard Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ public sealed class Options : AveragedLinearOptions
66
66
/// <summary>
67
67
/// A custom <a href="tmpurl_loss">loss</a>.
68
68
/// </summary>
69
- public IClassificationLoss LossFunction ;
69
+ public IClassificationLoss LossFunction { get ; set ; }
70
70
71
71
/// <summary>
72
72
/// The <a href="tmpurl_calib">calibrator</a> for producing probabilities. Default is exponential (aka Platt) calibration.
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public sealed class Options : AveragedLinearOptions
39
39
[ TGUI ( Label = "Loss Function" ) ]
40
40
internal ISupportRegressionLossFactory RegressionLossFunctionFactory = new SquaredLossFactory ( ) ;
41
41
42
- public IRegressionLoss LossFunction ;
42
+ public IRegressionLoss LossFunction { get ; set ; }
43
43
44
44
internal override IComponentFactory < IScalarLoss > LossFunctionFactory => RegressionLossFunctionFactory ;
45
45
Original file line number Diff line number Diff line change @@ -1658,7 +1658,7 @@ public sealed class Options : BinaryOptionsBase
1658
1658
/// <value>
1659
1659
/// If unspecified, <see cref="LogLoss"/> will be used.
1660
1660
/// </value>
1661
- public ISupportSdcaClassificationLoss LossFunction ;
1661
+ public ISupportSdcaClassificationLoss LossFunction { get ; set ; }
1662
1662
}
1663
1663
1664
1664
internal SdcaNonCalibratedBinaryTrainer ( IHostEnvironment env ,
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ public sealed class Options : OptionsBase
55
55
/// <value>
56
56
/// If unspecified, <see cref="LogLoss"/> will be used.
57
57
/// </value>
58
- public ISupportSdcaClassificationLoss LossFunction ;
58
+ public ISupportSdcaClassificationLoss LossFunction { get ; set ; }
59
59
}
60
60
61
61
private readonly ISupportSdcaClassificationLoss _loss ;
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ public sealed class Options : OptionsBase
52
52
/// <value>
53
53
/// Defaults to <see cref="SquaredLoss"/>
54
54
/// </value>
55
- public ISupportSdcaRegressionLoss LossFunction ;
55
+ public ISupportSdcaRegressionLoss LossFunction { get ; set ; }
56
56
57
57
/// <summary>
58
58
/// Create the <see cref="Options"/> object.
You can’t perform that action at this time.
0 commit comments