public static class CreateClassifierOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
CreateClassifierOptions.Builder()
Instantiates a new builder.
|
CreateClassifierOptions.Builder(java.io.InputStream metadata,
java.io.InputStream trainingData)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
CreateClassifierOptions |
build()
Builds a CreateClassifierOptions.
|
CreateClassifierOptions.Builder |
metadata(java.io.File metadata)
Set the metadata.
|
CreateClassifierOptions.Builder |
metadata(java.io.InputStream metadata)
Set the metadata.
|
CreateClassifierOptions.Builder |
metadataFilename(java.lang.String metadataFilename)
Set the metadataFilename.
|
CreateClassifierOptions.Builder |
trainingData(java.io.File trainingData)
Set the trainingData.
|
CreateClassifierOptions.Builder |
trainingData(java.io.InputStream trainingData)
Set the trainingData.
|
CreateClassifierOptions.Builder |
trainingDataFilename(java.lang.String trainingDataFilename)
Set the trainingDataFilename.
|
public CreateClassifierOptions.Builder()
public CreateClassifierOptions.Builder(java.io.InputStream metadata, java.io.InputStream trainingData)
metadata
- the metadatatrainingData
- the trainingDatapublic CreateClassifierOptions build()
public CreateClassifierOptions.Builder metadata(java.io.InputStream metadata)
metadata
- the metadatapublic CreateClassifierOptions.Builder metadataFilename(java.lang.String metadataFilename)
metadataFilename
- the metadataFilenamepublic CreateClassifierOptions.Builder trainingData(java.io.InputStream trainingData)
trainingData
- the trainingDatapublic CreateClassifierOptions.Builder trainingDataFilename(java.lang.String trainingDataFilename)
trainingDataFilename
- the trainingDataFilenamepublic CreateClassifierOptions.Builder metadata(java.io.File metadata) throws java.io.FileNotFoundException
metadata
- the metadatajava.io.FileNotFoundException
- if the file could not be foundpublic CreateClassifierOptions.Builder trainingData(java.io.File trainingData) throws java.io.FileNotFoundException
trainingData
- the trainingDatajava.io.FileNotFoundException
- if the file could not be found