Coder Social home page Coder Social logo

Comments (8)

topepo avatar topepo commented on August 23, 2024 2

It would make sense to add a subsection on supervised encodings in that chapter.

from fes.

alexpghayes avatar alexpghayes commented on August 23, 2024

I second the request for a section on likelihood encoding. I've been having a hard time finding a canonical reference on them. I'd also be curious if there are any comparisons between standard likelihood encoding and a multilevel encoding scheme like suggested here.

from fes.

topepo avatar topepo commented on August 23, 2024

@alexpghayes When I do this for the town variable in the OkC data mentioned in Chapter 5 (glm = "fixed" and Bayesian glm as "pooled"), the log-odds estimates are pretty similar. However, the overall sample size isn't small so it would not shrink as much as smaller data sets

towns

from fes.

AllardJM avatar AllardJM commented on August 23, 2024

@topepo ,

Using a multi-level model can make a large difference when the cardinality is large and the data sparse, in my experience. Think about something like zipcodes and the use of logistic regression versus lmer(outcome~1 + (1|zipcode),data=DAT,family=binomial)
to estimate the encodings.

I like the idea of a supervised encoding section. It would be use mentioning transfer learning as well - since this is the starting point for most these days (e.g. NLP)

from fes.

dmi3kno avatar dmi3kno commented on August 23, 2024

I second the target encoding request. Additional useful references can be found in:
https://arxiv.org/abs/1611.09477

Supervised encoding extends beyond categorical features and one can think of, for example "y-aware dimensionality reduction methods" as a wider definition which would also capture "y-aware PCA"
http://www.win-vector.com/blog/2016/05/pcr_part2_yaware/

from fes.

alexpghayes avatar alexpghayes commented on August 23, 2024

@topepo Interesting. I'm planning to play around with this some in the next couple of days, I'll let you know if I find a compelling example where pooling makes a big difference.

from fes.

alexpghayes avatar alexpghayes commented on August 23, 2024

@topepo One example where partial pooling for the encoding can have an impact:

llh_encoding_comparisons

Code (rough, will improve): https://gist.github.com/alexpghayes/d1ffb5c78b2e063d29b415a1a6bcb44e

from fes.

topepo avatar topepo commented on August 23, 2024

A first pass at some code for recipes is the embed package that uses stan or tensorflow. More documentation is here. Feedback is welcome.

from fes.

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.