Permalink
Browse files

changed the default power_t from 0.25 to 0.1

  • Loading branch information...
1 parent b8bc32e commit 7081291b882479808bde37e2e8631647c82db7e8 @myui committed Oct 7, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/main/hivemall/regression/LogressUDTF.java
@@ -49,8 +49,8 @@ public StructObjectInspector initialize(ObjectInspector[] argOIs) throws UDFArgu
protected Options getOptions() {
Options opts = super.getOptions();
opts.addOption("t", "total_steps", true, "a total of n_samples * epochs time steps");
- opts.addOption("power_t", true, "The exponent for inverse scaling learning rate [default 0.25].");
- opts.addOption("eta0", true, "The initial learning rate [default 0.1].");
+ opts.addOption("power_t", true, "The exponent for inverse scaling learning rate [default 0.1]");
+ opts.addOption("eta0", true, "The initial learning rate [default 0.1]");
return opts;
}
@@ -64,7 +64,7 @@ protected CommandLine processOptions(ObjectInspector[] argOIs) throws UDFArgumen
protected static EtaEstimator getEtaEstimator(CommandLine cl) throws UDFArgumentException {
if(cl == null) {
- return new InvscalingEtaEstimator(0.1f, 0.25f);
+ return new InvscalingEtaEstimator(0.1f, 0.1f);
}
float eta0 = Float.parseFloat(cl.getOptionValue("eta0", "0.1"));
@@ -74,7 +74,7 @@ protected static EtaEstimator getEtaEstimator(CommandLine cl) throws UDFArgument
return new SimpleEtaEstimator(eta0, t);
}
- float power_t = Float.parseFloat(cl.getOptionValue("power_t", "0.25"));
+ float power_t = Float.parseFloat(cl.getOptionValue("power_t", "0.1"));
return new InvscalingEtaEstimator(eta0, power_t);
}

0 comments on commit 7081291

Please sign in to comment.