public class CreateClassifierOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
CreateClassifierOptions.Builder
Builder.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
name |
protected java.io.InputStream |
negativeExamples |
protected java.lang.String |
negativeExamplesFilename |
protected java.util.Map<java.lang.String,java.io.InputStream> |
positiveExamples |
Modifier | Constructor and Description |
---|---|
protected |
CreateClassifierOptions(CreateClassifierOptions.Builder builder) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
name()
Gets the name.
|
java.io.InputStream |
negativeExamples()
Gets the negativeExamples.
|
java.lang.String |
negativeExamplesFilename()
Gets the negativeExamplesFilename.
|
CreateClassifierOptions.Builder |
newBuilder()
New builder.
|
java.util.Map<java.lang.String,java.io.InputStream> |
positiveExamples()
Gets the positiveExamples.
|
protected java.lang.String name
protected java.util.Map<java.lang.String,java.io.InputStream> positiveExamples
protected java.io.InputStream negativeExamples
protected java.lang.String negativeExamplesFilename
protected CreateClassifierOptions(CreateClassifierOptions.Builder builder)
public CreateClassifierOptions.Builder newBuilder()
public java.lang.String name()
The name of the new classifier. Encode special characters in UTF-8.
public java.util.Map<java.lang.String,java.io.InputStream> positiveExamples()
A .zip file of images that depict the visual subject of a class in the new classifier. You can include more than one positive example file in a call.
Specify the parameter name by appending `_positive_examples` to the class name. For example, `goldenretriever_positive_examples` creates the class **goldenretriever**. The string cannot contain the following characters: ``$ * - { } \ | / ' " ` [ ]``.
Include at least 10 images in .jpg or .png format. The minimum recommended image resolution is 32X32 pixels. The maximum number of images is 10,000 images or 100 MB per .zip file.
Encode special characters in the file name in UTF-8.
public java.io.InputStream negativeExamples()
A .zip file of images that do not depict the visual subject of any of the classes of the new classifier. Must contain a minimum of 10 images.
Encode special characters in the file name in UTF-8.
public java.lang.String negativeExamplesFilename()
The filename for negativeExamples.