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.
Files changed (66) hide show
  1. liesel_gam-0.0.5.dev0/.github/workflows/pytest-notebooks.yml → liesel_gam-0.1.0a3/.github/workflows/doctest.yml +17 -6
  2. {liesel_gam-0.0.5.dev0 → liesel_gam-0.1.0a3}/.github/workflows/pre-commit.yml +6 -1
  3. {liesel_gam-0.0.5.dev0 → liesel_gam-0.1.0a3}/.github/workflows/pypi.yml +1 -1
  4. liesel_gam-0.1.0a3/.github/workflows/pytest-notebooks.yml +62 -0
  5. liesel_gam-0.1.0a3/.github/workflows/pytest-pull.yml +59 -0
  6. {liesel_gam-0.0.5.dev0 → liesel_gam-0.1.0a3}/.github/workflows/pytest.yml +13 -4
  7. {liesel_gam-0.0.5.dev0 → liesel_gam-0.1.0a3}/.gitignore +9 -0
  8. liesel_gam-0.1.0a3/.readthedocs.yaml +27 -0
  9. liesel_gam-0.1.0a3/PKG-INFO +566 -0
  10. liesel_gam-0.1.0a3/README.md +549 -0
  11. liesel_gam-0.1.0a3/docs/Makefile +20 -0
  12. liesel_gam-0.1.0a3/docs/make.bat +35 -0
  13. liesel_gam-0.1.0a3/docs/requirements.txt +156 -0
  14. liesel_gam-0.1.0a3/docs/source/_static/custom.css +39 -0
  15. liesel_gam-0.1.0a3/docs/source/_static/logo-light.png +0 -0
  16. liesel_gam-0.1.0a3/docs/source/_templates/autosummary/attribute.rst +6 -0
  17. liesel_gam-0.1.0a3/docs/source/_templates/autosummary/class.rst +55 -0
  18. liesel_gam-0.1.0a3/docs/source/_templates/autosummary/function.rst +6 -0
  19. liesel_gam-0.1.0a3/docs/source/_templates/autosummary/method.rst +6 -0
  20. liesel_gam-0.1.0a3/docs/source/_templates/autosummary/module.rst +68 -0
  21. liesel_gam-0.1.0a3/docs/source/conf.py +143 -0
  22. liesel_gam-0.1.0a3/docs/source/index.rst +219 -0
  23. liesel_gam-0.1.0a3/docs/source/notebooks_composite.rst +10 -0
  24. liesel_gam-0.1.0a3/docs/source/notebooks_lin.rst +10 -0
  25. liesel_gam-0.1.0a3/docs/source/notebooks_multivariate.rst +10 -0
  26. liesel_gam-0.1.0a3/docs/source/notebooks_univariate.rst +10 -0
  27. liesel_gam-0.1.0a3/docs/source/plots.png +1 -0
  28. liesel_gam-0.1.0a3/docs/source/welcome.md +30 -0
  29. liesel_gam-0.1.0a3/img/plots.png +0 -0
  30. liesel_gam-0.1.0a3/img/plots2.png +0 -0
  31. liesel_gam-0.1.0a3/img/plots3.png +0 -0
  32. liesel_gam-0.1.0a3/img/s1(x).png +0 -0
  33. {liesel_gam-0.0.5.dev0 → liesel_gam-0.1.0a3}/pyproject.toml +15 -2
  34. liesel_gam-0.1.0a3/src/liesel_gam/__about__.py +1 -0
  35. liesel_gam-0.1.0a3/src/liesel_gam/__init__.py +67 -0
  36. liesel_gam-0.1.0a3/src/liesel_gam/basis.py +832 -0
  37. liesel_gam-0.1.0a3/src/liesel_gam/basis_builder.py +1865 -0
  38. liesel_gam-0.1.0a3/src/liesel_gam/category_mapping.py +163 -0
  39. liesel_gam-0.1.0a3/src/liesel_gam/consolidate_bases.py +107 -0
  40. liesel_gam-0.1.0a3/src/liesel_gam/constraint.py +148 -0
  41. liesel_gam-0.1.0a3/src/liesel_gam/demo_data.py +114 -0
  42. liesel_gam-0.1.0a3/src/liesel_gam/dist.py +944 -0
  43. liesel_gam-0.1.0a3/src/liesel_gam/experimental/__init__.py +1 -0
  44. liesel_gam-0.1.0a3/src/liesel_gam/experimental/approx_bspline.py +429 -0
  45. liesel_gam-0.1.0a3/src/liesel_gam/kernel.py +150 -0
  46. liesel_gam-0.1.0a3/src/liesel_gam/names.py +69 -0
  47. liesel_gam-0.1.0a3/src/liesel_gam/plots.py +712 -0
  48. liesel_gam-0.1.0a3/src/liesel_gam/predictor.py +220 -0
  49. liesel_gam-0.1.0a3/src/liesel_gam/registry.py +550 -0
  50. liesel_gam-0.1.0a3/src/liesel_gam/summary.py +746 -0
  51. liesel_gam-0.1.0a3/src/liesel_gam/term.py +1258 -0
  52. liesel_gam-0.1.0a3/src/liesel_gam/term_builder.py +3098 -0
  53. liesel_gam-0.1.0a3/src/liesel_gam/var.py +280 -0
  54. {liesel_gam-0.0.5.dev0 → liesel_gam-0.1.0a3}/uv.lock +670 -9
  55. liesel_gam-0.0.5.dev0/PKG-INFO +0 -166
  56. liesel_gam-0.0.5.dev0/README.md +0 -151
  57. liesel_gam-0.0.5.dev0/src/liesel_gam/__about__.py +0 -1
  58. liesel_gam-0.0.5.dev0/src/liesel_gam/__init__.py +0 -9
  59. liesel_gam-0.0.5.dev0/src/liesel_gam/dist.py +0 -100
  60. liesel_gam-0.0.5.dev0/src/liesel_gam/kernel.py +0 -48
  61. liesel_gam-0.0.5.dev0/src/liesel_gam/predictor.py +0 -48
  62. liesel_gam-0.0.5.dev0/src/liesel_gam/roles.py +0 -9
  63. liesel_gam-0.0.5.dev0/src/liesel_gam/var.py +0 -220
  64. {liesel_gam-0.0.5.dev0 → liesel_gam-0.1.0a3}/.gitattributes +0 -0
  65. {liesel_gam-0.0.5.dev0 → liesel_gam-0.1.0a3}/.pre-commit-config.yaml +0 -0
  66. {liesel_gam-0.0.5.dev0 → liesel_gam-0.1.0a3}/LICENSE +0 -0
@@ -1,8 +1,15 @@
1
- name: notebooks
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: Install Package
35
- run: uv sync --locked --group dev
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: Add R shared libraries to LD_LIBRARY_PATH
45
+ - name: Install R dependencies
38
46
  run: |
39
- echo "LD_LIBRARY_PATH=$(python -m rpy2.situation LD_LIBRARY_PATH):\$LD_LIBRARY_PATH" >> $GITHUB_ENV
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 tests/notebooks --nbval-lax --nbval-current-env
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:
@@ -36,7 +36,7 @@ jobs:
36
36
  run: uv build
37
37
 
38
38
  - name: Publish package
39
- uses: pypa/gh-action-pypi-publish@v1.5.0
39
+ uses: pypa/gh-action-pypi-publish@v1.13.0
40
40
  with:
41
41
  user: __token__
42
42
  password: ${{ secrets.PYPI_UPLOAD }}
@@ -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: Install Package
35
- run: uv sync --locked --group dev
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: Add R shared libraries to LD_LIBRARY_PATH
43
+ - name: Install R dependencies
38
44
  run: |
39
- echo "LD_LIBRARY_PATH=$(python -m rpy2.situation LD_LIBRARY_PATH):\$LD_LIBRARY_PATH" >> $GITHUB_ENV
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