Giter Club home page Giter Club logo

Comments (5)

rcurtin avatar rcurtin commented on June 17, 2024 1

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.

evRivera avatar evRivera commented on June 17, 2024 1

thank you @rcurtin !

from mlpack.

rcurtin avatar rcurtin commented on June 17, 2024

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.

evRivera avatar evRivera commented on June 17, 2024

Sounds good, thanks for the clarification and update!

from mlpack.

conradsnicta avatar conradsnicta commented on June 17, 2024

resolved in #3487

from mlpack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.