Package com.oracle.bmc.aivision.model
Class CreateModelDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.aivision.model.CreateModelDetails.Builder
-
- Enclosing class:
- CreateModelDetails
public static class CreateModelDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateModelDetailsbuild()CreateModelDetails.BuildercompartmentId(String compartmentId)The compartment identifier.CreateModelDetails.Buildercopy(CreateModelDetails model)CreateModelDetails.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.CreateModelDetails.Builderdescription(String description)An optional description of the model.CreateModelDetails.BuilderdisplayName(String displayName)A human-friendly name for the model, which can be changed.CreateModelDetails.BuilderfreeformTags(Map<String,String> freeformTags)A simple key-value pair that is applied without any predefined name, type, or scope.CreateModelDetails.BuilderisQuickMode(Boolean isQuickMode)Set to true when experimenting with a new model type or dataset, so the model training is quick, with a predefined low number of passes through the training data.CreateModelDetails.BuildermaxTrainingDurationInHours(Double maxTrainingDurationInHours)The maximum model training duration in hours, expressed as a decimal fraction.CreateModelDetails.BuildermodelType(Model.ModelType modelType)Which type of Vision model this is.CreateModelDetails.BuildermodelVersion(String modelVersion)The model versionCreateModelDetails.BuilderprojectId(String projectId)The OCID of the project that contains the model.CreateModelDetails.BuildertestingDataset(Dataset testingDataset)CreateModelDetails.BuildertrainingDataset(Dataset trainingDataset)CreateModelDetails.BuildervalidationDataset(Dataset validationDataset)
-
-
-
Method Detail
-
displayName
public CreateModelDetails.Builder displayName(String displayName)
A human-friendly name for the model, which can be changed.- Parameters:
displayName- the value to set- Returns:
- this builder
-
description
public CreateModelDetails.Builder description(String description)
An optional description of the model.- Parameters:
description- the value to set- Returns:
- this builder
-
modelVersion
public CreateModelDetails.Builder modelVersion(String modelVersion)
The model version- Parameters:
modelVersion- the value to set- Returns:
- this builder
-
modelType
public CreateModelDetails.Builder modelType(Model.ModelType modelType)
Which type of Vision model this is.- Parameters:
modelType- the value to set- Returns:
- this builder
-
compartmentId
public CreateModelDetails.Builder compartmentId(String compartmentId)
The compartment identifier.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
isQuickMode
public CreateModelDetails.Builder isQuickMode(Boolean isQuickMode)
Set to true when experimenting with a new model type or dataset, so the model training is quick, with a predefined low number of passes through the training data.- Parameters:
isQuickMode- the value to set- Returns:
- this builder
-
maxTrainingDurationInHours
public CreateModelDetails.Builder maxTrainingDurationInHours(Double maxTrainingDurationInHours)
The maximum model training duration in hours, expressed as a decimal fraction.- Parameters:
maxTrainingDurationInHours- the value to set- Returns:
- this builder
-
trainingDataset
public CreateModelDetails.Builder trainingDataset(Dataset trainingDataset)
-
testingDataset
public CreateModelDetails.Builder testingDataset(Dataset testingDataset)
-
validationDataset
public CreateModelDetails.Builder validationDataset(Dataset validationDataset)
-
projectId
public CreateModelDetails.Builder projectId(String projectId)
The OCID of the project that contains the model.- Parameters:
projectId- the value to set- Returns:
- this builder
-
freeformTags
public CreateModelDetails.Builder freeformTags(Map<String,String> freeformTags)
A simple key-value pair that is applied without any predefined name, type, or scope.It exists for cross-compatibility only. For example: {“bar-key”: “value”}
- Parameters:
freeformTags- the value to set- Returns:
- this builder
-
definedTags
public CreateModelDetails.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. For example: {“foo-namespace”: {“bar-key”: “value”}}
- Parameters:
definedTags- the value to set- Returns:
- this builder
-
build
public CreateModelDetails build()
-
copy
public CreateModelDetails.Builder copy(CreateModelDetails model)
-
-