keras中加入class_weight参数(处理不均衡分类问题)

#创建权重
weight={
    
    0:.9,1:0.1}
model.fit(class_weights=weights)

猜你喜欢

转载自blog.csdn.net/weixin_45631815/article/details/109331184
今日推荐