9
9
namespace Microsoft . ML
10
10
{
11
11
/// <summary>
12
- /// The trainer catalog extensions for the <see cref="OlsLinearRegressionTrainer "/> and <see cref="SymSgdClassificationTrainer "/>.
12
+ /// The trainer catalog extensions for the <see cref="OrdinaryLeastSquaresRegressionTrainer "/> and <see cref="SymbolicStochasticGradientDescentClassificationTrainer "/>.
13
13
/// </summary>
14
14
public static class HalLearnersCatalog
15
15
{
16
16
/// <summary>
17
- /// Predict a target using a linear regression model trained with the <see cref="OlsLinearRegressionTrainer "/>.
17
+ /// Predict a target using a linear regression model trained with the <see cref="OrdinaryLeastSquaresRegressionTrainer "/>.
18
18
/// </summary>
19
19
/// <param name="catalog">The <see cref="RegressionCatalog"/>.</param>
20
20
/// <param name="labelColumnName">The name of the label column.</param>
@@ -27,48 +27,48 @@ public static class HalLearnersCatalog
27
27
/// ]]>
28
28
/// </format>
29
29
/// </example>
30
- public static OlsLinearRegressionTrainer OrdinaryLeastSquares ( this RegressionCatalog . RegressionTrainers catalog ,
30
+ public static OrdinaryLeastSquaresRegressionTrainer OrdinaryLeastSquares ( this RegressionCatalog . RegressionTrainers catalog ,
31
31
string labelColumnName = DefaultColumnNames . Label ,
32
32
string featureColumnName = DefaultColumnNames . Features ,
33
33
string exampleWeightColumnName = null )
34
34
{
35
35
Contracts . CheckValue ( catalog , nameof ( catalog ) ) ;
36
36
var env = CatalogUtils . GetEnvironment ( catalog ) ;
37
- var options = new OlsLinearRegressionTrainer . Options
37
+ var options = new OrdinaryLeastSquaresRegressionTrainer . Options
38
38
{
39
39
LabelColumnName = labelColumnName ,
40
40
FeatureColumnName = featureColumnName ,
41
41
ExampleWeightColumnName = exampleWeightColumnName
42
42
} ;
43
43
44
- return new OlsLinearRegressionTrainer ( env , options ) ;
44
+ return new OrdinaryLeastSquaresRegressionTrainer ( env , options ) ;
45
45
}
46
46
47
47
/// <summary>
48
- /// Predict a target using a linear regression model trained with the <see cref="OlsLinearRegressionTrainer "/>.
48
+ /// Predict a target using a linear regression model trained with the <see cref="OrdinaryLeastSquaresRegressionTrainer "/>.
49
49
/// </summary>
50
50
/// <param name="catalog">The <see cref="RegressionCatalog"/>.</param>
51
- /// <param name="options">Algorithm advanced options. See <see cref="OlsLinearRegressionTrainer .Options"/>.</param>
51
+ /// <param name="options">Algorithm advanced options. See <see cref="OrdinaryLeastSquaresRegressionTrainer .Options"/>.</param>
52
52
/// <example>
53
53
/// <format type="text/markdown">
54
54
/// <]
56
56
/// ]]>
57
57
/// </format>
58
58
/// </example>
59
- public static OlsLinearRegressionTrainer OrdinaryLeastSquares (
59
+ public static OrdinaryLeastSquaresRegressionTrainer OrdinaryLeastSquares (
60
60
this RegressionCatalog . RegressionTrainers catalog ,
61
- OlsLinearRegressionTrainer . Options options )
61
+ OrdinaryLeastSquaresRegressionTrainer . Options options )
62
62
{
63
63
Contracts . CheckValue ( catalog , nameof ( catalog ) ) ;
64
64
Contracts . CheckValue ( options , nameof ( options ) ) ;
65
65
66
66
var env = CatalogUtils . GetEnvironment ( catalog ) ;
67
- return new OlsLinearRegressionTrainer ( env , options ) ;
67
+ return new OrdinaryLeastSquaresRegressionTrainer ( env , options ) ;
68
68
}
69
69
70
70
/// <summary>
71
- /// Predict a target using a linear binary classification model trained with the <see cref="SymSgdClassificationTrainer "/>.
71
+ /// Predict a target using a linear binary classification model trained with the <see cref="SymbolicStochasticGradientDescentClassificationTrainer "/>.
72
72
/// </summary>
73
73
/// <param name="catalog">The <see cref="BinaryClassificationCatalog"/>.</param>
74
74
/// <param name="labelColumnName">The name of the label column.</param>
@@ -81,43 +81,43 @@ public static OlsLinearRegressionTrainer OrdinaryLeastSquares(
81
81
/// ]]>
82
82
/// </format>
83
83
/// </example>
84
- public static SymSgdClassificationTrainer SymbolicStochasticGradientDescent ( this BinaryClassificationCatalog . BinaryClassificationTrainers catalog ,
84
+ public static SymbolicStochasticGradientDescentClassificationTrainer SymbolicStochasticGradientDescent ( this BinaryClassificationCatalog . BinaryClassificationTrainers catalog ,
85
85
string labelColumnName = DefaultColumnNames . Label ,
86
86
string featureColumnName = DefaultColumnNames . Features ,
87
- int numberOfIterations = SymSgdClassificationTrainer . Defaults . NumberOfIterations )
87
+ int numberOfIterations = SymbolicStochasticGradientDescentClassificationTrainer . Defaults . NumberOfIterations )
88
88
{
89
89
Contracts . CheckValue ( catalog , nameof ( catalog ) ) ;
90
90
var env = CatalogUtils . GetEnvironment ( catalog ) ;
91
91
92
- var options = new SymSgdClassificationTrainer . Options
92
+ var options = new SymbolicStochasticGradientDescentClassificationTrainer . Options
93
93
{
94
94
LabelColumnName = labelColumnName ,
95
95
FeatureColumnName = featureColumnName ,
96
96
} ;
97
97
98
- return new SymSgdClassificationTrainer ( env , options ) ;
98
+ return new SymbolicStochasticGradientDescentClassificationTrainer ( env , options ) ;
99
99
}
100
100
101
101
/// <summary>
102
- /// Predict a target using a linear binary classification model trained with the <see cref="SymSgdClassificationTrainer "/>.
102
+ /// Predict a target using a linear binary classification model trained with the <see cref="SymbolicStochasticGradientDescentClassificationTrainer "/>.
103
103
/// </summary>
104
104
/// <param name="catalog">The <see cref="BinaryClassificationCatalog"/>.</param>
105
- /// <param name="options">Algorithm advanced options. See <see cref="SymSgdClassificationTrainer .Options"/>.</param>
105
+ /// <param name="options">Algorithm advanced options. See <see cref="SymbolicStochasticGradientDescentClassificationTrainer .Options"/>.</param>
106
106
/// <example>
107
107
/// <format type="text/markdown">
108
108
/// <]
110
110
/// ]]>
111
111
/// </format>
112
112
/// </example>
113
- public static SymSgdClassificationTrainer SymbolicStochasticGradientDescent (
113
+ public static SymbolicStochasticGradientDescentClassificationTrainer SymbolicStochasticGradientDescent (
114
114
this BinaryClassificationCatalog . BinaryClassificationTrainers catalog ,
115
- SymSgdClassificationTrainer . Options options )
115
+ SymbolicStochasticGradientDescentClassificationTrainer . Options options )
116
116
{
117
117
Contracts . CheckValue ( catalog , nameof ( catalog ) ) ;
118
118
Contracts . CheckValue ( options , nameof ( options ) ) ;
119
119
var env = CatalogUtils . GetEnvironment ( catalog ) ;
120
- return new SymSgdClassificationTrainer ( env , options ) ;
120
+ return new SymbolicStochasticGradientDescentClassificationTrainer ( env , options ) ;
121
121
}
122
122
123
123
/// <summary>
0 commit comments