Git Product home page Git Product logo

Comments (2)

kbattocchi avatar kbattocchi commented on July 28, 2024 1

If you could provide a concrete reproduction of your issues that might help narrow down any issues, but here are a few thoughts.

For question 1, predict_proba gives the fraction of trees in the forest recommending the treatment while predict_value gives the average estimate; usually these would be ranked fairly consistently but that's not necessarily the case. For instance, it's possible that a small number of trees predict a very high value for T2, so that the overall average prediction is higher than that for T1, but the majority of trees predict a higher value for T1, so that gets a higher ranking in predict_proba.

For question 2, if you're plotting a single tree from the forest, then it might make sense that that tree assigns treatment 0 to some instance, but that most trees assign some other treatment, so 0 is never recommended by the forest overall.

from econml.

lee-uidam avatar lee-uidam commented on July 28, 2024

Thanks @kbattocchi,
I cannot share the code for some issues, but your answer helped a lot !
now I understand the differences btw those methods :) and now I see why they returned somewhat seemingly different results.

(I'll close the issue in a few days in case anyone wants to add some comment )

from econml.

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.