Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 450b5c6

Browse filesBrowse files
committed
first commit
0 parents  commit 450b5c6
Copy full SHA for 450b5c6

File tree

Expand file treeCollapse file tree

131 files changed

+21626
-0
lines changed
Filter options

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree

131 files changed

+21626
-0
lines changed

‎.gitignore

Copy file name to clipboard
+112Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
28+
# PyInstaller
29+
# Usually these files are written by a python script from a template
30+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.coverage
42+
.coverage.*
43+
.cache
44+
nosetests.xml
45+
coverage.xml
46+
*.cover
47+
.hypothesis/
48+
49+
# Translations
50+
*.mo
51+
*.pot
52+
53+
# Django stuff:
54+
*.log
55+
local_settings.py
56+
57+
# Flask stuff:
58+
instance/
59+
.webassets-cache
60+
61+
# Scrapy stuff:
62+
.scrapy
63+
64+
# Sphinx documentation
65+
docs/_build/
66+
67+
# PyBuilder
68+
target/
69+
70+
# Jupyter Notebook
71+
.ipynb_checkpoints
72+
*/.ipynb_checkpoints
73+
74+
# pyenv
75+
.python-version
76+
77+
# celery beat schedule file
78+
celerybeat-schedule
79+
80+
# SageMath parsed files
81+
*.sage.py
82+
83+
# dotenv
84+
.env
85+
86+
# virtualenv
87+
.venv
88+
venv/
89+
ENV/
90+
91+
# Spyder project settings
92+
.spyderproject
93+
.spyproject
94+
95+
# Rope project settings
96+
.ropeproject
97+
98+
# mkdocs documentation
99+
/site
100+
101+
# mypy
102+
.mypy_cache/
103+
104+
#Apple
105+
.DS_Store
106+
107+
# Pickles
108+
*/pickle_jar/
109+
docs/notebooks/pickle_jar/
110+
111+
# IDE
112+
.idea/

‎.travis.yml

Copy file name to clipboard
+43Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
language: python
2+
sudo: required
3+
4+
cache:
5+
directories:
6+
- $HOME/.theano
7+
- $HOME/miniconda2
8+
- $HOME/miniconda3
9+
10+
addons:
11+
apt_packages:
12+
- pandoc
13+
14+
before_install:
15+
- . ./scripts/install_miniconda.sh
16+
- sh -e /etc/init.d/xvfb start
17+
- export DISPLAY=":99.0"
18+
- export MKL_THREADING_LAYER=GNU
19+
20+
install:
21+
- . ./scripts/create_testenv.sh
22+
- pip install coveralls travis-sphinx==2.0.0
23+
24+
env:
25+
- PYTHON_VERSION=2.7 FLOATX='float32' TESTCMD="--durations=10 --cov-append"
26+
- PYTHON_VERSION=2.7 FLOATX='float32' RUN_PYLINT="true" TESTCMD="--durations=10 --cov-append"
27+
- PYTHON_VERSION=2.7 FLOATX='float32' TESTCMD="--durations=10 --cov-append"
28+
- PYTHON_VERSION=2.7 FLOATX='float32' TESTCMD="--durations=10 --cov-append"
29+
- PYTHON_VERSION=2.7 FLOATX='float64' TESTCMD="--durations=10"
30+
- PYTHON_VERSION=2.7 FLOATX='float64' RUN_PYLINT="true" TESTCMD="--durations=10 --cov-append"
31+
- PYTHON_VERSION=2.7 FLOATX='float64' TESTCMD="--durations=10 --cov-append"
32+
- PYTHON_VERSION=3.6 FLOATX='float64' TESTCMD="--durations=10 --cov-append"
33+
- PYTHON_VERSION=3.6 FLOATX='float64' TESTCMD="--durations=10 --cov-append"
34+
- PYTHON_VERSION=3.6 FLOATX='float64' BUILD_DOCS="true" TESTCMD="--durations=10 --cov-append"
35+
- PYTHON_VERSION=3.6 FLOATX='float64' TESTCMD="--durations=10 --cov-append pmlearn/tests/test_logistic.py pmlearn/tests/test_base.py pmlearn/tests/test_base1.py pmlearn/tests/test_gpr.py"
36+
37+
script:
38+
- . ./scripts/test.sh $TESTCMD
39+
- . ./scripts/confirm_mpl_optional.sh
40+
41+
after_success:
42+
# - if [[ "$BUILD_DOCS" == "true" ]]; then travis-sphinx deploy -c "docs.pymc.io"; fi
43+
- coveralls

‎AUTHORS.txt

Copy file name to clipboard
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Daniel Emaasit <demaasit@haystax.com>, <daniel.emaasit@gmail.com>

‎CHANGELOG.md

Copy file name to clipboard
+12Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
5+
6+
## [0.0.1] - 2018-11-10
7+
### Added
8+
- First version of the library
9+
- Gaussian process Regressor
10+
- Student's t process Regressor
11+
- Sparse Gaussian process Regressor
12+
- Documentation

‎CODE_OF_CONDUCT.md

Copy file name to clipboard
+46Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
## Our Standards
8+
9+
Examples of behavior that contributes to creating a positive environment include:
10+
11+
* Using welcoming and inclusive language
12+
* Being respectful of differing viewpoints and experiences
13+
* Gracefully accepting constructive criticism
14+
* Focusing on what is best for the community
15+
* Showing empathy towards other community members
16+
17+
Examples of unacceptable behavior by participants include:
18+
19+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
* Trolling, insulting/derogatory comments, and personal or political attacks
21+
* Public or private harassment
22+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
* Other conduct which could reasonably be considered inappropriate in a professional setting
24+
25+
## Our Responsibilities
26+
27+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28+
29+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30+
31+
## Scope
32+
33+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34+
35+
## Enforcement
36+
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at demaasit@haystax.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38+
39+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40+
41+
## Attribution
42+
43+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44+
45+
[homepage]: http://contributor-covenant.org
46+
[version]: http://contributor-covenant.org/version/1/4/

‎CONTRIBUTING.rst

Copy file name to clipboard
+110Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
Thank you for considering contributing to ``pymc-learn``! This project is intended to be a space where anyone can share models they've built.
2+
3+
Please read these guidelines before submitting anything to the project. As of the first release, I'm the only person working on this project so respecting these guidelines will help me get back to you more quickly.
4+
5+
Some ways to contribute:
6+
7+
- Open an issue on the `Github Issue Tracker <https://github.com/pymc-learn/pymc-learn/issues>`__. (Please check that it has not already been reported or addressed in a PR.)
8+
- Improve the docs!
9+
- Add a new machine-learning model. Please follow the guidelines below.
10+
- Add/change existing functionality in the base function classes for ML.
11+
- Something I haven't thought of?
12+
13+
Pull/Merge Requests
14+
---------------------
15+
To create a Pull Request against this library, please fork the project and work from there.
16+
17+
Steps
18+
................
19+
20+
1. Fork the project via the Fork button on Github
21+
22+
23+
2. Clone the repo to your local disk, and add the base repository as a remote.
24+
25+
.. code-block:: bash
26+
27+
git clone https://github/<YOUR-GITHUB-USERNAME>/pymc-learn.git
28+
cd pymc-learn
29+
git remote add upstream https://github.com/pymc-learn/pymc-learn.git
30+
31+
3. Create a new branch for your PR.
32+
33+
.. code-block:: bash
34+
35+
git checkout -b my-new-feature-branch
36+
37+
Always use a ``feature`` branch. It's good practice to never routinely work on the ``master`` branch.
38+
39+
4. Install requirements (probably in a virtual environment)
40+
41+
.. code-block:: bash
42+
43+
conda create --name myenv python=3.6 pip
44+
conda activate myenv
45+
pip install -r requirements.txt
46+
pip install -r requirements_dev.txt
47+
48+
NOTE: On Windows, in your Anaconda Prompt, run ``activate myenv``.
49+
50+
5. Develop your feature. Add changed files using ``git add`` and then ``git commit`` files:
51+
52+
.. code-block:: bash
53+
54+
git add <my_new_model.py>
55+
git commit
56+
57+
to record your changes locally. After committing, it is a good idea to sync with the base repository
58+
in case there have been any changes:
59+
60+
.. code-block:: bash
61+
62+
git fetch upstream
63+
git rebase upstream/master
64+
65+
Then push the changes to your Gitlab account with:
66+
67+
.. code-block:: bash
68+
69+
git push -u origin my-new-feature-branch
70+
71+
6. Submit a Pull Request! Go to the Github web page of your fork of the ``pymc-learn`` repo. Click the 'Create pull request' button
72+
to send your changes to the project maintainers for review. This will send an email to the committers.
73+
74+
Pull Request Checklist
75+
................................
76+
77+
- Ensure your code has followed the Style Guidelines below
78+
- Make sure you have written unittests where appropriate
79+
- Make sure the unittests pass
80+
81+
.. code-block:: bash
82+
83+
conda activate myenv
84+
python -m unittest discover -cv
85+
86+
NOTE: On Windows, in your Anaconda Prompt, run ``activate myenv``.
87+
88+
- Update the docs where appropriate. You can rebuild them with the commands below.
89+
90+
.. code-block:: bash
91+
92+
cd pymc-learn/docs
93+
sphinx-apidoc -f -o api/ ../pmlearn/
94+
make html
95+
96+
- Update the CHANGELOG
97+
98+
99+
Style Guidelines
100+
.....................
101+
102+
For the most part, this library follows PEP8 with a couple of exceptions.
103+
104+
Notes:
105+
106+
- Indent with 4 spaces
107+
- Lines can be 120 characters long
108+
- Docstrings should be written as numpy docstrings
109+
- Your code should be Python 3 compatible
110+
- When in doubt, follow the style of the existing code

‎LICENSE

Copy file name to clipboard
+28Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Copyright (c) 2019 Pymc-learn Developers
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without modification,
5+
are permitted provided that the following conditions are met:
6+
7+
1. Redistributions of source code must retain the above copyright notice,
8+
this list of conditions and the following disclaimer.
9+
10+
2. Redistributions in binary form must reproduce the above copyright notice,
11+
this list of conditions and the following disclaimer in the documentation
12+
and/or other materials provided with the distribution.
13+
14+
3. Neither the name of Pymc-learn nor the names of any contributors may be used to
15+
endorse or promote products derived from this software without specific prior
16+
written permission.
17+
18+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
22+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
28+
THE POSSIBILITY OF SUCH DAMAGE.

‎MANIFEST.in

Copy file name to clipboard
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include AUTHORS.txt LICENSE README.rst

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.