compute_class_weight
TypeError: compute_class_weight() takes 1 positional argument but 3 were given
TypeError Traceback (most recent call last) /tmp/ipykernel_14395/3700018132.py in <module> 5 class_weights = class_weight.compute_class_weight('balanc ......
sklearn.utils.class_weight.compute_class_weight
#calculate class weightsclass_weights = class_weight.compute_class_weight( class_weight ='balanced', classes =np.unique(y_train), y =y_train.flatten() ......