摘要:
#train the model history = model.fit(x_train, y_train, batch_size=32, epochs=100, validation_split=0.1, shuffle=True, class_weight=class_weights, call 阅读全文
摘要:
https://blog.csdn.net/FY_2018/article/details/116951278 compute_class_weight这个函数的作用是对于输入的样本,平衡类别之间的权重,下面写段测试代码测试这个函数: # coding:utf-8 from sklearn.util 阅读全文