YB
Size: a a a
YB
SZ
class_weight
и добавить этот параметр при обученииmodel.fit(X_train, Y_train, nb_epoch=5, batch_size=32, class_weight=class_weight)
SZ
DK
class_weight[i]*C
for SVC. If not given, all classes are supposed to have weight one. The “balanced” mode uses the values of y to automatically adjust weights inversely proportional to class frequencies in the input data as n_samples / (n_classes * np.bincount(y))
.SZ
E
DP
SZ
E
E
E
SZ
SZ
A
A
A
SZ
SZ
A
A