Git Product home page Git Product logo

Comments (3)

DWesl avatar DWesl commented on July 19, 2024 3

Going by the patsy docs on dummy encoding:
https://patsy.readthedocs.io/en/latest/API-reference.html#categorical-coding-ref
and the scikit-learn docs on one-hot encoding:
https://scikit-learn.org/stable/modules/generated/sklearn.preprocessing.OneHotEncoder.html#sklearn.preprocessing.OneHotEncoder
I think the difference between dummy encoding and one-hot encoding is whether the person describing the encoding has a statistics background or a machine learning background.

from formulaic.

matthewwardrop avatar matthewwardrop commented on July 19, 2024 1

Good catch. Under the hood the columns are one-hot encoded, but then during the rank reduction steps this transforms most of the time (but not always) to a dummy encoding. I'll keep this issue around so I can hopefully clarify this :).

from formulaic.

matthewwardrop avatar matthewwardrop commented on July 19, 2024

Aye... looks like there is no difference after all (but I've added both nomenclatures to ensure that people familiar with the different nomenclature are not confused. Thanks again!

from formulaic.

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.