@@ -31,14 +31,14 @@ private static IEnumerable<SweepableParam> BuildOnlineLinearArgsParams()
3131
3232 private static IEnumerable < SweepableParam > BuildTreeArgsParams ( )
3333 {
34- return new SweepableParam [ ]
35- {
34+ return new SweepableParam [ ]
35+ {
3636 new SweepableLongParam ( "NumLeaves" , 2 , 128 , isLogScale : true , stepSize : 4 ) ,
3737 new SweepableDiscreteParam ( "MinDocumentsInLeafs" , new object [ ] { 1 , 10 , 50 } ) ,
3838 new SweepableDiscreteParam ( "NumTrees" , new object [ ] { 20 , 100 , 500 } ) ,
3939 new SweepableFloatParam ( "LearningRates" , 0.025f , 0.4f , isLogScale : true ) ,
4040 new SweepableFloatParam ( "Shrinkage" , 0.025f , 4f , isLogScale : true ) ,
41- } ;
41+ } ;
4242 }
4343
4444 private static IEnumerable < SweepableParam > BuildLbfgsArgsParams ( )
@@ -123,22 +123,24 @@ public static IEnumerable<SweepableParam> BuildPoissonRegressionParams()
123123 public static IEnumerable < SweepableParam > BuildSdcaParams ( )
124124 {
125125 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 } ) ,
128128 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 } ) ,
130130 new SweepableDiscreteParam ( "Shuffle" , null , isBool : true ) ,
131131 new SweepableDiscreteParam ( "BiasLearningRate" , new object [ ] { 0.0f , 0.01f , 0.1f , 1f } )
132132 } ;
133133 }
134134
135- public static IEnumerable < SweepableParam > BuildOrdinaryLeastSquaresParams ( ) {
135+ public static IEnumerable < SweepableParam > BuildOrdinaryLeastSquaresParams ( )
136+ {
136137 return new SweepableParam [ ] {
137138 new SweepableDiscreteParam ( "L2Weight" , new object [ ] { 1e-6f , 0.1f , 1f } )
138139 } ;
139140 }
140141
141- public static IEnumerable < SweepableParam > BuildSgdParams ( ) {
142+ public static IEnumerable < SweepableParam > BuildSgdParams ( )
143+ {
142144 return new SweepableParam [ ] {
143145 new SweepableDiscreteParam ( "L2Weight" , new object [ ] { 1e-7f , 5e-7f , 1e-6f , 5e-6f , 1e-5f } ) ,
144146 new SweepableDiscreteParam ( "ConvergenceTolerance" , new object [ ] { 1e-2f , 1e-3f , 1e-4f , 1e-5f } ) ,
@@ -147,12 +149,13 @@ public static IEnumerable<SweepableParam> BuildSgdParams() {
147149 } ;
148150 }
149151
150- public static IEnumerable < SweepableParam > BuildSymSgdParams ( ) {
152+ public static IEnumerable < SweepableParam > BuildSymSgdParams ( )
153+ {
151154 return new SweepableParam [ ] {
152155 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 } ) ,
154157 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 } )
156159 } ;
157160 }
158161 }
0 commit comments