Skip to content

Remove redundant log1pexp reimplementation in Logistic CDF #4406

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

Merged
merged 1 commit into from
Jan 4, 2021

Conversation

ricardoV94
Copy link
Member

@ricardoV94 ricardoV94 commented Jan 4, 2021

Re-implementation seems unnecessary given log1pexp/softplus is already implemented in Theano.

In addition, after aesara-devs/aesara#262 the exact same algorithm will be used in the Theano default implementation.

Note: I also sorted the random and logp methods to be in line with most of the distributions in the library.

Also: Reorder logp and random to be in line with rest of the library
@codecov
Copy link

codecov bot commented Jan 4, 2021

Codecov Report

Merging #4406 (bf5bf1f) into master (e783106) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4406      +/-   ##
==========================================
- Coverage   88.15%   88.15%   -0.01%     
==========================================
  Files          88       88              
  Lines       14565    14564       -1     
==========================================
- Hits        12840    12839       -1     
  Misses       1725     1725              
Impacted Files Coverage Δ
pymc3/distributions/continuous.py 94.45% <100.00%> (-0.01%) ⬇️

Copy link
Contributor

@AlexAndorra AlexAndorra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, thanks @ricardoV94 !

@AlexAndorra AlexAndorra merged commit 982bb4d into pymc-devs:master Jan 4, 2021
@ricardoV94 ricardoV94 deleted the remove_redundant_log1pexp branch April 22, 2021 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants