DOC Add vector quantization example to KBinsDiscretizer docs#31613
Merged
adrinjalali merged 7 commits intoscikit-learn:mainfrom Aug 5, 2025
Merged
DOC Add vector quantization example to KBinsDiscretizer docs#31613adrinjalali merged 7 commits intoscikit-learn:mainfrom
adrinjalali merged 7 commits intoscikit-learn:mainfrom
Conversation
…drastically increase in size using this algorithm, shown by the example plot_face_Compress
Member
StefanieSenger
left a comment
There was a problem hiding this comment.
That's a valuable addition, thanks a lot @pw42020!
I only have a little suggestion to improve wording.
Abhijais4896
approved these changes
Jul 2, 2025
Co-authored-by: Stefanie Senger <91849487+StefanieSenger@users.noreply.github.com>
StefanieSenger
approved these changes
Jul 4, 2025
Member
StefanieSenger
left a comment
There was a problem hiding this comment.
Thanks @pw42020. That looks very good. 😄
Would you like to have a look as well, @adrinjalali?
adrinjalali
approved these changes
Aug 5, 2025
Member
|
@pw42020 thanks for the PR. Please make sure in the future not to apply your changes to your |
lucyleeow
pushed a commit
to lucyleeow/scikit-learn
that referenced
this pull request
Aug 22, 2025
…learn#31613) Co-authored-by: Stefanie Senger <91849487+StefanieSenger@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add vector quantization example to KBinsDiscretizer docs
Reference Issues/PRs
#30621 regarding
examples/cluster/plot_face_compress.pyWhat does this implement/fix? Explain your changes.
Adds additional documentation to the KBinsDiscretizer document in the form of an important note that it only outputs floats. This is shown to be an important use case in the Vector Quantization example where the size of the image is increased by 8x due to the transition from int8 (0-255) to float64.
Any other comments?
No.