-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add compile_logp convenience function (#607)
* add compile_logp convenience function * add convenience logp constructor from jax callable * towards building hssm models from simulator and jax callable * add tutorials * small compile_logp test * entering mypy hell * reduce rv to one constructor * update versions, run through tutorials
- Loading branch information
1 parent
12100bd
commit fd030b9
Showing
33 changed files
with
15,306 additions
and
6,465 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Run fast tests | ||
|
||
on: | ||
pull_request: | ||
workflow_call: | ||
|
||
jobs: | ||
run_tests: | ||
runs-on: ubuntu-latest | ||
if: ${{ ! contains(github.event.head_commit.message, '[skip fast tests]') }} | ||
env: | ||
PYTENSOR_FLAGS: "blas__ldflags=-L/usr/lib/x86_64-linux-gnu -lblas -llapack" | ||
|
||
strategy: | ||
fail-fast: true | ||
matrix: | ||
python-version: ["3.10", "3.11", "3.12"] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Poetry environment | ||
uses: ./.github/setup-poetry-env | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Run fast tests | ||
run: poetry run pytest -n auto -s --ignore=tests/slow | ||
env: | ||
PYTENSOR_FLAGS: ${{ env.PYTENSOR_FLAGS }} | ||
|
||
- name: Run jupyter notebooks in docs | ||
run: poetry run mkdocs build | ||
env: | ||
PYTENSOR_FLAGS: ${{ env.PYTENSOR_FLAGS }} |
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,35 @@ | ||
name: Run slow tests | ||
|
||
on: | ||
pull_request: | ||
workflow_call: | ||
|
||
jobs: | ||
run_tests: | ||
runs-on: ubuntu-latest | ||
if: ${{ ! contains(github.event.head_commit.message, '[skip slow tests]') }} | ||
env: | ||
PYTENSOR_FLAGS: "blas__ldflags=-L/usr/lib/x86_64-linux-gnu -lblas -llapack" | ||
|
||
strategy: | ||
fail-fast: true | ||
matrix: | ||
python-version: ["3.10", "3.11", "3.12"] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Poetry environment | ||
uses: ./.github/setup-poetry-env | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install hssm | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: poetry install --no-interaction | ||
|
||
- name: Run slow tests | ||
run: poetry run pytest -s tests/slow | ||
env: | ||
PYTENSOR_FLAGS: ${{ env.PYTENSOR_FLAGS }} |
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
3,773 changes: 3,773 additions & 0 deletions
3,773
docs/tutorials/blackbox_contribution_onnx_example.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.