[mlpack-git] [mlpack/mlpack] Fix a cast in dt_utils.cpp (#621)
xantares
notifications at github.com
Fri Apr 15 16:18:20 EDT 2016
Apparently I have to cast altough both fold and testSize are os size_t type:
```
/home/xantares/projects/mlpack/src/mlpack/methods/det/dt_utils.cpp: In function ‘mlpack::det::DTree* mlpack::det::Trainer(arma::mat&, size_t, bool, size_t, size_t, std::__cxx11::string)’:
/home/xantares/projects/mlpack/src/mlpack/methods/det/dt_utils.cpp:195:72: error: no matching function for call to ‘min(intmax_t, arma::uword)’
size_t end = std::min((fold + 1) * testSize, (size_t) cvData.n_cols);
^
```
You can view, comment on, or merge this pull request online at:
https://github.com/mlpack/mlpack/pull/621
-- Commit Summary --
* Fix a cast in dt_utils.cpp
-- File Changes --
M src/mlpack/methods/det/dt_utils.cpp (2)
-- Patch Links --
https://github.com/mlpack/mlpack/pull/621.patch
https://github.com/mlpack/mlpack/pull/621.diff
---
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/621
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160415/807a40c1/attachment-0001.html>
More information about the mlpack-git
mailing list