[mlpack-git] [mlpack/mlpack] PARAM_VECTOR_IN seems not to be working (#798)

Ivan Georgiev notifications at github.com
Thu Oct 6 16:31:15 EDT 2016


I've made all this attempts in `det_main.cpp`, not it matters. Added this, as pointed out:
```
PARAM_VECTOR_IN(size_t, "ignore_dimensions", "The indices of dimensions to be ignored "
    "on split attempts.", "n");
```

Then tried to obtain the value like this:
```
std::vector<size_t> ignoreDims = CLI::GetParam<std::vector<size_t>>("ignore_dimensions");
```

Gives these arguments: `-n 2 3` and checking the `ignoreDims`'s value (in the debugger), it shows a vector with only one element - 2. (Yes, I've built MLPack with DEBUG=ON).

-- 
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/issues/798#issuecomment-252079620
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20161006/10d99f2e/attachment.html>


More information about the mlpack-git mailing list