【发布时间】:2020-10-04 00:59:04
【问题描述】:
如何确定深度学习模型的最佳阈值。我正在使用 CNN 预测癫痫发作。我想确定我的深度学习模型的最佳阈值以获得最佳结果。
我尝试了超过 2 周的时间来寻找如何做到这一点。
任何帮助将不胜感激。
代码
history=model.fit_generator(generate_arrays_for_training(indexPat, filesPath, end=75), #end=75),
validation_data=generate_arrays_for_training(indexPat, filesPath, start=75),#start=75),
steps_per_epoch=int((len(filesPath)-int(len(filesPath)/100*25))),#*25),
validation_steps=int((len(filesPath)-int(len(filesPath)/100*75))),#*75),
verbose=2,
epochs=50, max_queue_size=2, shuffle=True, callbacks=[callback,call])
【问题讨论】:
-
什么阈值?
-
@Proko 分类阈值或决策阈值,例如,高于该阈值的值表示“垃圾邮件”;下面的值表示“不是垃圾邮件”。
标签: python deep-learning conv-neural-network threshold image-thresholding