[mlpack-git] [mlpack/mlpack] DatasetMapper & Imputer (#694)
Tham
notifications at github.com
Thu Jul 7 10:49:29 EDT 2016
> +
> + //! Get the mapper
> + const MapperType& Mapper() const { return mapper; }
> +
> + //! Modify the given mapper (be careful!)
> + MapperType& Mapper() { return mapper; }
> +
> + private:
> + // StrategyType
> + StrategyType strategy;
> +
> + // DatasetMapperType<MapPolicy>
> + MapperType mapper;
> +
> + // save transpose as a member variable since it is rarely changed.
> + bool transpose;
It used like this
"3.0 0.0 2.0 0.0;"
"5.0 6.0 0.0 6.0;"
"9.0 8.0 4.0 8.0;"
```
imputer.Impute(input, outputT, 0/*mappedValue*/,
99/*customValue*/, 0/*dimension*/, true);
```
"3.0 99 2.0 99;"
"5.0 6.0 0.0 6.0;"
"9.0 8.0 4.0 8.0;"
```
imputer.Impute(input, outputT, 0/*mappedValue*/,
99/*customValue*/, 1/*dimension*/, false);
```
"3.0 99 2.0 0.0;"
"5.0 6.0 0.0 6.0;"
"9.0 8.0 4.0 8.0;"
I guess the problem is the name , I should suggest keon name it as "rowOrColBase", or design an enum class for it.My fault
---
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/694/files/a8818316a04506530e2269a2e0a32ba2f6a1c83b#r69920655
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160707/f835bd1c/attachment-0001.html>
More information about the mlpack-git
mailing list