Giter Club home page Giter Club logo

Comments (7)

theonaunheim avatar theonaunheim commented on August 15, 2024 1

@vidhisshah ,

Thanks for your detailed report. Much appreciated.

FairModel has an attribute called _tree. This attribute is a FairDependencyTree instance that is used to track calculation dependencies. This class was using erroneously using "Contact" and "Action" as handles for tracking, which is where the issue arose.

I am going to take this fix and another I've been meaning to get out (#24) and package them up this weekend for version 0.1-alpha.11.

For posterity. going forward these will work:

  • C
  • A
  • Contact Frequency
  • Probability of Action

These will not work:

  • CF
  • Contact
  • Action

from pyfair.

theonaunheim avatar theonaunheim commented on August 15, 2024 1

Brilliant, and thanks for your attention to detail, @vidhisshah !

It appears that FairDataInput validator and accompanying unit tests use the term "Action" as well. I will modify FairDataInput._le_1_targets attribute, look for any stray "Action" references in the code base, and check back with you in the next day.

from pyfair.

theonaunheim avatar theonaunheim commented on August 15, 2024

Thanks, @vidhisshah . Will check this evening and reply back.

from pyfair.

theonaunheim avatar theonaunheim commented on August 15, 2024

@vidhisshah ,

Would you please download version 0.1-alpha.11 from PyPI, ensure it fixes your problem, and then close this issue out?

Thanks again for the bug report.

from pyfair.

vidhisshah avatar vidhisshah commented on August 15, 2024

@theonaunheim Thanks a lot!
The keywords 'C', 'Contact Frequency', 'A', and 'Probability of Action' are working fine.

One small issue though, it doesn't seem to be doing the check where values need to be between zero and one. Could you please check that? For example, model.input_data('Probability of Action', low=2, mode=10, high=20) would have thrown an error earlier, but it seems to be accepting it now.

from pyfair.

theonaunheim avatar theonaunheim commented on August 15, 2024

@vidhisshah , I believe I have fixed the validation problems.

At your convenience, would you please check version 1.0-alpha.12 on your machine, and close out this issue if fixed?

Thanks again for your diligence.

from pyfair.

vidhisshah avatar vidhisshah commented on August 15, 2024

Works! Thank you.

from pyfair.

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.