-
Notifications
You must be signed in to change notification settings - Fork 562
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bump dependencies: Python 3.7, Torch 1.10 * Update publishing script * Consolidate unit test scripts Co-authored-by: Max Balandat <[email protected]>
- Loading branch information
Showing
13 changed files
with
136 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
|
||
name: Run Test Suite | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
workflow_call: | ||
|
||
jobs: | ||
run_linter: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.7" | ||
- name: Install dependencies | ||
run: | | ||
pip install flake8==4.0.1 flake8-print==4.0.0 pre-commit | ||
pre-commit install | ||
pre-commit run seed-isort-config || true | ||
- name: Run linting | ||
run: | | ||
flake8 | ||
- name: Run pre-commit checks | ||
# skipping flake8 here (run separatey above b/c pre-commit does not include flake8-print) | ||
run: | | ||
SKIP=flake8 pre-commit run --files test/**/*.py gpytorch/**/*.py | ||
run_unit_tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
pytorch-version: ["master", "stable"] | ||
pyro: ["with-pyro", "no-pyro"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.7" | ||
- name: Install dependencies | ||
run: | | ||
if [[ ${{ matrix.pytorch-version }} = "master" ]]; then | ||
pip install --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html; | ||
else | ||
pip install torch==1.10+cpu -f https://download.pytorch.org/whl/torch_stable.html; | ||
fi | ||
if [[ ${{ matrix.pyro }} == "with-pyro" ]]; then | ||
pip install "pyro-ppl<=1.8"; | ||
fi | ||
pip install -r requirements.txt | ||
- name: Run unit tests | ||
run: | | ||
python -m unittest discover | ||
run_examples: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.7" | ||
- name: Install dependencies | ||
run: | | ||
pip install pytest nbval jupyter tqdm matplotlib torchvision scipy | ||
python setup.py build develop | ||
pip install "pyro-ppl<=1.8"; | ||
- name: Run example notebooks | ||
run: | | ||
grep -l smoke_test examples/**/*.ipynb | xargs grep -L 'smoke_test = False' | CI=true xargs pytest --nbval-lax --current-env |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
.. role:: hidden | ||
:class: hidden-section | ||
|
||
gpytorch.metrics | ||
=================================== | ||
|
||
.. automodule:: gpytorch.metrics | ||
.. currentmodule:: gpytorch.metrics | ||
|
||
See `the metrics tutorial`_ for usage instructions. | ||
|
||
.. automethod:: gpytorch.metrics.mean_absolute_error | ||
.. automethod:: gpytorch.metrics.mean_squared_error | ||
.. automethod:: gpytorch.metrics.mean_standardized_log_loss | ||
.. automethod:: gpytorch.metrics.negative_log_predictive_density | ||
.. automethod:: gpytorch.metrics.quantile_coverage_error | ||
|
||
.. _the metrics tutorial: | ||
examples/00_Basic_Usage/Metrics.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
torch>=1.9 | ||
scikit-learn | ||
torch>=1.10 | ||
numpy | ||
scikit-learn<=1.0.2 # newer versions require py3.8 | ||
scipy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters