-
-
Notifications
You must be signed in to change notification settings - Fork 26k
Add vector quantization example to KBinsDiscretizer docs #31613
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
base: main
Are you sure you want to change the base?
Conversation
…drastically increase in size using this algorithm, shown by the example plot_face_Compress
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a valuable addition, thanks a lot @pw42020!
I only have a little suggestion to improve wording.
This can drastically increase the memory usage of the array. See the example on | ||
:ref:`sphx_glr_auto_examples_cluster_plot_face_compress.py` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can drastically increase the memory usage of the array. See the example on | |
:ref:`sphx_glr_auto_examples_cluster_plot_face_compress.py` | |
This can drastically increase the memory usage of the array. See the | |
:ref:`sphx_glr_auto_examples_cluster_plot_face_compress.py` |
Otherwise it gets rendered as "See the example on Vector Quantization Example ....", which reads a bit redundant.
Add vector quantization example to KBinsDiscretizer docs
Reference Issues/PRs
#30621 regarding
examples/cluster/plot_face_compress.py
What 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.