public class UpdateClassifierHandler extends CommonHandler<com.ibm.watson.developer_cloud.visual_recognition.v3.model.VisualClassifier>
Modifier and Type | Field and Description |
---|---|
protected String |
classifierId
classifierId is an unique identifier associated with the classifiers in Watson SDK
|
service
Constructor and Description |
---|
UpdateClassifierHandler(com.ibm.watson.developer_cloud.visual_recognition.v3.VisualRecognition service,
String classifierId) |
Modifier and Type | Method and Description |
---|---|
UpdateClassifierHandler |
addNegativeSamples(File file)
Method useful for adding positive examples to a given class
|
UpdateClassifierHandler |
addPositiveSamples(Map<String,File> positiveExamples)
Method useful for adding positive examples to a given class
|
com.ibm.watson.developer_cloud.visual_recognition.v3.model.VisualClassifier |
execute() |
protected String classifierId
public UpdateClassifierHandler(com.ibm.watson.developer_cloud.visual_recognition.v3.VisualRecognition service, String classifierId)
public com.ibm.watson.developer_cloud.visual_recognition.v3.model.VisualClassifier execute()
execute
in class CommonHandler<com.ibm.watson.developer_cloud.visual_recognition.v3.model.VisualClassifier>
public UpdateClassifierHandler addPositiveSamples(Map<String,File> positiveExamples) throws VisualRecognitionException
positiveExamples
- This map represents the relation between the class name
and a compressed *.zip file that contains images associated with positive examplesVisualRecognitionException
- Common exception used in the visual recognition projectpublic UpdateClassifierHandler addNegativeSamples(File file) throws VisualRecognitionException
file
- Compressed *.zip file that contains images associated with positive examplesVisualRecognitionException
- Common exception used in the visual recognition projectCopyright © 2010–2017. All rights reserved.