polyads 0.0.1__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.
- polyads-0.0.1/.github/workflows/python-package-conda.yml +34 -0
- polyads-0.0.1/.gitignore +130 -0
- polyads-0.0.1/LICENSE +661 -0
- polyads-0.0.1/PKG-INFO +927 -0
- polyads-0.0.1/README.md +254 -0
- polyads-0.0.1/pyproject.toml +24 -0
- polyads-0.0.1/src/polyads/__init__.py +4 -0
- polyads-0.0.1/src/polyads/binary_search.py +56 -0
- polyads-0.0.1/src/polyads/data.py +54 -0
- polyads-0.0.1/src/polyads/fitter.py +189 -0
- polyads-0.0.1/src/polyads/losses.py +77 -0
- polyads-0.0.1/src/polyads/model.py +217 -0
- polyads-0.0.1/src/polyads/polyad_eval.py +226 -0
- polyads-0.0.1/src/polyads/polyad_generation.py +191 -0
- polyads-0.0.1/src/polyads/polyad_utils.py +27 -0
- polyads-0.0.1/src/polyads/utils.py +25 -0
- polyads-0.0.1/src/polyads/validations.py +73 -0
- polyads-0.0.1/tests/basic_usage.py +31 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
name: Python Package using Conda
|
|
2
|
+
|
|
3
|
+
on: [push]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
build-linux:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
strategy:
|
|
9
|
+
max-parallel: 5
|
|
10
|
+
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v4
|
|
13
|
+
- name: Set up Python 3.10
|
|
14
|
+
uses: actions/setup-python@v3
|
|
15
|
+
with:
|
|
16
|
+
python-version: '3.10'
|
|
17
|
+
- name: Add conda to system path
|
|
18
|
+
run: |
|
|
19
|
+
# $CONDA is an environment variable pointing to the root of the miniconda directory
|
|
20
|
+
echo $CONDA/bin >> $GITHUB_PATH
|
|
21
|
+
- name: Install dependencies
|
|
22
|
+
run: |
|
|
23
|
+
conda env update --file environment.yml --name base
|
|
24
|
+
- name: Lint with flake8
|
|
25
|
+
run: |
|
|
26
|
+
conda install flake8
|
|
27
|
+
# stop the build if there are Python syntax errors or undefined names
|
|
28
|
+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
|
29
|
+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
|
30
|
+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
|
31
|
+
- name: Test with pytest
|
|
32
|
+
run: |
|
|
33
|
+
conda install pytest
|
|
34
|
+
pytest
|
polyads-0.0.1/.gitignore
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
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
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
pip-wheel-metadata/
|
|
24
|
+
share/python-wheels/
|
|
25
|
+
*.egg-info/
|
|
26
|
+
.installed.cfg
|
|
27
|
+
*.egg
|
|
28
|
+
MANIFEST
|
|
29
|
+
|
|
30
|
+
# PyInstaller
|
|
31
|
+
*.manifest
|
|
32
|
+
*.spec
|
|
33
|
+
|
|
34
|
+
# Unit test / coverage reports
|
|
35
|
+
htmlcov/
|
|
36
|
+
.tox/
|
|
37
|
+
.nox/
|
|
38
|
+
.coverage
|
|
39
|
+
.coverage.*
|
|
40
|
+
.cache
|
|
41
|
+
nosetests.xml
|
|
42
|
+
coverage.xml
|
|
43
|
+
*.cover
|
|
44
|
+
*.py,cover
|
|
45
|
+
.hypothesis/
|
|
46
|
+
.pytest_cache/
|
|
47
|
+
|
|
48
|
+
# Translations
|
|
49
|
+
*.mo
|
|
50
|
+
*.pot
|
|
51
|
+
|
|
52
|
+
# Django stuff:
|
|
53
|
+
*.log
|
|
54
|
+
local_settings.py
|
|
55
|
+
db.sqlite3
|
|
56
|
+
db.sqlite3-journal
|
|
57
|
+
|
|
58
|
+
# Flask stuff:
|
|
59
|
+
instance/
|
|
60
|
+
.webassets-cache
|
|
61
|
+
|
|
62
|
+
# Scrapy stuff:
|
|
63
|
+
.scrapy
|
|
64
|
+
|
|
65
|
+
# Sphinx documentation
|
|
66
|
+
docs/_build/
|
|
67
|
+
|
|
68
|
+
# PyBuilder
|
|
69
|
+
target/
|
|
70
|
+
|
|
71
|
+
# Jupyter Notebook
|
|
72
|
+
.ipynb_checkpoints
|
|
73
|
+
|
|
74
|
+
# IPython
|
|
75
|
+
profile_default/
|
|
76
|
+
ipython_config.py
|
|
77
|
+
|
|
78
|
+
# pyenv
|
|
79
|
+
.python-version
|
|
80
|
+
|
|
81
|
+
# pipenv
|
|
82
|
+
Pipfile.lock
|
|
83
|
+
|
|
84
|
+
# PEP 582
|
|
85
|
+
__pypackages__/
|
|
86
|
+
|
|
87
|
+
# Celery stuff
|
|
88
|
+
celerybeat-schedule
|
|
89
|
+
celerybeat.pid
|
|
90
|
+
|
|
91
|
+
# SageMath parsed files
|
|
92
|
+
*.sage.py
|
|
93
|
+
|
|
94
|
+
# Environments
|
|
95
|
+
.env
|
|
96
|
+
.venv
|
|
97
|
+
env/
|
|
98
|
+
venv/
|
|
99
|
+
ENV/
|
|
100
|
+
env.bak/
|
|
101
|
+
venv.bak/
|
|
102
|
+
|
|
103
|
+
# Spyder project settings
|
|
104
|
+
.spyderproject
|
|
105
|
+
.spyproject
|
|
106
|
+
|
|
107
|
+
# Rope project settings
|
|
108
|
+
.ropeproject
|
|
109
|
+
|
|
110
|
+
# mkdocs documentation
|
|
111
|
+
/site
|
|
112
|
+
|
|
113
|
+
# mypy
|
|
114
|
+
.mypy_cache/
|
|
115
|
+
.dmypy.json
|
|
116
|
+
dmypy.json
|
|
117
|
+
|
|
118
|
+
# Pyre type checker
|
|
119
|
+
.pyre/
|
|
120
|
+
|
|
121
|
+
# IDE
|
|
122
|
+
.vscode/
|
|
123
|
+
.idea/
|
|
124
|
+
*.swp
|
|
125
|
+
*.swo
|
|
126
|
+
*~
|
|
127
|
+
|
|
128
|
+
# OS
|
|
129
|
+
.DS_Store
|
|
130
|
+
Thumbs.db
|