You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
changed default values for TruncatedNormal lower and upper from None to -np.inf… (#3250)
* changed default values for TruncatedNormal lower and upper to -np.inf and np.inf
* inserted an idea for testing in test_distributions_random.py
* included a standalone test test_truncated_normal_sample_random_variable_default_params
* minor
* minor
* changed _default value cases in continuous.TruncatedNormal to avoid np.isfinite error in distribution.Distribution
* minor
* removed test_truncated_normal_lower from TestScalarParameterSamples since pymc3_random sets paramdomains points anyway
* added TestTruncatedNormalUpper and addressed TruncatedNormal _normalization errors
* changed TruncatedNormal.logp to check for infs instead of Nones
* debugging
* debugging
* debugging
* debugging
* debugging
* debugging
* tried np.isinf and put in the requested test_truncated_normal_lower test_truncated_normal_upper tests
* added extra members self.lower_np self.upper_np for checking values
* changed to upper_check and lower_check members, with None checks
* minor
* minor
* minor
* minor
* removed corresponding paramdomains from upper and lower tests
* removed upper positional arg from test_truncated_normal_lower and vice versa
* Update pymc3/tests/test_distributions_random.py
minor syntax
Co-Authored-By: gilliss <[email protected]>
* Update pymc3/tests/test_distributions_random.py
minor syntax
Co-Authored-By: gilliss <[email protected]>
* Update pymc3/tests/test_distributions_random.py
minor syntax
Co-Authored-By: gilliss <[email protected]>
* Update pymc3/tests/test_distributions_random.py
minor syntax
Co-Authored-By: gilliss <[email protected]>
* minor syntax
* added line to docs/release-notes/pymc3-3.0.md
* moved release notes line to RELEASE-NOTES.md
Copy file name to clipboardExpand all lines: RELEASE-NOTES.md
+1
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,7 @@
29
29
- Changed initialization of `Categorical.p`. `p` is now normalized to sum to `1` inside `logp` and `random`, but not during initialization. This could hide negative values supplied to `p` as mentioned in #2082.
30
30
-`Categorical` now accepts elements of `p` equal to `0`. `logp` will return `-inf` if there are `values` that index to the zero probability categories.
31
31
- Add `sigma`, `tau`, and `sd` to signature of `NormalMixture`.
32
+
- Resolved issue #3248. Set default lower and upper values of -inf and inf for pm.distributions.continuous.TruncatedNormal. This avoids errors caused by their previous values of None.
0 commit comments