rcurtin_irc changed the topic of #mlpack to: mlpack: a scalable machine learning library (https://www.mlpack.org/) -- channel logs: https://libera.irclog.whitequark.org/mlpack -- NOTE: messages sent here might not be seen by bridged users on matrix, gitter, or slack
metanet__ has quit [Read error: Connection reset by peer]
metanet has quit [Read error: Connection reset by peer]
_slack_mlpack_19 has joined #mlpack
<NabanitaDash[m]> Can I use ``std::string& filename = mlpack::bindings::cli::GetPrintableParam(params, 0, 0);`` in ``pre-process-split-main`` to get filename ? I am getting an error ```/home/naba/dev/mlpack/src/mlpack/methods/preprocess/preprocess_split_main.cpp: In function ‘void preprocess_split(... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/b0de2f027a119e05bb732424170f7244577cfffd)
<NabanitaDash[m]> * Can I use `std::string& filename = mlpack::bindings::cli::GetPrintableParam(params, 0, 0);` in `pre-process-split-main` to get filename ? I am getting an error ```/home/naba/dev/mlpack/src/mlpack/methods/preprocess/preprocess_split_main.cpp: In function ‘void preprocess_split(... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/8fa81fe35ec4da6b5fa160fa5e00fcdc84b2c40c)
<NabanitaDash[m]> * Can I use `std::string& filename = mlpack::bindings::cli::GetPrintableParam(params, 0, 0);` in `pre-process-split-main` to get filename ? I am getting an error ```/home/naba/dev/mlpack/src/mlpack/methods/preprocess/preprocess_split_main.cpp: In function ‘void preprocess_split(mlpack::util::Params&, mlpack::util::Timers&)’:
<NabanitaDash[m]> /home/naba/dev/mlpack/src/mlpack/methods/preprocess/preprocess_split_main.cpp:156:81: error: no matching function for call to ‘GetPrintableParam(mlpack::util::Params&, int, int)’
<NabanitaDash[m]> ```
<NabanitaDash[m]> 156 | std::string& filename = mlpack::bindings::cli::GetPrintableParam(params, 0, 0);
<NabanitaDash[m]> * Can I use `std::string& filename = mlpack::bindings::cli::GetPrintableParam(params, 0, 0);` in `pre-process-split-main` to get filename ? I am getting an error ```... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/93805dd1ece14e64e1ea78d436150b6747967f50)
<NabanitaDash[m]> * Can I use `std::string& filename = mlpack::bindings::cli::GetPrintableParam(params, 0, 0);` in `pre-process-split-main` to get filename ? I am getting an error ```
<NabanitaDash[m]> /home/naba/dev/mlpack/src/mlpack/methods/preprocess/preprocess_split_main.cpp: In function ‘void preprocess_split(mlpack::util::Params&, mlpack::util::Timers&)’:
<NabanitaDash[m]> /home/naba/dev/mlpack/src/mlpack/methods/preprocess/preprocess_split_main.cpp:156:81: error: no matching function for call to ‘GetPrintableParam(mlpack::util::Params&, int, int)’
<NabanitaDash[m]> 156 | std::string& filename = mlpack::bindings::cli::GetPrintableParam(params, 0, 0);
<NabanitaDash[m]> * Can I use `std::string& filename = mlpack::bindings::cli::GetPrintableParam(params, 0, 0);` in `pre-process-split-main` to get filename ? I am getting an error
<NabanitaDash[m]> ```
<rcurtin[m]> Nabanita Dash: you shouldn't do anything specific to a language inside of a binding. so anything in `mlpack::bindings::cli` shouldn't be called, since that binding may also be compiled for other languages
<rcurtin[m]> you probably want `params.GetPrintable()` (see `src/mlpack/core/util/params.hpp`)
<NabanitaDash[m]> Oh ok
<rcurtin[m]> alternately you may want `PRINT_PARAM_STRING()`; take a look at other bindings to see if you can find other places in the codebase that do what you are trying to do
<NabanitaDash[m]> I wanted to get the filename which is used in cli bindings.
<rcurtin[m]> that's specific to the command-line bindings; like I just said, you can't do that, because each binding has to be written agnostically to the language it will be compiled to
<NabanitaDash[m]> I have used ``PRINT_PARAM_STRING`` in my recent commit.
<rcurtin[m]> you want the 'printable' form of the parameter
<rcurtin[m]> for the command-line bindings for a matrix parameter, that will be the filename; but obviously it cannot be the filename for languages like Python, Julia, etc., where the user passes a matrix directly and not a filename
<NabanitaDash[m]> Right got it