@@ -31,14 +31,14 @@ private static IEnumerable<SweepableParam> BuildOnlineLinearArgsParams()
31
31
32
32
private static IEnumerable < SweepableParam > BuildTreeArgsParams ( )
33
33
{
34
- return new SweepableParam [ ]
35
- {
34
+ return new SweepableParam [ ]
35
+ {
36
36
new SweepableLongParam ( "NumLeaves" , 2 , 128 , isLogScale : true , stepSize : 4 ) ,
37
37
new SweepableDiscreteParam ( "MinDocumentsInLeafs" , new object [ ] { 1 , 10 , 50 } ) ,
38
38
new SweepableDiscreteParam ( "NumTrees" , new object [ ] { 20 , 100 , 500 } ) ,
39
39
new SweepableFloatParam ( "LearningRates" , 0.025f , 0.4f , isLogScale : true ) ,
40
40
new SweepableFloatParam ( "Shrinkage" , 0.025f , 4f , isLogScale : true ) ,
41
- } ;
41
+ } ;
42
42
}
43
43
44
44
private static IEnumerable < SweepableParam > BuildLbfgsArgsParams ( )
@@ -123,24 +123,22 @@ public static IEnumerable<SweepableParam> BuildPoissonRegressionParams()
123
123
public static IEnumerable < SweepableParam > BuildSdcaParams ( )
124
124
{
125
125
return new SweepableParam [ ] {
126
- new SweepableDiscreteParam ( "L2Const" , new object [ ] { null , 1e-7f , 1e-6f , 1e-5f , 1e-4f , 1e-3f , 1e-2f } ) ,
127
- new SweepableDiscreteParam ( "L1Threshold" , new object [ ] { null , 0f , 0.25f , 0.5f , 0.75f , 1f } ) ,
126
+ new SweepableDiscreteParam ( "L2Const" , new object [ ] { "<Auto>" , 1e-7f , 1e-6f , 1e-5f , 1e-4f , 1e-3f , 1e-2f } ) ,
127
+ new SweepableDiscreteParam ( "L1Threshold" , new object [ ] { "<Auto>" , 0f , 0.25f , 0.5f , 0.75f , 1f } ) ,
128
128
new SweepableDiscreteParam ( "ConvergenceTolerance" , new object [ ] { 0.001f , 0.01f , 0.1f , 0.2f } ) ,
129
- new SweepableDiscreteParam ( "MaxIterations" , new object [ ] { null , 10 , 20 , 100 } ) ,
129
+ new SweepableDiscreteParam ( "MaxIterations" , new object [ ] { "<Auto>" , 10 , 20 , 100 } ) ,
130
130
new SweepableDiscreteParam ( "Shuffle" , null , isBool : true ) ,
131
131
new SweepableDiscreteParam ( "BiasLearningRate" , new object [ ] { 0.0f , 0.01f , 0.1f , 1f } )
132
132
} ;
133
133
}
134
134
135
- public static IEnumerable < SweepableParam > BuildOrdinaryLeastSquaresParams ( )
136
- {
135
+ public static IEnumerable < SweepableParam > BuildOrdinaryLeastSquaresParams ( ) {
137
136
return new SweepableParam [ ] {
138
137
new SweepableDiscreteParam ( "L2Weight" , new object [ ] { 1e-6f , 0.1f , 1f } )
139
138
} ;
140
139
}
141
140
142
- public static IEnumerable < SweepableParam > BuildSgdParams ( )
143
- {
141
+ public static IEnumerable < SweepableParam > BuildSgdParams ( ) {
144
142
return new SweepableParam [ ] {
145
143
new SweepableDiscreteParam ( "L2Weight" , new object [ ] { 1e-7f , 5e-7f , 1e-6f , 5e-6f , 1e-5f } ) ,
146
144
new SweepableDiscreteParam ( "ConvergenceTolerance" , new object [ ] { 1e-2f , 1e-3f , 1e-4f , 1e-5f } ) ,
@@ -149,13 +147,12 @@ public static IEnumerable<SweepableParam> BuildSgdParams()
149
147
} ;
150
148
}
151
149
152
- public static IEnumerable < SweepableParam > BuildSymSgdParams ( )
153
- {
150
+ public static IEnumerable < SweepableParam > BuildSymSgdParams ( ) {
154
151
return new SweepableParam [ ] {
155
152
new SweepableDiscreteParam ( "NumberOfIterations" , new object [ ] { 1 , 5 , 10 , 20 , 30 , 40 , 50 } ) ,
156
- new SweepableDiscreteParam ( "LearningRate" , new object [ ] { null , 1e1f , 1e0f , 1e-1f , 1e-2f , 1e-3f } ) ,
153
+ new SweepableDiscreteParam ( "LearningRate" , new object [ ] { "<Auto>" , 1e1f , 1e0f , 1e-1f , 1e-2f , 1e-3f } ) ,
157
154
new SweepableDiscreteParam ( "L2Regularization" , new object [ ] { 0.0f , 1e-5f , 1e-5f , 1e-6f , 1e-7f } ) ,
158
- new SweepableDiscreteParam ( "UpdateFrequency" , new object [ ] { null , 5 , 20 } )
155
+ new SweepableDiscreteParam ( "UpdateFrequency" , new object [ ] { "<Auto>" , 5 , 20 } )
159
156
} ;
160
157
}
161
158
}
0 commit comments