[mlpack-git] [mlpack/mlpack] Density Estimation Tree made sparse-enabled (#802)
Ivan Georgiev
notifications at github.com
Wed Oct 19 17:45:11 EDT 2016
thejonan 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));
Yes, but it's really much harder to read the code, so I couldn't resist. If that is an absolute rule for the code - I'll fix it :-)
--
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/20161019/c6cd243c/attachment-0001.html>
More information about the mlpack-git
mailing list