Added weights in train_validate_test to handle class imbalance