Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/0xdata/h2o
Browse files Browse the repository at this point in the history
  • Loading branch information
dearirenelang committed Apr 30, 2014
2 parents e8f3083 + 214a8fd commit 46519d2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/main/java/hex/gapstat/GapStatisticModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class GapStatisticModel extends Model implements Job.Progress {
static final int API_WEAVER = 1; // This file has auto-gen'd doc & json fields
static public DocGen.FieldDoc[] DOC_FIELDS; // Initialized from Auto-Gen code.

@API(help = "Number of clusters to build in each iteration.")
// @API(help = "Number of clusters to build in each iteration.")
final int ks;

@API(help = "The initial pooled within cluster sum of squares for each iteration.")
Expand All @@ -25,16 +25,16 @@ public class GapStatisticModel extends Model implements Job.Progress {
@API(help = "The standard error from the Monte Carlo simulated data for each iteration.")
final double[] sk;

@API(help = "k_max.")
// @API(help = "k_max.")
final int k_max;

@API(help = "b_max.")
// @API(help = "b_max.")
final int b_max;

@API(help = "The current value of k_max: (2 <= k <= k_max).")
// @API(help = "The current value of k_max: (2 <= k <= k_max).")
int k;

@API(help = "The current value of B (1 <= b <= B.")
// @API(help = "The current value of B (1 <= b <= B.")
int b;

@API(help = "The gap statistics per value of k.")
Expand Down Expand Up @@ -197,6 +197,7 @@ public void generateHTML(String title, StringBuilder sb) {
break;
}
}
if (k_best <= 0) k_best = (int)Double.NaN;

if (log_wks[log_wks.length -1] != 0) {
DocGen.HTML.section(sb, "Best k:");
Expand Down

0 comments on commit 46519d2

Please sign in to comment.