Author: vkhuc
Date: Wed May 14 03:21:48 2014
New Revision: 1594449

URL: http://svn.apache.org/r1594449
Log:
OPENNLP-682 Added descriptions for the training parameters of L-BFGS

Modified:
    opennlp/trunk/opennlp-tools/lang/ml/MaxentQnExperimentalTrainerParams.txt
    
opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/ml/maxent/quasinewton/QNTrainer.java

Modified: 
opennlp/trunk/opennlp-tools/lang/ml/MaxentQnExperimentalTrainerParams.txt
URL: 
http://svn.apache.org/viewvc/opennlp/trunk/opennlp-tools/lang/ml/MaxentQnExperimentalTrainerParams.txt?rev=1594449&r1=1594448&r2=1594449&view=diff
==============================================================================
--- opennlp/trunk/opennlp-tools/lang/ml/MaxentQnExperimentalTrainerParams.txt 
(original)
+++ opennlp/trunk/opennlp-tools/lang/ml/MaxentQnExperimentalTrainerParams.txt 
Wed May 14 03:21:48 2014
@@ -18,5 +18,20 @@
 Algorithm=MAXENT_QN_EXPERIMENTAL
 Iterations=100
 Cutoff=0
+
+# Costs for L1- and L2-regularization. These parameters must be larger or
+# equal to zero. The higher they are, the more penalty will be imposed to 
+# avoid overfitting. The parameters can be set as follows:
+#    if L1Cost = 0 and L2Cost = 0, no regularization will be used,
+#    if L1Cost > 0 and L2Cost = 0, L1 will be used,
+#    if L1Cost = 0 and L2Cost > 0, L2 will be used,
+#    if both paramters are set to be larger than 0, Elastic Net 
+#       (i.e. L1 and L2 combined) will be used.
 L1Cost=0.5
 L2Cost=0.5
+
+# Number of Hessian updates to store
+NumOfUpdates=15
+
+# Maximum number of objective function's evaluations
+MaxFctEval=30000
\ No newline at end of file

Modified: 
opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/ml/maxent/quasinewton/QNTrainer.java
URL: 
http://svn.apache.org/viewvc/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/ml/maxent/quasinewton/QNTrainer.java?rev=1594449&r1=1594448&r2=1594449&view=diff
==============================================================================
--- 
opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/ml/maxent/quasinewton/QNTrainer.java
 (original)
+++ 
opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/ml/maxent/quasinewton/QNTrainer.java
 Wed May 14 03:21:48 2014
@@ -42,11 +42,11 @@ public class QNTrainer extends AbstractE
   public static final double L2COST_DEFAULT = 0.5; 
   
   // Number of Hessian updates to store
-  public static final String M_PARAM = "numOfUpdates";
+  public static final String M_PARAM = "NumOfUpdates";
   public static final int M_DEFAULT = 15;
   
   // Maximum number of function evaluations
-  public static final String MAX_FCT_EVAL_PARAM = "maxFctEval";
+  public static final String MAX_FCT_EVAL_PARAM = "MaxFctEval";
   public static final int MAX_FCT_EVAL_DEFAULT = 30000;
 
   // L1-regularization cost


Reply via email to