@@ -13,7 +13,7 @@ private static IEnumerable<SweepableParam> BuildAveragedLinearArgsParams()
13
13
{
14
14
return new SweepableParam [ ]
15
15
{
16
- new SweepableDiscreteParam ( "LearningRate" , new object [ ] { 0.01 , 0.1 , 0.5 , 1.0 } ) ,
16
+ new SweepableDiscreteParam ( "LearningRate" , new object [ ] { 0.01f , 0.1f , 0.5f , 1.0f } ) ,
17
17
new SweepableDiscreteParam ( "DecreaseLearningRate" , new object [ ] { false , true } ) ,
18
18
new SweepableFloatParam ( "L2RegularizerWeight" , 0.0f , 0.4f ) ,
19
19
} ;
@@ -31,12 +31,12 @@ 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
+ } ;
40
40
}
41
41
42
42
private static IEnumerable < SweepableParam > BuildBoostedTreeArgsParams ( )
@@ -139,13 +139,15 @@ public static IEnumerable<SweepableParam> BuildSdcaParams()
139
139
} ;
140
140
}
141
141
142
- public static IEnumerable < SweepableParam > BuildOrdinaryLeastSquaresParams ( ) {
142
+ public static IEnumerable < SweepableParam > BuildOrdinaryLeastSquaresParams ( )
143
+ {
143
144
return new SweepableParam [ ] {
144
145
new SweepableDiscreteParam ( "L2Weight" , new object [ ] { 1e-6f , 0.1f , 1f } )
145
146
} ;
146
147
}
147
148
148
- public static IEnumerable < SweepableParam > BuildSgdParams ( ) {
149
+ public static IEnumerable < SweepableParam > BuildSgdParams ( )
150
+ {
149
151
return new SweepableParam [ ] {
150
152
new SweepableDiscreteParam ( "L2Weight" , new object [ ] { 1e-7f , 5e-7f , 1e-6f , 5e-6f , 1e-5f } ) ,
151
153
new SweepableDiscreteParam ( "ConvergenceTolerance" , new object [ ] { 1e-2f , 1e-3f , 1e-4f , 1e-5f } ) ,
@@ -154,7 +156,8 @@ public static IEnumerable<SweepableParam> BuildSgdParams() {
154
156
} ;
155
157
}
156
158
157
- public static IEnumerable < SweepableParam > BuildSymSgdParams ( ) {
159
+ public static IEnumerable < SweepableParam > BuildSymSgdParams ( )
160
+ {
158
161
return new SweepableParam [ ] {
159
162
new SweepableDiscreteParam ( "NumberOfIterations" , new object [ ] { 1 , 5 , 10 , 20 , 30 , 40 , 50 } ) ,
160
163
new SweepableDiscreteParam ( "LearningRate" , new object [ ] { "<Auto>" , 1e1f , 1e0f , 1e-1f , 1e-2f , 1e-3f } ) ,
0 commit comments