Skip to content

Add API documentation entry for entropy - #31282

Closed
lucyleeow wants to merge 2 commits into
scikit-learn:mainfrom
lucyleeow:doc_entropy
Closed

lucyleeow wants to merge 2 commits into
scikit-learn:mainfrom
lucyleeow:doc_entropy

Conversation

@lucyleeow

@lucyleeow lucyleeow commented May 1, 2025 •

Copy link
Copy Markdown
Member

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?

@github-actions

github-actions Bot commented May 1, 2025 •

Copy link
Copy Markdown

✔️ Linting Passed

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

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

@thomasjpfan thomasjpfan left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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