Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement expertsystem SymPy model #203

Closed
wants to merge 34 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
e4b5d0f
build: install sympy expertsystem
redeboer Jan 26, 2021
956d2b8
ci: add numba to style requirements
redeboer Feb 18, 2021
0b50e84
ci: add jax to test and doc requirements
redeboer Feb 18, 2021
11f6617
ci: upgrade developer dependencies (automatic)
redeboer Feb 9, 2021
ce546da
TEMP ci: deactivate upgrade workflow
redeboer Feb 18, 2021
97cad34
TEMP ci: run notebooks on RTD branch previews
redeboer Feb 16, 2021
4a1c824
feat: add sympy base model Function adapter
spflueger Jan 26, 2021
f3a7ff6
refactor: calculate non squared invariant masses
spflueger Feb 8, 2021
cf55022
feat: define SympyModel interface
spflueger Feb 8, 2021
58d05c3
feat!: add unbinned log likelihood for SympyModels
spflueger Feb 8, 2021
99bcae5
feat: add common backend argument process function
spflueger Feb 9, 2021
0c5f4d6
feat!: add gradient support for estimators
spflueger Feb 9, 2021
778b23b
docs: add sympy notebooks
redeboer Feb 9, 2021
79c1314
docs: illustrate runtimes backend switch
redeboer Feb 9, 2021
003c1af
docs: run jax with analytic gradient
redeboer Feb 10, 2021
15ae83e
chore: make pylint and mypy work
spflueger Feb 10, 2021
6636cdc
test: analytic gradient creator function using jax
spflueger Feb 10, 2021
bba3ae5
feat: allow complex valued parameters + flattening
spflueger Feb 16, 2021
c8e6dd6
fix: allow YamlSummary to dump and load complex
redeboer Feb 17, 2021
e240892
chore: remove old AmplitudeModel code and fix tests
spflueger Feb 16, 2021
bb45f92
docs: update usage notebooks new sympy design
spflueger Feb 17, 2021
b3b80d8
refactor: wrap sympy lambdify for custom behavior
spflueger Feb 18, 2021
2134119
feat: add numba.jit support
redeboer Feb 18, 2021
c44b808
docs: illustrate complete workflow on one page
redeboer Feb 18, 2021
8aafa20
fix: add option to disable tqdm in minuit
redeboer Feb 18, 2021
f8a7556
docs: add live plot of fit with custom callback
redeboer Feb 18, 2021
60f5d83
refactor: adapt to latest version of sympy expertsystem
redeboer Feb 24, 2021
3be27d6
chore: adapt docs and type changes for Function
spflueger Mar 2, 2021
585c6f8
chore: remove old Unbinned Log Likelihood
spflueger Mar 2, 2021
cd45027
WIP refactor!: implement HelicityKinematics.convert
redeboer Mar 5, 2021
1ccb487
WIP: improve interfaces
spflueger Mar 8, 2021
d4ac59f
WIP fix: finish Model implementation up to type hints
redeboer Mar 8, 2021
1f16c5f
Merge branch 'sympy-new-interface' into sympy
redeboer Mar 8, 2021
ff54436
WIP refactor: implement MomentumPool from expertsystem
redeboer Mar 8, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 0 additions & 82 deletions .github/workflows/requirements-pr.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*.json
*.npy
*.pdf
*.pickle
*.png
*.svg
*.v2
Expand Down
21 changes: 20 additions & 1 deletion cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
],
"language": "en-US",
"words": [
"backends",
"blatt",
"bottomness",
"breit",
Expand All @@ -72,6 +73,7 @@
"itertools",
"jsonschema",
"jupyter",
"lineshape",
"mathbb",
"matplotlib",
"mkdir",
Expand All @@ -97,17 +99,20 @@
"topness",
"traceback",
"unbinned",
"vectorize",
"venv",
"weisskopf",
"xcode",
"zfit"
],
"ignoreWords": [
"amplitf",
"arange",
"atfi",
"axvline",
"cano",
"celltoolbar",
"cmin",
"codacy",
"codecov",
"codemirror",
Expand All @@ -118,18 +123,24 @@
"dtype",
"eval",
"evalf",
"figsize",
"fmin",
"fval",
"genindex",
"gridspec",
"heli",
"histtype",
"iloc",
"imag",
"iminuit",
"indeterministic",
"isort",
"jupyterlab",
"keras",
"kernelspec",
"lambdification",
"lambdified",
"lambdify",
"linestyle",
"linkcheck",
"linspace",
Expand All @@ -148,6 +159,7 @@
"ncalls",
"ndarray",
"noqa",
"numba",
"pandoc",
"phasespace",
"phsp",
Expand All @@ -162,11 +174,18 @@
"pytestconfig",
"rightarrow",
"rtfd",
"scipy",
"seealso",
"sharex",
"subsys",
"tolist",
"tqdm",
"unflatten",
"unflattened",
"unnormalized",
"vstack",
"xlabel"
"xlabel",
"xlim",
"ylim"
]
}
5 changes: 3 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
# Intersphinx settings
intersphinx_mapping = {
"expertsystem": (
"https://pwa.readthedocs.io/projects/expertsystem/en/0.6.9",
"https://pwa.readthedocs.io/projects/expertsystem/en/sympy",
None,
),
"iminuit": ("https://iminuit.readthedocs.io/en/stable", None),
Expand All @@ -146,6 +146,7 @@
"pwa": ("https://pwa.readthedocs.io", None),
"pycompwa": ("https://compwa.github.io", None),
"python": ("https://docs.python.org/3", None),
"sympy": ("https://docs.sympy.org/latest", None),
"tensorflow": (
"https://www.tensorflow.org/api_docs/python",
"tensorflow.inv",
Expand Down Expand Up @@ -182,7 +183,7 @@
nb_render_priority["doctest"] = nb_render_priority["html"]

jupyter_execute_notebooks = "off"
if "EXECUTE_NB" in os.environ:
if "EXECUTE_NB" in os.environ or "READTHEDOCS" in os.environ:
print("\033[93;1mWill run Jupyter notebooks!\033[0m")
jupyter_execute_notebooks = "force"

Expand Down
Loading