-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
New distribution: Skew-generalized Normal distribution #445
base: main
Are you sure you want to change the base?
Conversation
I signed it |
Thanks for putting this together! Still need to take a closer look, but in the mean time can you make the linter happy? (See TravisCI results here) |
Hey Christopher,
Sorry, but this actually my very first pull request ever: I haven't ever
been in a project where they were used.
I'm not sure what the linter is😰
…On Wed, Jun 5, 2019 at 3:40 PM Christopher Suter ***@***.***> wrote:
Thanks for putting this together! Still need to take a closer look, but in
the mean time can you make the linter happy? (See TravisCI results here
<https://travis-ci.org/tensorflow/probability/builds/540560791?utm_source=github_status&utm_medium=notification>
)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#445?email_source=notifications&email_token=AEXGFWJIX2ZHDRMVUZTTNODPZA6ENA5CNFSM4HSEI4Y2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXBHBHQ#issuecomment-499282078>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEXGFWLJRZDX73RWR7ECGCLPZA6ENANCNFSM4HSEI4YQ>
.
--
Sincerely,
Daniel Maryanovsky
|
No worries! Thanks for pitching in, and congrats on your first PR :) Linters in this context perform static analysis of code changes to ensure various style guide constraints are met. Things like length of lines, indentation and inter-line whitespace. If you follow the "Details" link above, under the headings "Some checks were not successful" > "continuous-integration/travis-ci/pr", you'll find that it has a series of automated tests that were kicked off when the PR came in. The linter runs first, and if it fails nothing else runs. Once it passes, then the automated unit tests can start. Let me know if this is sufficient info to help you proceed. The lint errors should be pretty prescriptive as far as what needs to be changed. |
Thanks a lot, I'll get on it today.
…On Fri, Jun 7, 2019 at 12:27 PM Christopher Suter ***@***.***> wrote:
No worries! Thanks for pitching in, and congrats on your first PR :)
Linters in this context perform static analysis of code changes to ensure
various style guide constraints are met. Things like length of lines,
indentation and inter-line whitespace. If you follow the link above,
under the heading "Some checks were not successful",
"continuous-integration/travis-ci/pr", you'll find that it has a series of
automated tests that were kicked off when the PR came in. The linter runs
first, and if it fails nothing else runs. Once it passes, then the
automated unit tests can start.
Let me know if this is sufficient info to help you proceed. The lint
errors *should* be pretty prescriptive as far as what needs to be changed.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#445?email_source=notifications&email_token=AEXGFWNFA3C777JMF5SH333PZKZBLA5CNFSM4HSEI4Y2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXGYYFY#issuecomment-500010007>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEXGFWKZ7SYMGJIHZEYT6GTPZKZBLANCNFSM4HSEI4YQ>
.
--
Sincerely,
Daniel Maryanovsky
|
…bution so to access graph_parents'
Can we include this more general family of unified skewed normal distribution please?(https://www.researchgate.net/profile/Wei_Ning/publication/257459090_On_Some_Properties_of_the_Unified_Skew_Normal_Distribution/links/54f883260cf2ccffe9df4c43/On-Some-Properties-of-the-Unified-Skew-Normal-Distribution.pdf?origin=publication_detail) |
Sure, in a later build though
On Thu, Jul 18, 2019 at 2:13 PM Chen Chen ***@***.***> wrote:
Can we include this more general family of unified skewed normal
distribution please?(
https://www.researchgate.net/profile/Wei_Ning/publication/257459090_On_Some_Properties_of_the_Unified_Skew_Normal_Distribution/links/54f883260cf2ccffe9df4c43/On-Some-Properties-of-the-Unified-Skew-Normal-Distribution.pdf?origin=publication_detail
)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#445?email_source=notifications&email_token=AEXGFWK3EUEWRIUW2GWRAXTQADMIRA5CNFSM4HSEI4Y2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2JZV4Y#issuecomment-512989939>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEXGFWORME5242R3GGT3MNTQADMIRANCNFSM4HSEI4YQ>
.
--
Sincerely,
Daniel Maryanovsky
|
…ehavior for sampling, evaluating mean, mode, and stddev are confirmed.'
…ehavior for sampling, evaluating mean, mode, and stddev are confirmed.'
Hey csuter, I had a question I got a lint error reading that I had a bad call to super. What's the style requirement for handling super? |
It should be super(SkewNormal, self).foo
Curious: why do you also subclass Normal instead of just Distribution?
…On Fri, Sep 6, 2019, 6:09 AM inhandan ***@***.***> wrote:
No worries! Thanks for pitching in, and congrats on your first PR :)
Linters in this context perform static analysis of code changes to ensure
various style guide constraints are met. Things like length of lines,
indentation and inter-line whitespace. If you follow the "Details" link
above, under the headings "Some checks were not successful" >
"continuous-integration/travis-ci/pr", you'll find that it has a series of
automated tests that were kicked off when the PR came in. The linter runs
first, and if it fails nothing else runs. Once it passes, then the
automated unit tests can start.
Let me know if this is sufficient info to help you proceed. The lint
errors *should* be pretty prescriptive as far as what needs to be changed.
Hey csuter, I had a question
I got a lint error reading that I had a bad call to super. What's the
style requirement for handling super?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#445?email_source=notifications&email_token=AFJFSIZ3NQCSEZG5DT3AUVTQIIT5NA5CNFSM4HSEI4Y2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6CMZHY#issuecomment-528796831>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFJFSI44L53VM6OFJC2SWX3QIIT5NANCNFSM4HSEI4YQ>
.
|
A silly reason, to leverage some methods that are already implemented in Normal. I'll just re-write the ones I need and subclass directly from Distribution. |
The call to super should generally have the class in which the method is implemented as its first argument. This is pretty conventional python (though in py3 you just write |
…ger a sub-class of Normal'
Hey all! It passed all checks. I feel so ridiculous for putting off the Bazel build for so long, it took no time. |
@brianwa84 take another look? |
To your immediate question about tests, the answer is yes, you should add
some basic tests in a corresponding test.py file.
You can also get some good test coverage by adding support for the
distribution to distribution_properties_test.py.
|
So I'm encumbered as hell with work still because of quarantine. How do you feel about implementing some tests in a skew_generalized_normal_test file? I'd have to dig a little to see what the standard test methods are. I'll be working on it too, but just much less. (My startup requires 18 hour days because of booming demand during quarantine.) I can definitely answer any questions that you might have. |
If the distribution has a tractable cdf I think using the DKWM bound test should suffice to validate sample and cdf consistency. Gamma has an example here. |
Is this ready to review? At a glance the tests look OK. |
Not yet I don’t think. I’ll finish up some planned tests today, should be
ready tomorrow
On Mon, Aug 24, 2020 at 10:38 AM Brian Patton ***@***.***> wrote:
Is this ready to review? At a glance the tests look OK.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#445 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEXGFWJ5VK3IAHWZLR4IGBLSCKQSZANCNFSM4HSEI4YQ>
.
--
Sincerely,
Daniel Maryanovsky
|
Ready to review! |
Is this still a viable PR? Would be great to have this distribution in TFP. |
It is! Sorry I’ve been busy with contract work. I’ll put my head into it
and finish it up this week for sure
On Mon, Feb 8, 2021 at 4:30 PM Chris Fonnesbeck ***@***.***> wrote:
Is this still a viable PR? Would be great to have this distribution in TFP.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#445 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEXGFWJU5U4PMSOQMMNDPBLS6B633ANCNFSM4HSEI4YQ>
.
--
Sincerely,
Daniel Maryanovsky
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
This pull request adds a new distribution, the generalized normal distribution variant 2, as defined on Wikipedia: https://en.wikipedia.org/wiki/Generalized_normal_distribution
This variant generalizes the Gaussian with a new parameter, the peak or shape, which controls skew and with mean and variance define an upper bound on the distribution. The classic Gaussian is the special case where this parameter is set to 0.