I did some PCA on a dataset to reduce the size without compromising too much on their actual information.

However, I learnt that quantization is also an effective technique to do this. I guess it is more fine-grained and leads to compression.

Combining PCA and Quantization will hence be quite effective I guess.

I got PCA to work using Scikit learn. How do I implement Quantization? Are there any libraries or standard methods?

I am working with the Python data science stack.

Thanks for your time. I am not getting how to quantize as it doesn't seem to be a programming issue as I have to change how a number is represented.


1 Answer 1


I haven't seen usage of quantization in practice, but scikit-learn has several methods that can be used as compression, and trade accuracy for memory/compute time:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.