-
Notifications
You must be signed in to change notification settings - Fork 422
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
Improve type inference of MixtureModel
#1308
Conversation
Project.toml
Outdated
@@ -1,7 +1,7 @@ | |||
name = "Distributions" | |||
uuid = "31c24e10-a181-5473-b8eb-7969acd0382f" | |||
authors = ["JuliaStats"] | |||
version = "0.24.17" | |||
version = "0.24.18" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the convention in Distributions - is the different type parameter of MixtureModel
considered a breaking change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I updated the version number.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But now tests fail since there exists no version of HypothesisTests that is compatible with Distributions 0.25 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I opened a PR that removes the test dependency on HypothesisTests to fix these test failures: #1311
Codecov Report
@@ Coverage Diff @@
## master #1308 +/- ##
==========================================
- Coverage 81.58% 81.48% -0.11%
==========================================
Files 115 115
Lines 6659 6623 -36
==========================================
- Hits 5433 5397 -36
Misses 1226 1226
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are some nice simplifications. We'd have to bump the minor version to avoid breakage.
Project.toml
Outdated
@@ -1,7 +1,7 @@ | |||
name = "Distributions" | |||
uuid = "31c24e10-a181-5473-b8eb-7969acd0382f" | |||
authors = ["JuliaStats"] | |||
version = "0.24.17" | |||
version = "0.24.18" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
@devmotion I think we should merge this, but merge any additional breaking change before tagging a new version |
Following a conversation re-started by @StefanKarpinski, we should probably then tag a 1.0 |
I am not opposed to tagging a 1.0, but it wouldn't avoid the problem for downstream packages caused by breaking changes - we just have to bump the major version instead of the minor version. |
What other breaking changes are ready to be merged and released? Maybe #1286, or at least the bugfixes therein that could be extracted? |
#1286 is not breaking is it? |
It changes the type of |
I guess it would also be a good opportunity to remove the deprecations in the upcoming breaking releases that have existed for quite some time. |
How should we proceed? Merge #1286 and this PR and then tag 0.25? |
I would prefer keeping the deprecations and removing them when tagging 1.0, so yes let's go with these two PRs |
@devmotion can you merge master into your branch before we merge? |
Done 🙂 |
Fixes #1307 (or at least type inference of the functions that are mentioned in the issue, there might be some additional problems not covered by the tests).
The main issue was that the
prior
field is not concretely typed (Categorical{CT}
is not a concrete type) and some hardcoded Float64 that broke type inference with dual numbers.