Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Labeled dist-of-fun #1306

Merged
merged 3 commits into from
Jul 26, 2023
Merged

Conversation

Mv77
Copy link
Contributor

@Mv77 Mv77 commented Jul 18, 2023

Aims to fix: #1290

Still need to reach consensus with @alanlujan91 on whether the different behavior of dist_of_func and espected depending on the class of their input is a feature, a bug, or a temporary solution.

  • Tests for new functionality/models or Tests to reproduce the bug-fix in code.
  • Updated documentation of features that add new functionality.
  • Update CHANGELOG.md with major/minor changes.

@codecov
Copy link

codecov bot commented Jul 18, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.08 🎉

Comparison is base (2209109) 72.55% compared to head (349182b) 72.64%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1306      +/-   ##
==========================================
+ Coverage   72.55%   72.64%   +0.08%     
==========================================
  Files          78       78              
  Lines       13009    13028      +19     
==========================================
+ Hits         9439     9464      +25     
+ Misses       3570     3564       -6     
Impacted Files Coverage Δ
HARK/distribution.py 84.46% <100.00%> (+1.19%) ⬆️
HARK/tests/test_distribution.py 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@alanlujan91 alanlujan91 self-requested a review July 18, 2023 20:51
ldd = DiscreteDistributionLabeled.from_dataset(f_query, self.pmv)
ldd = DiscreteDistributionLabeled.from_dataset(f_query, self.probability)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should probably standardize this with DiscreteDistribution ... that's on me

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah this was the only kind of "bug" this addresses; it makes some cases work that didn't before.

The other stuff is a design question. Happy to merge this in without resolving that, but also happy to have a conversation, agree, and implement it.

@alanlujan91 alanlujan91 mentioned this pull request Jul 26, 2023
3 tasks
@alanlujan91 alanlujan91 merged commit 023e8cd into econ-ark:master Jul 26, 2023
16 checks passed
@sbenthall sbenthall changed the title [WIP] Labeled dist-of-fun Labeled dist-of-fun Jul 26, 2023
@Mv77 Mv77 deleted the plumbing/labeled-dist-of-fun branch July 27, 2023 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DiscreteDistribution.dist_of_func
2 participants