forestBuilder.setOutputDirName(outputPath.getName());
log.info("Building the forest...");
long time = System.currentTimeMillis();
DecisionForest forest = forestBuilder.build(nbTrees);
time = System.currentTimeMillis() - time;
log.info("Build Time: {}", DFUtils.elapsedTime(time));
log.info("Forest num Nodes: {}", forest.nbNodes());
log.info("Forest mean num Nodes: {}", forest.meanNbNodes());
log.info("Forest mean max Depth: {}", forest.meanMaxDepth());
// store the decision forest in the output path
Path forestPath = new Path(outputPath, "forest.seq");
log.info("Storing the forest in: {}", forestPath);
DFUtils.storeWritable(getConf(), forestPath, forest);