Comments (5)
Okay, I added the support in #3487. Once that is merged, and once a new version of mlpack is released, you should be able to pass pandas DataFrames in to the binding. Note that under the hood, what's actually happening is pretty much exactly the same as your workaround: we convert string values to integer values, then pass it to the one-hot encoding function.
from mlpack.
thank you @rcurtin !
from mlpack.
Sorry for the slow response here! Right now preprocess_one_hot_encoding()
doesn't support categorical features... but it seems obvious that it should. I think it should be a simple code change (basically the input type of the binding just needs to be changed from a matrix to a categorical matrix), but I haven't had a chance to implement it yet. Anyway, it's on my list, and I'll post an update when I can make that change (or if someone else gets to it before I do feel free π).
from mlpack.
Sounds good, thanks for the clarification and update!
from mlpack.
resolved in #3487
from mlpack.
Related Issues (20)
- FFN function approximator in a multi-dimensional space doesn't converge HOT 1
- Are there mlpack examples of training neural networks on graphs? HOT 3
- Make of mlpack does not generate libmlpack.so HOT 4
- Should the R package also install the headers? HOT 7
- Large matrices should be passed by address HOT 3
- linear_regression.cpp: undefined reference to `wrapper2_XXXX' HOT 4
- Installing Python bindings when `pip` in `PYTHONPATH` but not in Python prefix HOT 6
- βclass ens::Anyβ has no member named βAsβ HOT 2
- RandomForests are very slow HOT 13
- Is there a way to use mlpack in C++ with runtime polymorphism? HOT 5
- add getter for classProbabilities, or how do I visualise a decision tree? HOT 4
- Random Forest don't learn the data if max_depth > 0 HOT 4
- Cant work HyperparameterTuner GridSearch on RandomForest HOT 5
- Problem with STB support HOT 7
- ensmallen not installed in installation directory when running make install HOT 7
- NVP mentioned when loading models from Cereal XML file, but not mentioned when model is saved HOT 3
- BLAS, LAPACK dependencies not installed when using DOWNLOAD_DEPENDENCIES flag HOT 1
- Example of input data format for HMMs HOT 6
- Linker errors when building mlpack from source - Linux HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mlpack.