-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[ENH] Skew-Normal Distribution #512
Conversation
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.
Thanks, great start!
Some comments:
- please follow the extension template carefully, all
__init__
parameters should be written toself
, to an attribute of the same name - properties should not be used for the
__init__
parameters, this is due to how the base classget_params
etc works loc
is a reserved attribute and should not be overridden. Another common name isxi
, but feel free to choose anything as lon gas it is notloc
.- code formatting tests are failing, please address
@fkiraly |
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.
Thanks!
- I do not see a reason to use the
BaseDistribution
, the adapter does the same thing with much less code - kindly ensure code is properly formatted, see https://www.sktime.net/en/stable/developer_guide/coding_standards.html
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.
Thanks!
Can you kindly make sure you use the extension template? Please read it carefully. For instance:
__init__
parameters should be written to self- the docstring should describe the distribution, see a few other examples in the same folder
- please follow the code formatting guide https://www.sktime.net/en/stable/developer_guide/coding_standards.html
kindly diagnose the errors and fix them - it should be possible to spot what is wrong if you look at the logs. Let us know if you need help. |
@fkiraly |
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.
Great! Looks almost fine.
- shape is a reserved parameter of distributions, so we need to use another parameter name. How about
xi
,omega
,alpha
like on wikipedia? - for the default list of maintainers, do not set the maintainer tag.
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.
Fixed this to have it in the release.
@fkiraly |
Reference Issues/PRs
Fixes #510
What does this implement/fix? Explain your changes.
This implementation adds a new
Skew-Normal
distribution as a probabilistic model inskpro
. The inspiration comes from the paper (https://www.ine.pt/revstat/pdf/rs130105.pdf).The
Skew-Normal
distribution captures skewness in data, improving the flexibility of predictive distributions. Scipy already implements this asscipy.stats.skewnorm
, which is used as a dependency to avoid redundant code.Does your contribution introduce a new dependency?
No new core dependencies are introduced.
scipy
is already a core dependency.