How to use class_weight parameter for validation set?
You are not supposed to apply weights to your validation set since it is supposed to measure your model's performance. If you'll do that you'll probably get better results for validation but once your model is deployed it will perform worse on new data.
Weighting, resampling techniques etc. - they all should be done on the training set only!