Skip to content

Commit

Permalink
Remove debugging code
Browse files Browse the repository at this point in the history
And inject Frame key in predict
  • Loading branch information
cliffclick committed Jan 27, 2014
1 parent bbb7a0a commit 8eb23fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/water/api/Predict.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ public static String link(Key k, String content) {
if( model instanceof Model )
fr = (( Model)model).score(data);
else fr = ((OldModel)model).score(data);
fr = new Frame(prediction,fr._names,fr.vecs()); // Jam in the frame key
fr.unlock();
UKV.put(prediction, fr);
return Inspect2.redirect(this, prediction.toString());
} catch( Throwable t ) {
Log.err(t);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/water/fvec/Frame.java
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ public Frame subframe(int startIdx, int endIdx) {

public final String[] names() { return _names; }
public int numCols() { return vecs().length; }
public long numRows(){ return anyVec().length();}
public long numRows() { return anyVec()==null ? 0 : anyVec().length(); }

// Number of columns when categoricals expanded.
// Note: One level is dropped in each categorical col.
Expand Down

0 comments on commit 8eb23fb

Please sign in to comment.