Package com.oracle.bmc.aivision.model
Class Model.Builder
- java.lang.Object
-
- com.oracle.bmc.aivision.model.Model.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Model.BuilderaveragePrecision(Float averagePrecision)The mean average precision of the trained model.Modelbuild()Model.BuildercompartmentId(String compartmentId)The compartment identifier.Model.BuilderconfidenceThreshold(Float confidenceThreshold)The intersection over the union threshold used for calculating precision and recall.Model.Buildercopy(Model model)Model.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.Model.Builderdescription(String description)An optional description of the model.Model.BuilderdisplayName(String displayName)A human-friendly name for the model, which can be changed.Model.BuilderfreeformTags(Map<String,String> freeformTags)A simple key-value pair that is applied without any predefined name, type, or scope.Model.Builderid(String id)A unique identifier that is immutable after creation.Model.BuilderisQuickMode(Boolean isQuickMode)Set to true when experimenting with a new model type or dataset, so model training is quick, with a predefined low number of passes through the training data.Model.BuilderlifecycleDetails(String lifecycleDetails)A message describing the current state in more detail, that can provide actionable information if training failed.Model.BuilderlifecycleState(Model.LifecycleState lifecycleState)The current state of the model.Model.BuildermaxTrainingDurationInHours(Double maxTrainingDurationInHours)The maximum model training duration in hours, expressed as a decimal fraction.Model.Buildermetrics(String metrics)The complete set of per-label metrics for successfully trained models.Model.BuildermodelType(Model.ModelType modelType)What type of Vision model this is.Model.BuildermodelVersion(String modelVersion)The version of the model.Model.Builderprecision(Float precision)The precision of the trained model.Model.BuilderprojectId(String projectId)The OCID of the project that contains the model.Model.Builderrecall(Float recall)Recall of the trained model.Model.BuildersystemTags(Map<String,Map<String,Object>> systemTags)Usage of system tag keys.Model.BuildertestImageCount(Integer testImageCount)The number of images set aside for evaluating model performance metrics after training.Model.BuildertestingDataset(Dataset testingDataset)Model.BuildertimeCreated(Date timeCreated)When the model was created, as an RFC3339 datetime string.Model.BuildertimeUpdated(Date timeUpdated)When the model was updated, as an RFC3339 datetime string.Model.BuildertotalImageCount(Integer totalImageCount)The number of images in the dataset used to train, validate, and test the model.Model.BuildertrainedDurationInHours(Double trainedDurationInHours)The total hours actually used for model training.Model.BuildertrainingDataset(Dataset trainingDataset)Model.BuildervalidationDataset(Dataset validationDataset)
-
-
-
Method Detail
-
id
public Model.Builder id(String id)
A unique identifier that is immutable after creation.- Parameters:
id- the value to set- Returns:
- this builder
-
displayName
public Model.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 Model.Builder description(String description)
An optional description of the model.- Parameters:
description- the value to set- Returns:
- this builder
-
compartmentId
public Model.Builder compartmentId(String compartmentId)
The compartment identifier.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
modelType
public Model.Builder modelType(Model.ModelType modelType)
What type of Vision model this is.- Parameters:
modelType- the value to set- Returns:
- this builder
-
isQuickMode
public Model.Builder isQuickMode(Boolean isQuickMode)
Set to true when experimenting with a new model type or dataset, so 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 Model.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
-
trainedDurationInHours
public Model.Builder trainedDurationInHours(Double trainedDurationInHours)
The total hours actually used for model training.- Parameters:
trainedDurationInHours- the value to set- Returns:
- this builder
-
trainingDataset
public Model.Builder trainingDataset(Dataset trainingDataset)
-
testingDataset
public Model.Builder testingDataset(Dataset testingDataset)
-
validationDataset
public Model.Builder validationDataset(Dataset validationDataset)
-
modelVersion
public Model.Builder modelVersion(String modelVersion)
The version of the model.- Parameters:
modelVersion- the value to set- Returns:
- this builder
-
projectId
public Model.Builder projectId(String projectId)
The OCID of the project that contains the model.- Parameters:
projectId- the value to set- Returns:
- this builder
-
timeCreated
public Model.Builder timeCreated(Date timeCreated)
When the model was created, as an RFC3339 datetime string.- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public Model.Builder timeUpdated(Date timeUpdated)
When the model was updated, as an RFC3339 datetime string.- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
lifecycleState
public Model.Builder lifecycleState(Model.LifecycleState lifecycleState)
The current state of the model.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public Model.Builder lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail, that can provide actionable information if training failed.- Parameters:
lifecycleDetails- the value to set- Returns:
- this builder
-
precision
public Model.Builder precision(Float precision)
The precision of the trained model.- Parameters:
precision- the value to set- Returns:
- this builder
-
recall
public Model.Builder recall(Float recall)
Recall of the trained model.- Parameters:
recall- the value to set- Returns:
- this builder
-
averagePrecision
public Model.Builder averagePrecision(Float averagePrecision)
The mean average precision of the trained model.- Parameters:
averagePrecision- the value to set- Returns:
- this builder
-
confidenceThreshold
public Model.Builder confidenceThreshold(Float confidenceThreshold)
The intersection over the union threshold used for calculating precision and recall.- Parameters:
confidenceThreshold- the value to set- Returns:
- this builder
-
totalImageCount
public Model.Builder totalImageCount(Integer totalImageCount)
The number of images in the dataset used to train, validate, and test the model.- Parameters:
totalImageCount- the value to set- Returns:
- this builder
-
testImageCount
public Model.Builder testImageCount(Integer testImageCount)
The number of images set aside for evaluating model performance metrics after training.- Parameters:
testImageCount- the value to set- Returns:
- this builder
-
metrics
public Model.Builder metrics(String metrics)
The complete set of per-label metrics for successfully trained models.- Parameters:
metrics- the value to set- Returns:
- this builder
-
freeformTags
public Model.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 Model.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
-
systemTags
public Model.Builder systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.These predefined keys are scoped to namespaces. For example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
- Parameters:
systemTags- the value to set- Returns:
- this builder
-
build
public Model build()
-
copy
public Model.Builder copy(Model model)
-
-