1

I created a custom classifier by using this demo. Although, I trained my two class dataset, while testing (trying the classifier) for some images (test images, not presented in training images) I get the error "The score for this image is not above the threshold of 0.5 based on the training data provided". How can I change this threshold in the scripts (javascripts)?

For example, I'm ok to have classification data for images with ranks more than 0.2.

rookie
  • 25
  • 3

1 Answers1

1

Trying to help you, first, I recommend to you read and to know the Best practices from one IBM Professional for getting one better result or accuracy using Visual Recognition.

But, talking about your question, this error is one condition inside the Project by IBM Developers, you can simple change the value in the line #L270:

//change this value
params.threshold = 0.5; //So the classifers only show images with a confindence level of 0.5 or higher
Sayuri Mizuguchi
  • 5,250
  • 3
  • 26
  • 53
  • Thanks. So, I changed the value, and even added "OVERRIDE_CLASSIFIER_ID=my_classifier_id" in .env file to use my custom classifier instead of Watson's. But when I upload an image, nothing happens! Do you know anything about this? – rookie Sep 19 '17 at 17:24
  • If my answer helps you, please **mark** the answer following the [Stackoverflow guide](https://stackoverflow.com/help/someone-answers). And, in this case, you need to Ask a new question about this new problem. I'll try to help. – Sayuri Mizuguchi Sep 19 '17 at 18:10