public static class CreateClassifierOptions.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String name)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
CreateClassifierOptions.Builder |
addPositiveExamples(String classname,
File positiveExamples)
Adds an entry to the positiveExamples map.
|
CreateClassifierOptions.Builder |
addPositiveExamples(String classname,
InputStream positiveExamples)
Adds an entry to the positiveExamples map.
|
CreateClassifierOptions |
build()
Builds a CreateClassifierOptions.
|
CreateClassifierOptions.Builder |
name(String name)
Set the name.
|
CreateClassifierOptions.Builder |
negativeExamples(File negativeExamples)
Set the negativeExamples.
|
CreateClassifierOptions.Builder |
negativeExamples(InputStream negativeExamples)
Set the negativeExamples.
|
CreateClassifierOptions.Builder |
negativeExamplesFilename(String negativeExamplesFilename)
Set the negativeExamplesFilename.
|
CreateClassifierOptions.Builder |
positiveExamples(Map<String,InputStream> positiveExamples)
Set the positiveExamples.
|
public Builder()
public Builder(String name)
name
- the namepublic CreateClassifierOptions build()
public CreateClassifierOptions.Builder addPositiveExamples(String classname, InputStream positiveExamples)
classname
- the key associated with the map entry to be addedpositiveExamples
- the value associated with the map entry to be addedpublic CreateClassifierOptions.Builder name(String name)
name
- the namepublic CreateClassifierOptions.Builder positiveExamples(Map<String,InputStream> positiveExamples)
positiveExamples
- the positiveExamplespublic CreateClassifierOptions.Builder negativeExamples(InputStream negativeExamples)
negativeExamples
- the negativeExamplespublic CreateClassifierOptions.Builder negativeExamplesFilename(String negativeExamplesFilename)
negativeExamplesFilename
- the negativeExamplesFilenamepublic CreateClassifierOptions.Builder addPositiveExamples(String classname, File positiveExamples) throws FileNotFoundException
classname
- the key associated with the map entry to be addedpositiveExamples
- the value associated with the map entry to be addedFileNotFoundException
- if the file could not be foundpublic CreateClassifierOptions.Builder negativeExamples(File negativeExamples) throws FileNotFoundException
negativeExamples
- the negativeExamplesFileNotFoundException
- if the file could not be foundCopyright © 2021 IBM Cloud. All rights reserved.