Giter Club home page Giter Club logo

confound_prediction's People

Contributors

darya-chyzhyk avatar gaelvaroquaux avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

confound_prediction's Issues

Controlling for categorical variables

Hi Darya Chyzhyk,

Is it possible to use your package to control for categorical variables?
(I have 10-20 categories)...

If so, any tips on how to do so?
Thanks!

Example_compare_mutual_info_correlation.py

print doc at the beginning of the example

I would show the samples in a scatter plot to make it clear that you are sampling points from a dataset.

Less iterations and a smaller dataset to reduce computation time...

Notes on documentation

"Confound_prediction is a Python module to control confound effect in the prediction or classification model." -> "Confound_prediction is a Python module to control confound effect in prediction or classification models."

  1. Deconfounding test and train jointly (which should not be used, and is provided only for illustration)
    -> I find it dangerous to introduce a model while forbiding it. At least, Iwould not- mention it in the top of the documentation

"Developed framework is based" -> "The developed framework is based"

"You provide us" -> "You provide"
"We return you" -> "The function returns"

Generalization to more than 1 confounding factor

Hello,
Thank you very much for tackling this issue of confounders, which seems very recurrent in clinical ML problems.

I have some questions about the project/paper:

  1. I am wondering why only the test set needs to be Deconfounded? Why not build also a train set which is Deconfounded and a Deconfounded test set (with no data leakage of course)?
  2. I tried to make a generalization of your methodology with k multiple confounders
    image
    I still used most of your codebase and I used a pseudo generalization of the mutual information of multiple variables.
    The probability to be sampled m_i which was
    image

is now:

image

The quantity
image can still be estimated with kernel density estimation.

I made some quick toy examples, it seems to approximately work on simple additive toy examples and when the number of example is sufficient:
For instance with 1000 sample and 10 confounding factors i got:
image
For instance with 100 sample and 3 confounding factors i got:

image

It would be also interesting to study the required N to be sure at a certain level the deconfounding capability for k factors considering the type of link.

Do you think this is a correct approach and generalization?

Thank you

Best regards

simulated_data.py

I'd rather put the simulated_data in the library, e.g. in a '_utils.py' module, otherwise, people will not understand what this stands for.

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.