Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add API documentation entry for entropy #31282

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

Closed
wants to merge 2 commits into from

Conversation

lucyleeow
Copy link
Member

@lucyleeow lucyleeow commented May 1, 2025

Reference Issues/PRs

Noticed that entropy does not have a API entry in the docs (see link https://scikit-learn.org/dev/modules/array_api.html#metrics)

Added it to api_reference.py - hopefully this is all that is required?

Thought about adding it to metrics - so you can use it with sklearn.metrics.entropy and not sklearn.metrics.cluster.entropy, as we have things like "completeness_score" (which is not symmetric) under metrics but am not sure about this.

What does this implement/fix? Explain your changes.

Any other comments?

Copy link

github-actions bot commented May 1, 2025

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: eaf4cae. Link to the linter CI: here

Copy link
Member

@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

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

I do not know if undocumented functions were considered public.

In #30375 and sklearn/tests/test_imports_public.py, I had a dictionary that lists out all the "public" functions that are not in the api reference. Some of them are reimported, but entropy was one that was undocumented.

@lucyleeow
Copy link
Member Author

Ah yes, it doesn't look like a public public function. Let me close this and remove entropy API references in the docs instead.

@lucyleeow lucyleeow closed this May 2, 2025
@lucyleeow lucyleeow deleted the doc_entropy branch May 2, 2025 00:24
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.

2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.