更改 "IBM Watson Visual Recognition service custom classifier" 中的阈值

Change the threshold in "IBM Watson Visual Recognition service custom classifier"

我使用这个 demo 创建了一个自定义 classifier。虽然,我训练了我的两个 class 数据集,但在测试(尝试 classifier)某些图像(测试图像,未出现在训练图像中)时,我得到了错误 "The score for this image is not above the threshold of 0.5 based on the training data provided"。如何在脚本 (javascripts) 中更改此阈值?

例如,我可以为等级超过 0.2 的图像提供 class化数据。

为了帮助您,首先,我建议您阅读并了解一位 IBM 专业人员的 Best practices,以便使用 Visual Recognition 获得更好的结果或准确性。

但是,说到你的问题,这个错误是 IBM Developers 项目中的一个 条件,你可以简单地更改 #L270 行中的值:

//change this value
params.threshold = 0.5; //So the classifers only show images with a confindence level of 0.5 or higher