import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Model resource in Oracle Cloud Infrastructure Ai Vision service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/vision/latest/Model * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/aiVision * * Create a new model. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testModel = new oci.aivision.Model("test_model", { * compartmentId: compartmentId, * modelType: modelModelType, * projectId: testProject.id, * trainingDataset: { * datasetType: modelTrainingDatasetDatasetType, * bucket: modelTrainingDatasetBucket, * datasetId: testDataset.id, * namespaceName: modelTrainingDatasetNamespace, * object: modelTrainingDatasetObject, * }, * definedTags: modelDefinedTags, * description: modelDescription, * displayName: modelDisplayName, * freeformTags: modelFreeformTags, * isQuickMode: modelIsQuickMode === "true", * maxTrainingDurationInHours: modelMaxTrainingDurationInHours, * modelVersion: modelModelVersion, * testingDataset: { * datasetType: modelTestingDatasetDatasetType, * bucket: modelTestingDatasetBucket, * datasetId: testDataset.id, * namespaceName: modelTestingDatasetNamespace, * object: modelTestingDatasetObject, * }, * validationDataset: { * datasetType: modelValidationDatasetDatasetType, * bucket: modelValidationDatasetBucket, * datasetId: testDataset.id, * namespaceName: modelValidationDatasetNamespace, * object: modelValidationDatasetObject, * }, * }); * ``` * * ## Import * * Models can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:AiVision/model:Model test_model "id" * ``` */ export declare class Model extends pulumi.CustomResource { /** * Get an existing Model resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: ModelState, opts?: pulumi.CustomResourceOptions): Model; /** * Returns true if the given object is an instance of Model. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Model; /** * The mean average precision of the trained model. */ readonly averagePrecision: pulumi.Output; /** * (Updatable) The compartment identifier. */ readonly compartmentId: pulumi.Output; /** * The intersection over the union threshold used for calculating precision and recall. */ readonly confidenceThreshold: pulumi.Output; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For example: `{"foo-namespace": {"bar-key": "value"}}` */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) An optional description of the model. */ readonly description: pulumi.Output; /** * (Updatable) A human-friendly name for the model, which can be changed. */ readonly displayName: pulumi.Output; /** * (Updatable) 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"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * 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. */ readonly isQuickMode: pulumi.Output; /** * A message describing the current state in more detail, that can provide actionable information if training failed. */ readonly lifecycleDetails: pulumi.Output; /** * The maximum model training duration in hours, expressed as a decimal fraction. */ readonly maxTrainingDurationInHours: pulumi.Output; /** * The complete set of per-label metrics for successfully trained models. */ readonly metrics: pulumi.Output; /** * Which type of Vision model this is. */ readonly modelType: pulumi.Output; /** * The model version */ readonly modelVersion: pulumi.Output; /** * The precision of the trained model. */ readonly precision: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the project that contains the model. */ readonly projectId: pulumi.Output; /** * Recall of the trained model. */ readonly recall: pulumi.Output; /** * The current state of the model. */ readonly state: pulumi.Output; /** * Usage of system tag keys. These predefined keys are scoped to namespaces. For example: `{"orcl-cloud": {"free-tier-retained": "true"}}` */ readonly systemTags: pulumi.Output<{ [key: string]: string; }>; /** * The number of images set aside for evaluating model performance metrics after training. */ readonly testImageCount: pulumi.Output; /** * The base entity which is the input for creating and training a model. */ readonly testingDataset: pulumi.Output; /** * When the model was created, as an RFC3339 datetime string. */ readonly timeCreated: pulumi.Output; /** * When the model was updated, as an RFC3339 datetime string. */ readonly timeUpdated: pulumi.Output; /** * The number of images in the dataset used to train, validate, and test the model. */ readonly totalImageCount: pulumi.Output; /** * The total hours actually used for model training. */ readonly trainedDurationInHours: pulumi.Output; /** * The base entity which is the input for creating and training a model. */ readonly trainingDataset: pulumi.Output; /** * The base entity which is the input for creating and training a model. */ readonly validationDataset: pulumi.Output; /** * Create a Model resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ModelArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Model resources. */ export interface ModelState { /** * The mean average precision of the trained model. */ averagePrecision?: pulumi.Input; /** * (Updatable) The compartment identifier. */ compartmentId?: pulumi.Input; /** * The intersection over the union threshold used for calculating precision and recall. */ confidenceThreshold?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For example: `{"foo-namespace": {"bar-key": "value"}}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) An optional description of the model. */ description?: pulumi.Input; /** * (Updatable) A human-friendly name for the model, which can be changed. */ displayName?: pulumi.Input; /** * (Updatable) 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"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * 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. */ isQuickMode?: pulumi.Input; /** * A message describing the current state in more detail, that can provide actionable information if training failed. */ lifecycleDetails?: pulumi.Input; /** * The maximum model training duration in hours, expressed as a decimal fraction. */ maxTrainingDurationInHours?: pulumi.Input; /** * The complete set of per-label metrics for successfully trained models. */ metrics?: pulumi.Input; /** * Which type of Vision model this is. */ modelType?: pulumi.Input; /** * The model version */ modelVersion?: pulumi.Input; /** * The precision of the trained model. */ precision?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the project that contains the model. */ projectId?: pulumi.Input; /** * Recall of the trained model. */ recall?: pulumi.Input; /** * The current state of the model. */ state?: pulumi.Input; /** * Usage of system tag keys. These predefined keys are scoped to namespaces. For example: `{"orcl-cloud": {"free-tier-retained": "true"}}` */ systemTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The number of images set aside for evaluating model performance metrics after training. */ testImageCount?: pulumi.Input; /** * The base entity which is the input for creating and training a model. */ testingDataset?: pulumi.Input; /** * When the model was created, as an RFC3339 datetime string. */ timeCreated?: pulumi.Input; /** * When the model was updated, as an RFC3339 datetime string. */ timeUpdated?: pulumi.Input; /** * The number of images in the dataset used to train, validate, and test the model. */ totalImageCount?: pulumi.Input; /** * The total hours actually used for model training. */ trainedDurationInHours?: pulumi.Input; /** * The base entity which is the input for creating and training a model. */ trainingDataset?: pulumi.Input; /** * The base entity which is the input for creating and training a model. */ validationDataset?: pulumi.Input; } /** * The set of arguments for constructing a Model resource. */ export interface ModelArgs { /** * (Updatable) The compartment identifier. */ compartmentId: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For example: `{"foo-namespace": {"bar-key": "value"}}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) An optional description of the model. */ description?: pulumi.Input; /** * (Updatable) A human-friendly name for the model, which can be changed. */ displayName?: pulumi.Input; /** * (Updatable) 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"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * 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. */ isQuickMode?: pulumi.Input; /** * The maximum model training duration in hours, expressed as a decimal fraction. */ maxTrainingDurationInHours?: pulumi.Input; /** * Which type of Vision model this is. */ modelType: pulumi.Input; /** * The model version */ modelVersion?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the project that contains the model. */ projectId: pulumi.Input; /** * The base entity which is the input for creating and training a model. */ testingDataset?: pulumi.Input; /** * The base entity which is the input for creating and training a model. */ trainingDataset: pulumi.Input; /** * The base entity which is the input for creating and training a model. */ validationDataset?: pulumi.Input; } //# sourceMappingURL=model.d.ts.map