This page explains how you can contribute to the development of statsmodels by submitting patches, statistical tests, new models, or examples.
statsmodels is developed on Github using the Git version control system.
sm.version.full_version
sm.show_versions()
For a pull request to be accepted, you must meet the below requirements. This greatly helps in keeping the job of maintaining and releasing the software a shared effort.
One branch. One feature. Branches are cheap and github makes it easy to merge and delete branches with a few clicks. Avoid the temptation to lump in a bunch of unrelated changes when working on a feature, if possible. This helps us keep track of what has changed when preparing a release.
Commit messages should be clear and concise. This means a subject line of less than 80 characters, and, if necessary, a blank line followed by a commit message body. We have an informal commit format standard that we try to adhere to. You can see what this looks like in practice by git log --oneline -n 10
. If your commit references or closes a specific issue, you can close it by mentioning it in the commit message. (For maintainers: These suggestions go for Merge commit comments too. These are partially the record for release notes.)
Code submissions must always include tests. See our notes on testing.
Each function, class, method, and attribute needs to be documented using docstrings. We conform to the numpy docstring standard.
If you are adding new functionality, you need to add it to the documentation by editing (or creating) the appropriate file in docs/source
.
Make sure your documentation changes parse correctly. Change into the top-level docs/
directory and type:
make clean make html
Check that the build output does not have any warnings due to your changes.
Finally, please add your changes to the release notes. Open the docs/source/release/versionX.X.rst
file that has the version number of the next release and add your changes to the appropriate section.
So you want to submit a patch to statsmodels but aren't too familiar with github? Here are the steps you need to take.
docs/source/
. If it is a big, new feature add a note and an example to the latest docs/source/release/versionX.X.rst
file. See older versions for examples. If it's a minor change, it will be included automatically in our relase notes.Conversations about development take place on the statsmodels mailing list.
The statsmodels
documentation's developer page
offers much more detailed information about the process.
Statsmodels is released under the Modified (3-clause) BSD license.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。