CreateModel
POST {{baseUrl}}/models
Creates a new model.
Request Body
{"compartmentId"=>"{{compartment_ocid}}", "projectId"=>"esse", "customMetadataList"=>[{"category"=>"Performance", "description"=>"The base model on which the current model was derived", "key"=>"in sit tempor", "value"=>"oci.datasciencemodel.aaa12934190b32g9823589"}, {"category"=>"Performance", "description"=>"The base model on which the current model was derived", "key"=>"in consequat culpa sit dolore", "value"=>"oci.datasciencemodel.aaa12934190b32g9823589"}], "definedMetadataList"=>[{"category"=>"Performance", "description"=>"The base model on which the current model was derived", "key"=>"et adipisicing dolore ex minim", "value"=>"oci.datasciencemodel.aaa12934190b32g9823589"}, {"category"=>"Performance", "description"=>"The base model on which the current model was derived", "key"=>"incididunt sed nostrud reprehenderit", "value"=>"oci.datasciencemodel.aaa12934190b32g9823589"}], "description"=>"Excepteur", "displayName"=>"fugiat mollit culpa nostrud", "inputSchema"=>"{\"predict_arguments\":{\"sepal_length_(cm)\":{\"type\":\"continuous\",\"dtype\":\"float64\"},\"sepal_width_(cm)\":{\"type\":\"continuous\",\"dtype\":\"float64\"},\"petal_length_(cm)\":{\"type\":\"continuous\",\"dtype\":\"float64\"},\"petal_width_(cm)\":{\"type\":\"continuous\",\"dtype\":\"float64\"}},\"predict_response\":{\"target\":{\"type\":\"categorical\",\"dtype\":\"category\"}},\"problem_type\":\"multiclass_classification\"}", "outputSchema"=>"{\"class\":3,\"probabilities\":[0.1,0.2,0.7]}"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
opc-request-id | string | Unique Oracle assigned identifier for the request. If you need to contact Oracle about a particular request, then provide the request ID. | |
opc-retry-token | string | A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected. | |
Content-Type | string | ||
Date | string | (Required) Current Date | |
Authorization | string | (Required) Signature Authentication on Authorization header | |
x-content-sha256 | string | (Required) Content sha256 for POST, PUT and PATCH operations |
RESPONSES
status: OK
{"compartmentId":"ad anim est","projectId":"deserunt aute ut qui","id":"ut dolore","displayName":"cupidatat aliqua","lifecycleState":"ACTIVE","timeCreated":"1961-12-14T07:06:32.746Z","createdBy":"fugiat laboris","customMetadataList":[{"category":"Performance","description":"The base model on which the current model was derived","key":"mollit sint","value":"oci.datasciencemodel.aaa12934190b32g9823589"},{"category":"Performance","description":"The base model on which the current model was derived","key":"in sint aliquip","value":"oci.datasciencemodel.aaa12934190b32g9823589"}],"definedMetadataList":[{"category":"Performance","description":"The base model on which the current model was derived","key":"Lorem consequat pariatur elit","value":"oci.datasciencemodel.aaa12934190b32g9823589"},{"category":"Performance","description":"The base model on which the current model was derived","key":"elit amet sint","value":"oci.datasciencemodel.aaa12934190b32g9823589"}],"definedTags":{},"description":"deserunt anim nostrud","freeformTags":{},"inputSchema":"{\"predict_arguments\":{\"sepal_length_(cm)\":{\"type\":\"continuous\",\"dtype\":\"float64\"},\"sepal_width_(cm)\":{\"type\":\"continuous\",\"dtype\":\"float64\"},\"petal_length_(cm)\":{\"type\":\"continuous\",\"dtype\":\"float64\"},\"petal_width_(cm)\":{\"type\":\"continuous\",\"dtype\":\"float64\"}},\"predict_response\":{\"target\":{\"type\":\"categorical\",\"dtype\":\"category\"}},\"problem_type\":\"multiclass_classification\"}","outputSchema":"{\"class\":3,\"probabilities\":[0.1,0.2,0.7]}"}