Coder Social home page Coder Social logo

Comments (5)

raam93 avatar raam93 commented on July 27, 2024

Can you post the error you are getting? It's hard to say anything without looking at the error.

Yes, you are right regarding cappital_gain and capital_loss - they are highly skewed and most of the observations had 0 value. So we did not use those variables in our experiments. As we mention in the paper, the data preparation is mostly based on the analysis here: https://rpubs.com/H_Zhu/235617.

from dice.

aivodji avatar aivodji commented on July 27, 2024

Thank you for your feedback on cappital_gain and capital_loss.
The error is "RuntimeWarning: divide by zero encountered in double_scalars feature_weights[feature] = round(1/normalized_mads[feature], 2)", and the relataded file is DiCE/dice_ml/dice_interfaces/dice_tensorflow1.py at line 279

from dice.

raam93 avatar raam93 commented on July 27, 2024

Yeah, that happens when the MAD is 0. The code is now updated and it will replace all such occurrences with 1. So, currently, features with 0 MAD are not given any weights in optimization. Though it might make sense in many cases, we welcome other ways of handling this situation.

from dice.

aivodji avatar aivodji commented on July 27, 2024

Thanks for your feedback. By the way, I think the PrivateData class in private_data_interface.py also need a get_valid_mads method.

from dice.

raam93 avatar raam93 commented on July 27, 2024

Ah, good catch! Thanks for pointing that out. I will update the private data notebook in a while.

from dice.

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.