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

[WIP] Change print statements to logging #17808

Closed
wants to merge 2 commits into from

Conversation

rubywerman
Copy link
Contributor

Reference Issues/PRs

See #17439

What does this implement/fix? Explain your changes.

Change print statements to logging

Any other comments?

First stab at logging
@flosincapite

@@ -39,6 +40,7 @@
from ._k_means_elkan import elkan_iter_chunked_dense
from ._k_means_elkan import elkan_iter_chunked_sparse

logger = logging.getLogger(__name__)

Choose a reason for hiding this comment

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

I think they want a global logger, like

logging.getLogger('sklearn')

@rth
Copy link
Member

rth commented Jul 1, 2020

Hi @rubywerman and @flosincapite I don't think there is a clear consensus on what we want to do on logging yet. It is likely it won't be a simple replacement of print by logging, see concerns raised in linked/related issues.

@flosincapite
Copy link

Hi @rth ! @rubywerman and @lucylow have checked out the related issues. What would be the best way to proceed? Would a design document with a clear API proposal be a good first step?

@thomasjpfan
Copy link
Member

I think this issue is more involved then we thought it would be. See #78 (comment)

@adrinjalali
Copy link
Member

Once we have a clear consensus and understanding of how we'd like to proceed, then we can divide the task and work on it. For now I think we can close this one and see how the discussion develops.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants