Giter Club home page Giter Club logo

Comments (5)

lwu9 avatar lwu9 commented on August 27, 2024

When there is a categorical variable X1 in X, it is possible that there is a child node where those observations contain only one category, i.e. all values of the variable X1 are the same. In this case, how can we get pseudo-outcomes? The pseudo-outcomes is obtained through the inverse of Ap which may be singular. Isn't it?

from grf.

swager avatar swager commented on August 27, 2024

The X-values aren't used to compute the pseudo-outcomes in the leaf in the standard GRF formulation; rather, only the "outcomes" matter (e.g., W and Y for causal_forest). The features X enter into the problem by determining which leaf an observation falls into.

from grf.

lwu9 avatar lwu9 commented on August 27, 2024

Thanks for you reply @swager! I understand in your causal_forest, pseudo-outcomes only have W and Y. But if we want to do the local linear regression, so our psi should be:
psi(Y_i)=Y_i-theta * X_i, (here theta is related to the query point x), shouldn't it? So when we calculate Ap, we need take derivative of psi w.r.t. theta, and the result will include feature X. Is there anything wrong in my understanding?

from grf.

jtibshirani avatar jtibshirani commented on August 27, 2024

We added the sufrep package, which contains a collection of methods for handling categorical variables, and a tutorial for how to use sufrep with grf.

from grf.

lwu9 avatar lwu9 commented on August 27, 2024

Thanks

from grf.

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.