@@ -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,22 +123,24 @@ 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 [ ] { "<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 } ) ,
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 } ) ,
128
128
new SweepableDiscreteParam ( "ConvergenceTolerance" , new object [ ] { 0.001f , 0.01f , 0.1f , 0.2f } ) ,
129
- new SweepableDiscreteParam ( "MaxIterations" , new object [ ] { "<Auto>" , 10 , 20 , 100 } ) ,
129
+ new SweepableDiscreteParam ( "MaxIterations" , new object [ ] { null , 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 ( ) {
135
+ public static IEnumerable < SweepableParam > BuildOrdinaryLeastSquaresParams ( )
136
+ {
136
137
return new SweepableParam [ ] {
137
138
new SweepableDiscreteParam ( "L2Weight" , new object [ ] { 1e-6f , 0.1f , 1f } )
138
139
} ;
139
140
}
140
141
141
- public static IEnumerable < SweepableParam > BuildSgdParams ( ) {
142
+ public static IEnumerable < SweepableParam > BuildSgdParams ( )
143
+ {
142
144
return new SweepableParam [ ] {
143
145
new SweepableDiscreteParam ( "L2Weight" , new object [ ] { 1e-7f , 5e-7f , 1e-6f , 5e-6f , 1e-5f } ) ,
144
146
new SweepableDiscreteParam ( "ConvergenceTolerance" , new object [ ] { 1e-2f , 1e-3f , 1e-4f , 1e-5f } ) ,
@@ -147,12 +149,13 @@ public static IEnumerable<SweepableParam> BuildSgdParams() {
147
149
} ;
148
150
}
149
151
150
- public static IEnumerable < SweepableParam > BuildSymSgdParams ( ) {
152
+ public static IEnumerable < SweepableParam > BuildSymSgdParams ( )
153
+ {
151
154
return new SweepableParam [ ] {
152
155
new SweepableDiscreteParam ( "NumberOfIterations" , new object [ ] { 1 , 5 , 10 , 20 , 30 , 40 , 50 } ) ,
153
- new SweepableDiscreteParam ( "LearningRate" , new object [ ] { "<Auto>" , 1e1f , 1e0f , 1e-1f , 1e-2f , 1e-3f } ) ,
156
+ new SweepableDiscreteParam ( "LearningRate" , new object [ ] { null , 1e1f , 1e0f , 1e-1f , 1e-2f , 1e-3f } ) ,
154
157
new SweepableDiscreteParam ( "L2Regularization" , new object [ ] { 0.0f , 1e-5f , 1e-5f , 1e-6f , 1e-7f } ) ,
155
- new SweepableDiscreteParam ( "UpdateFrequency" , new object [ ] { "<Auto>" , 5 , 20 } )
158
+ new SweepableDiscreteParam ( "UpdateFrequency" , new object [ ] { null , 5 , 20 } )
156
159
} ;
157
160
}
158
161
}
0 commit comments