Desbalanced Dataset

Hello, how are you?

I’m back with more questions about pulsed neural networks. I’m using a simple network converted to SNN using nengo.Converter() and NengoDL in my work. My input data has the characteristic of being unbalanced, due to the very nature of the problem. I know that one of the strategies would be to weight the minority class in such a way as to reduce the dimensionality of the data that appears the most. I have 3 classes (A, B, C).

Class A - 44898 individues
Class B - 845 individues
Class C - 522 individues

Do you have a code demonstrate where I would do this operation?