Skip to content

Commit

Permalink
using 1000 iterations by default now
Browse files Browse the repository at this point in the history
  • Loading branch information
fracpete committed Feb 10, 2023
1 parent e9be4cb commit c97b4eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/weka/classifiers/functions/LightGBM.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public class LightGBM
protected String m_Parameters = "";

/** the number of iterations to train for. */
protected int m_NumIterations = 10;
protected int m_NumIterations = 1000;

/** the size of the validation set (0-100). */
protected double m_ValidationPercentage = 0.0;
Expand Down Expand Up @@ -206,7 +206,7 @@ public Enumeration listOptions() {

result.addElement(new Option(
"\tThe number of iterations to train for.\n"
+ "\t(default: none)\n",
+ "\t(default: 1000)\n",
"I", 1, "-I <iterations>"));

result.addElement(new Option(
Expand Down Expand Up @@ -252,7 +252,7 @@ public void setOptions(String[] options) throws Exception {
if (tmpStr.length() != 0)
setNumIterations(Integer.parseInt(tmpStr));
else
setNumIterations(100);
setNumIterations(1000);

tmpStr = Utils.getOption('V', options);
if (tmpStr.length() != 0)
Expand Down

0 comments on commit c97b4eb

Please sign in to comment.