[mlpack-git] [mlpack/mlpack] Density Estimation Tree made sparse-enabled (#802)
Ivan Georgiev
notifications at github.com
Wed Oct 19 17:40:02 EDT 2016
thejonan commented on this pull request.
> cvDTree.PruneAndUpdate(cvOldAlpha, train.n_cols, useVolumeReg);
}
// Compute test values for this state of the tree.
double cvVal = 0.0;
for (size_t i = 0; i < test.n_cols; ++i)
{
- arma::vec testPoint = test.unsafe_col(i);
+ typename MatType::vec_type testPoint = test.unsafe_col(i);
cvVal += cvDTree.ComputeValue(testPoint);
You're totally right about this, and it is changed in my side, but I didn't realize it is not just for `mlpack_det` tool that still doesn't support loading of sparse matrices at the first place. I'll fix it in this branch.
--
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/50d8d74e/attachment.html>
More information about the mlpack-git
mailing list