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
<zoq[m]> Is there an easy way to convert `DatasetInfo` into `DatasetMapper<MissingPolicy>`? We are currently looking into https://github.com/mlpack/mlpack/blob/f60e72519386dfa1c48e4697fdf872fa48091be2/src/mlpack/methods/preprocess/preprocess_imputer_main.cpp#L104-L109 which fails because `DatasetInfo = DatasetMapper<data::IncrementPolicy>;`
<rcurtin[m]> I think it could be tricky. The issue is that `MissingPolicy` causes a string type to be mapped to `NaN`, but `IncrementPolicy` just picks the next integer value. I know it is not a really helpful response I am giving, but I don't see a particularly easy way to do it... I guess you could make a shim where you used `UnmapString()` from the `DatasetInfo`, then `MapString()` for the `DatasetMapper<MissingPolicy>` for each element in a
<rcurtin[m]> categorical matrix...