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

Oslo method errors #187

Draft
wants to merge 38 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
da6739e
Added a Fermi-Gas like probability distribution
vetlewi Aug 3, 2021
5c1aa9b
Added ErrorFinder class
vetlewi Aug 3, 2021
97ca023
Changed filename for EnsembleNormalizer
vetlewi Aug 3, 2021
6efe711
Fixed bugs and make sure the dist test works
vetlewi Aug 3, 2021
cf266fa
Debug etc
vetlewi Aug 3, 2021
2d4c162
An updated, now fully working version of the error_finder class
vetlewi Aug 11, 2021
9682048
Added pyMC3 as dependency
vetlewi Aug 11, 2021
8ae8a10
Updated release notes
vetlewi Aug 11, 2021
88c7ac7
Initial version of the notebook
vetlewi Aug 11, 2021
65cae01
Added a call wrapper
vetlewi Aug 12, 2021
0e10713
Added an indices method similar to that of the Matrix class
vetlewi Aug 12, 2021
06796a6
Added uncertainty estimation after extraction
vetlewi Aug 12, 2021
14d79b0
Added note about the indices method
vetlewi Aug 12, 2021
13d896f
Overwrite file output to ensure errors are stored
vetlewi Aug 12, 2021
54ace62
Bugfix
vetlewi Aug 13, 2021
4331b52
Updates of the notebook
vetlewi Sep 27, 2021
92b3097
Fixing some style issues
vetlewi Sep 27, 2021
f50b513
Update release_note.md
vetlewi Sep 30, 2021
e5de25d
Moved `all_equal` function to end of file
vetlewi Sep 30, 2021
c958eb6
Update ompy/error_finder.py
vetlewi Sep 30, 2021
ba988f2
Minor style fixes
vetlewi Sep 30, 2021
8d6c577
Better error message
vetlewi Sep 30, 2021
785c674
Better comments
vetlewi Sep 30, 2021
4fb4766
Added note about the new notebook
vetlewi Sep 30, 2021
df97416
Prior params can be modified
vetlewi Oct 13, 2021
00e62f1
Added todo
vetlewi Oct 13, 2021
48cb4bb
Added option to suppress warnings
vetlewi Oct 22, 2021
dee03d7
Changed formula
vetlewi Oct 27, 2021
3a72c2f
Added plot example to docstring
vetlewi Oct 27, 2021
760a979
Removed the linear version
vetlewi Oct 28, 2021
621c95c
Refactoring of error_finder
vetlewi Oct 29, 2021
8ffc7e7
Ensure nan is removed
vetlewi Jan 5, 2022
19c79b7
Similar to previous commit, but with some additional fixes
vetlewi Jan 5, 2022
ab00bd8
Added kwargs
vetlewi Jan 5, 2022
419e1a0
Added option to get the trace from the inference
vetlewi Jan 5, 2022
0d87d8f
Merge branch 'nan-remove-normalizers' into oslo-method-errors
vetlewi Jan 5, 2022
0e61dff
Some changes... Only here though...
vetlewi Jul 25, 2022
394e29d
Updated to work with pymc version 5
vetlewi Jan 5, 2023
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
Prev Previous commit
Next Next commit
Minor style fixes
vetlewi committed Oct 28, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit ba988f2d61317299504f492951ab3a42a8a24ab9
6 changes: 6 additions & 0 deletions ompy/dist/fermi_dirac.py
Original file line number Diff line number Diff line change
@@ -66,6 +66,7 @@ def _random(self, lam, mu, size=None):
def random(self, point=None, size=None):
"""
Draw random values from Fermi-Dirac distribution.

Parameters
----------
point: dict, optional
@@ -74,6 +75,7 @@ def random(self, point=None, size=None):
size: int, optional
Desired size of random sample (returns one sample if not
specified).

Returns
-------
array
@@ -86,12 +88,14 @@ def logp(self, value):
"""
Calculate log-probability of Fermi-Dirac distribution at specified
value.

Parameters
----------
value: numeric
Value(s) for which log-probability is calculated. If the log
probabilities for multiple values are desired the values must be
provided in a numpy array or theano tensor

Returns
-------
TensorVariable
@@ -108,12 +112,14 @@ def logcdf(self, value):
"""
Compute the log of cumulative distribution function for the Fermi-Dirac
distribution at the specified value.

Parameters
----------
value: numeric or np.ndarray or theano.tensor
Value(s) for which log CDF is calculated. If the log CDF for
multiple values are desired the values must be provided in a numpy
array or theano tensor.

Returns
-------
TensorVariable
2 changes: 2 additions & 0 deletions ompy/dist/fermi_dirac_pymc4.py
Original file line number Diff line number Diff line change
@@ -109,12 +109,14 @@ def logcdf(value, lam, mu):
"""
Compute the log of cumulative distribution function for the Fermi-Dirac
distribution at the specified value.

Parameters
----------
value: numeric or np.ndarray or aesara.tensor
Value(s) for which log CDF is calculated. If the log CDF for
multiple values are desired the values must be provided in a numpy
array or Aesara tensor.

Returns
-------
TensorVariable