Skip to content

Commit

Permalink
Add chunk summary after CreateFrame.
Browse files Browse the repository at this point in the history
  • Loading branch information
arnocandel committed Dec 31, 2014
1 parent 2a17406 commit 6e83e39
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/hex/CreateFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import water.*;
import water.api.DocGen;
import water.fvec.*;
import water.util.FrameUtils;
import water.util.Log;
import water.util.RString;

Expand Down Expand Up @@ -90,6 +91,7 @@ public class CreateFrame extends Request2 {
fct.join();

Log.info("Created frame '" + key + "'.");
Log.info(FrameUtils.chunkSummary((Frame)UKV.get(Key.make(key))).toString());
return Response.done(this);
} catch( Throwable t ) {
return Response.error(t);
Expand All @@ -107,6 +109,7 @@ public class CreateFrame extends Request2 {
+ "' now has " + fr.numRows() + " rows and " + (fr.numCols()-1)
+ " data columns, as well as a " + (response_factors == 1 ? "real-valued" : (response_factors == 2 ? "binomial" : "multi-nomial"))
+ " response variable as the first column.<br/>Number of chunks: " + fr.anyVec().nChunks() + ".");
DocGen.HTML.paragraph(sb, FrameUtils.chunkSummary((Frame)UKV.get(Key.make(key))).toString().replace("\n","<br/>"));
return true;
}

Expand Down

0 comments on commit 6e83e39

Please sign in to comment.