摘要: #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 阅读全文
posted @ 2023-09-10 23:58 emanlee 阅读(309) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/FY_2018/article/details/116951278 compute_class_weight这个函数的作用是对于输入的样本,平衡类别之间的权重,下面写段测试代码测试这个函数: # coding:utf-8 from sklearn.util 阅读全文
posted @ 2023-09-10 23:36 emanlee 阅读(220) 评论(0) 推荐(0) 编辑