[mlpack-git] [mlpack/mlpack] Density Estimation Tree made sparse-enabled (#802)
Ryan Curtin
notifications at github.com
Tue Oct 25 22:31:25 EDT 2016
rcurtin commented on this pull request.
> prunedSequence.push_back(treeSeq);
oldAlpha = alpha;
alpha = dtree.PruneAndUpdate(oldAlpha, dataset.n_cols, useVolumeReg);
// Some sanity checks. It seems that on some datasets, the error does not
// increase as the tree is pruned but instead stays the same---hence the
// "<=" in the final assert.
- Log::Assert((alpha < std::numeric_limits<double>::max()) ||
- (dtree.SubtreeLeaves() == 1));
+ Log::Assert((alpha < std::numeric_limits<double>::max()) || (dtree.SubtreeLeaves() == 1));
Yeah---the reason for 80-character lines is in part because it makes much easier to print, or include in a paper, or something like this. Helpful especially for manuals or PDFs generated by Doxygen, etc..
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/802
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20161025/642ae502/attachment.html>
More information about the mlpack-git
mailing list