liesel-gam 0.0.5.dev0__tar.gz → 0.1.0a3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- liesel_gam-0.0.5.dev0/.github/workflows/pytest-notebooks.yml → liesel_gam-0.1.0a3/.github/workflows/doctest.yml +17 -6
- {liesel_gam-0.0.5.dev0 → liesel_gam-0.1.0a3}/.github/workflows/pre-commit.yml +6 -1
- {liesel_gam-0.0.5.dev0 → liesel_gam-0.1.0a3}/.github/workflows/pypi.yml +1 -1
- liesel_gam-0.1.0a3/.github/workflows/pytest-notebooks.yml +62 -0
- liesel_gam-0.1.0a3/.github/workflows/pytest-pull.yml +59 -0
- {liesel_gam-0.0.5.dev0 → liesel_gam-0.1.0a3}/.github/workflows/pytest.yml +13 -4
- {liesel_gam-0.0.5.dev0 → liesel_gam-0.1.0a3}/.gitignore +9 -0
- liesel_gam-0.1.0a3/.readthedocs.yaml +27 -0
- liesel_gam-0.1.0a3/PKG-INFO +566 -0
- liesel_gam-0.1.0a3/README.md +549 -0
- liesel_gam-0.1.0a3/docs/Makefile +20 -0
- liesel_gam-0.1.0a3/docs/make.bat +35 -0
- liesel_gam-0.1.0a3/docs/requirements.txt +156 -0
- liesel_gam-0.1.0a3/docs/source/_static/custom.css +39 -0
- liesel_gam-0.1.0a3/docs/source/_static/logo-light.png +0 -0
- liesel_gam-0.1.0a3/docs/source/_templates/autosummary/attribute.rst +6 -0
- liesel_gam-0.1.0a3/docs/source/_templates/autosummary/class.rst +55 -0
- liesel_gam-0.1.0a3/docs/source/_templates/autosummary/function.rst +6 -0
- liesel_gam-0.1.0a3/docs/source/_templates/autosummary/method.rst +6 -0
- liesel_gam-0.1.0a3/docs/source/_templates/autosummary/module.rst +68 -0
- liesel_gam-0.1.0a3/docs/source/conf.py +143 -0
- liesel_gam-0.1.0a3/docs/source/index.rst +219 -0
- liesel_gam-0.1.0a3/docs/source/notebooks_composite.rst +10 -0
- liesel_gam-0.1.0a3/docs/source/notebooks_lin.rst +10 -0
- liesel_gam-0.1.0a3/docs/source/notebooks_multivariate.rst +10 -0
- liesel_gam-0.1.0a3/docs/source/notebooks_univariate.rst +10 -0
- liesel_gam-0.1.0a3/docs/source/plots.png +1 -0
- liesel_gam-0.1.0a3/docs/source/welcome.md +30 -0
- liesel_gam-0.1.0a3/img/plots.png +0 -0
- liesel_gam-0.1.0a3/img/plots2.png +0 -0
- liesel_gam-0.1.0a3/img/plots3.png +0 -0
- liesel_gam-0.1.0a3/img/s1(x).png +0 -0
- {liesel_gam-0.0.5.dev0 → liesel_gam-0.1.0a3}/pyproject.toml +15 -2
- liesel_gam-0.1.0a3/src/liesel_gam/__about__.py +1 -0
- liesel_gam-0.1.0a3/src/liesel_gam/__init__.py +67 -0
- liesel_gam-0.1.0a3/src/liesel_gam/basis.py +832 -0
- liesel_gam-0.1.0a3/src/liesel_gam/basis_builder.py +1865 -0
- liesel_gam-0.1.0a3/src/liesel_gam/category_mapping.py +163 -0
- liesel_gam-0.1.0a3/src/liesel_gam/consolidate_bases.py +107 -0
- liesel_gam-0.1.0a3/src/liesel_gam/constraint.py +148 -0
- liesel_gam-0.1.0a3/src/liesel_gam/demo_data.py +114 -0
- liesel_gam-0.1.0a3/src/liesel_gam/dist.py +944 -0
- liesel_gam-0.1.0a3/src/liesel_gam/experimental/__init__.py +1 -0
- liesel_gam-0.1.0a3/src/liesel_gam/experimental/approx_bspline.py +429 -0
- liesel_gam-0.1.0a3/src/liesel_gam/kernel.py +150 -0
- liesel_gam-0.1.0a3/src/liesel_gam/names.py +69 -0
- liesel_gam-0.1.0a3/src/liesel_gam/plots.py +712 -0
- liesel_gam-0.1.0a3/src/liesel_gam/predictor.py +220 -0
- liesel_gam-0.1.0a3/src/liesel_gam/registry.py +550 -0
- liesel_gam-0.1.0a3/src/liesel_gam/summary.py +746 -0
- liesel_gam-0.1.0a3/src/liesel_gam/term.py +1258 -0
- liesel_gam-0.1.0a3/src/liesel_gam/term_builder.py +3098 -0
- liesel_gam-0.1.0a3/src/liesel_gam/var.py +280 -0
- {liesel_gam-0.0.5.dev0 → liesel_gam-0.1.0a3}/uv.lock +670 -9
- liesel_gam-0.0.5.dev0/PKG-INFO +0 -166
- liesel_gam-0.0.5.dev0/README.md +0 -151
- liesel_gam-0.0.5.dev0/src/liesel_gam/__about__.py +0 -1
- liesel_gam-0.0.5.dev0/src/liesel_gam/__init__.py +0 -9
- liesel_gam-0.0.5.dev0/src/liesel_gam/dist.py +0 -100
- liesel_gam-0.0.5.dev0/src/liesel_gam/kernel.py +0 -48
- liesel_gam-0.0.5.dev0/src/liesel_gam/predictor.py +0 -48
- liesel_gam-0.0.5.dev0/src/liesel_gam/roles.py +0 -9
- liesel_gam-0.0.5.dev0/src/liesel_gam/var.py +0 -220
- {liesel_gam-0.0.5.dev0 → liesel_gam-0.1.0a3}/.gitattributes +0 -0
- {liesel_gam-0.0.5.dev0 → liesel_gam-0.1.0a3}/.pre-commit-config.yaml +0 -0
- {liesel_gam-0.0.5.dev0 → liesel_gam-0.1.0a3}/LICENSE +0 -0
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
name:
|
|
1
|
+
name: doctest
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
5
|
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main, develop]
|
|
8
|
+
workflow_dispatch: # trigger manually from GitHub UI
|
|
9
|
+
|
|
10
|
+
concurrency:
|
|
11
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
12
|
+
cancel-in-progress: true
|
|
6
13
|
|
|
7
14
|
jobs:
|
|
8
15
|
pytest:
|
|
@@ -31,12 +38,16 @@ jobs:
|
|
|
31
38
|
r-version: 'release'
|
|
32
39
|
use-public-rspm: true
|
|
33
40
|
|
|
34
|
-
- name:
|
|
35
|
-
run:
|
|
41
|
+
- name: Fix R library path
|
|
42
|
+
run: |
|
|
43
|
+
echo "LD_LIBRARY_PATH=$(R RHOME)/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV
|
|
36
44
|
|
|
37
|
-
- name:
|
|
45
|
+
- name: Install R dependencies
|
|
38
46
|
run: |
|
|
39
|
-
|
|
47
|
+
Rscript -e "install.packages('arrow')"
|
|
48
|
+
|
|
49
|
+
- name: Install Package
|
|
50
|
+
run: uv sync --locked --group dev
|
|
40
51
|
|
|
41
52
|
- name: Debug R environment
|
|
42
53
|
run: |
|
|
@@ -47,4 +58,4 @@ jobs:
|
|
|
47
58
|
|
|
48
59
|
|
|
49
60
|
- name: Run pytest
|
|
50
|
-
run: uv run pytest
|
|
61
|
+
run: uv run pytest --doctest-modules src/liesel_gam
|
|
@@ -4,7 +4,12 @@ on:
|
|
|
4
4
|
push:
|
|
5
5
|
branches: [main]
|
|
6
6
|
pull_request:
|
|
7
|
-
branches: [main]
|
|
7
|
+
branches: [main, develop]
|
|
8
|
+
workflow_dispatch: # trigger manually from GitHub UI
|
|
9
|
+
|
|
10
|
+
concurrency:
|
|
11
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
12
|
+
cancel-in-progress: true
|
|
8
13
|
|
|
9
14
|
jobs:
|
|
10
15
|
pre-commit:
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
name: notebooks
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main, develop]
|
|
8
|
+
workflow_dispatch: # trigger manually from GitHub UI
|
|
9
|
+
|
|
10
|
+
concurrency:
|
|
11
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
12
|
+
cancel-in-progress: true
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
pytest:
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
timeout-minutes: 15
|
|
18
|
+
|
|
19
|
+
strategy:
|
|
20
|
+
matrix:
|
|
21
|
+
python-version: ["3.13"]
|
|
22
|
+
notebook-dir: ["composite", "lin", "multivariate", "univariate"]
|
|
23
|
+
|
|
24
|
+
steps:
|
|
25
|
+
- name: Check out repository
|
|
26
|
+
uses: actions/checkout@v4
|
|
27
|
+
|
|
28
|
+
- name: Install uv and set the python version
|
|
29
|
+
uses: astral-sh/setup-uv@v5
|
|
30
|
+
with:
|
|
31
|
+
python-version: ${{ matrix.python-version }}
|
|
32
|
+
enable-cache: true
|
|
33
|
+
cache-dependency-glob: "uv.lock"
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
- name: Set up R
|
|
37
|
+
uses: r-lib/actions/setup-r@v2
|
|
38
|
+
with:
|
|
39
|
+
r-version: 'release'
|
|
40
|
+
use-public-rspm: true
|
|
41
|
+
|
|
42
|
+
- name: Fix R library path
|
|
43
|
+
run: |
|
|
44
|
+
echo "LD_LIBRARY_PATH=$(R RHOME)/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV
|
|
45
|
+
|
|
46
|
+
- name: Install R dependencies
|
|
47
|
+
run: |
|
|
48
|
+
Rscript -e "install.packages(c('arrow', 'svglite'))"
|
|
49
|
+
|
|
50
|
+
- name: Install Package
|
|
51
|
+
run: uv sync --locked --group dev
|
|
52
|
+
|
|
53
|
+
- name: Debug R environment
|
|
54
|
+
run: |
|
|
55
|
+
echo "R_HOME=$(R RHOME)"
|
|
56
|
+
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
|
|
57
|
+
find $(R RHOME) -name methods.so
|
|
58
|
+
find $(R RHOME) -name libR.so
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
- name: Run pytest
|
|
62
|
+
run: uv run pytest notebooks/${{ matrix.notebook-dir }} --nbval-lax --nbval-current-env
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
name: pytest-pull
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches: [main, develop]
|
|
6
|
+
workflow_dispatch: # trigger manually from GitHub UI
|
|
7
|
+
|
|
8
|
+
concurrency:
|
|
9
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
10
|
+
cancel-in-progress: true
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
pytest:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
timeout-minutes: 10
|
|
16
|
+
|
|
17
|
+
strategy:
|
|
18
|
+
matrix:
|
|
19
|
+
python-version: ["3.13"]
|
|
20
|
+
|
|
21
|
+
steps:
|
|
22
|
+
- name: Check out repository
|
|
23
|
+
uses: actions/checkout@v4
|
|
24
|
+
|
|
25
|
+
- name: Install uv and set the python version
|
|
26
|
+
uses: astral-sh/setup-uv@v5
|
|
27
|
+
with:
|
|
28
|
+
python-version: ${{ matrix.python-version }}
|
|
29
|
+
enable-cache: true
|
|
30
|
+
cache-dependency-glob: "uv.lock"
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
- name: Set up R
|
|
34
|
+
uses: r-lib/actions/setup-r@v2
|
|
35
|
+
with:
|
|
36
|
+
r-version: 'release'
|
|
37
|
+
use-public-rspm: true
|
|
38
|
+
|
|
39
|
+
- name: Fix R library path
|
|
40
|
+
run: |
|
|
41
|
+
echo "LD_LIBRARY_PATH=$(R RHOME)/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV
|
|
42
|
+
|
|
43
|
+
- name: Install R dependencies
|
|
44
|
+
run: |
|
|
45
|
+
Rscript -e "install.packages('arrow')"
|
|
46
|
+
|
|
47
|
+
- name: Install Package
|
|
48
|
+
run: uv sync --locked --group dev
|
|
49
|
+
|
|
50
|
+
- name: Debug R environment
|
|
51
|
+
run: |
|
|
52
|
+
echo "R_HOME=$(R RHOME)"
|
|
53
|
+
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
|
|
54
|
+
find $(R RHOME) -name methods.so
|
|
55
|
+
find $(R RHOME) -name libR.so
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
- name: Run pytest
|
|
59
|
+
run: uv run pytest --cov=liesel_gam
|
|
@@ -3,6 +3,11 @@ name: pytest
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
5
|
branches: [main]
|
|
6
|
+
workflow_dispatch: # trigger manually from GitHub UI
|
|
7
|
+
|
|
8
|
+
concurrency:
|
|
9
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
10
|
+
cancel-in-progress: true
|
|
6
11
|
|
|
7
12
|
jobs:
|
|
8
13
|
pytest:
|
|
@@ -31,12 +36,16 @@ jobs:
|
|
|
31
36
|
r-version: 'release'
|
|
32
37
|
use-public-rspm: true
|
|
33
38
|
|
|
34
|
-
- name:
|
|
35
|
-
run:
|
|
39
|
+
- name: Fix R library path
|
|
40
|
+
run: |
|
|
41
|
+
echo "LD_LIBRARY_PATH=$(R RHOME)/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV
|
|
36
42
|
|
|
37
|
-
- name:
|
|
43
|
+
- name: Install R dependencies
|
|
38
44
|
run: |
|
|
39
|
-
|
|
45
|
+
Rscript -e "install.packages('arrow')"
|
|
46
|
+
|
|
47
|
+
- name: Install Package
|
|
48
|
+
run: uv sync --locked --group dev
|
|
40
49
|
|
|
41
50
|
- name: Debug R environment
|
|
42
51
|
run: |
|
|
@@ -176,3 +176,12 @@ cython_debug/
|
|
|
176
176
|
/.vscode
|
|
177
177
|
/tests/data
|
|
178
178
|
.DS_Store
|
|
179
|
+
notebooks/test_ti_smooth.ipynb
|
|
180
|
+
notebooks/test_mrf.R
|
|
181
|
+
img/Präsentation1.pptx
|
|
182
|
+
covtest.sh
|
|
183
|
+
/docs/source/generated
|
|
184
|
+
notebooks/multivariate/test_tx_optim.ipynb
|
|
185
|
+
/doctests
|
|
186
|
+
notebooks/univariate/test_ps_nosmooth.ipynb
|
|
187
|
+
notebooks/univariate/test_ps_smooth_constant_prior.ipynb
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Read the Docs configuration file
|
|
2
|
+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
|
|
3
|
+
|
|
4
|
+
# Required
|
|
5
|
+
version: 2
|
|
6
|
+
|
|
7
|
+
# Set the OS, Python version, and other tools you might need
|
|
8
|
+
build:
|
|
9
|
+
os: ubuntu-24.04
|
|
10
|
+
tools:
|
|
11
|
+
python: "3.13"
|
|
12
|
+
jobs:
|
|
13
|
+
install:
|
|
14
|
+
- python -m pip install --upgrade pip
|
|
15
|
+
- python -m pip install . --group dev
|
|
16
|
+
- python -m pip list
|
|
17
|
+
|
|
18
|
+
# Build documentation in the "docs/" directory with Sphinx
|
|
19
|
+
sphinx:
|
|
20
|
+
configuration: docs/source/conf.py
|
|
21
|
+
|
|
22
|
+
# Optionally, but recommended,
|
|
23
|
+
# declare the Python requirements required to build your documentation
|
|
24
|
+
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
|
|
25
|
+
# python:
|
|
26
|
+
# install:
|
|
27
|
+
# - requirements: docs/requirements.txt
|