Package com.oracle.bmc.aivision.model
Class Model.Builder
- java.lang.Object
- 
- com.oracle.bmc.aivision.model.Model.Builder
 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll 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- 
idpublic Model.Builder id(String id) A unique identifier that is immutable after creation.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
displayNamepublic 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
 
 - 
descriptionpublic Model.Builder description(String description) An optional description of the model.- Parameters:
- description- the value to set
- Returns:
- this builder
 
 - 
compartmentIdpublic Model.Builder compartmentId(String compartmentId) The compartment identifier.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
modelTypepublic Model.Builder modelType(Model.ModelType modelType) What type of Vision model this is.- Parameters:
- modelType- the value to set
- Returns:
- this builder
 
 - 
isQuickModepublic 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
 
 - 
maxTrainingDurationInHourspublic 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
 
 - 
trainedDurationInHourspublic Model.Builder trainedDurationInHours(Double trainedDurationInHours) The total hours actually used for model training.- Parameters:
- trainedDurationInHours- the value to set
- Returns:
- this builder
 
 - 
trainingDatasetpublic Model.Builder trainingDataset(Dataset trainingDataset) 
 - 
testingDatasetpublic Model.Builder testingDataset(Dataset testingDataset) 
 - 
validationDatasetpublic Model.Builder validationDataset(Dataset validationDataset) 
 - 
modelVersionpublic Model.Builder modelVersion(String modelVersion) The version of the model.- Parameters:
- modelVersion- the value to set
- Returns:
- this builder
 
 - 
projectIdpublic Model.Builder projectId(String projectId) The OCID of the project that contains the model.- Parameters:
- projectId- the value to set
- Returns:
- this builder
 
 - 
timeCreatedpublic Model.Builder timeCreated(Date timeCreated) When the model was created, as an RFC3339 datetime string.- Parameters:
- timeCreated- the value to set
- Returns:
- this builder
 
 - 
timeUpdatedpublic Model.Builder timeUpdated(Date timeUpdated) When the model was updated, as an RFC3339 datetime string.- Parameters:
- timeUpdated- the value to set
- Returns:
- this builder
 
 - 
lifecycleStatepublic Model.Builder lifecycleState(Model.LifecycleState lifecycleState) The current state of the model.- Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
lifecycleDetailspublic 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
 
 - 
precisionpublic Model.Builder precision(Float precision) The precision of the trained model.- Parameters:
- precision- the value to set
- Returns:
- this builder
 
 - 
recallpublic Model.Builder recall(Float recall) Recall of the trained model.- Parameters:
- recall- the value to set
- Returns:
- this builder
 
 - 
averagePrecisionpublic Model.Builder averagePrecision(Float averagePrecision) The mean average precision of the trained model.- Parameters:
- averagePrecision- the value to set
- Returns:
- this builder
 
 - 
confidenceThresholdpublic 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
 
 - 
totalImageCountpublic 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
 
 - 
testImageCountpublic 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
 
 - 
metricspublic 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
 
 - 
freeformTagspublic 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
 
 - 
definedTagspublic 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
 
 - 
systemTagspublic 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
 
 - 
buildpublic Model build() 
 - 
copypublic Model.Builder copy(Model model) 
 
- 
 
-