Skip to content

Replacing log with log1p where applicable.#11428

Merged
qinhanmin2014 merged 7 commits intoscikit-learn:masterfrom
meetnaren:master
Jul 14, 2018
Merged

Replacing log with log1p where applicable.#11428
qinhanmin2014 merged 7 commits intoscikit-learn:masterfrom
meetnaren:master

Conversation

@meetnaren
Copy link
Copy Markdown
Contributor

Reference Issues/PRs

What does this implement/fix? Explain your changes.

Any other comments?

@qinhanmin2014
Copy link
Copy Markdown
Member

It seems that the PR is not complete, please carefully follow #11424 (comment).

Copy link
Copy Markdown
Member

@jnothman jnothman left a comment

Choose a reason for hiding this comment

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

You're right... I was lax to not check, while on my phone.

Copy link
Copy Markdown
Member

@qinhanmin2014 qinhanmin2014 left a comment

Choose a reason for hiding this comment

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

LGTM. Will merge when green.

@qinhanmin2014 qinhanmin2014 merged commit eeee6a5 into scikit-learn:master Jul 14, 2018
@amueller
Copy link
Copy Markdown
Member

This is not the right fix and is likely to lead to performance issues, I think. You shouldn't use the numpy function in cython code, you should be using libc.math.log1p (still profiling though)

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.

4 participants