POST
/
api
/
{projectId}
/
optimize
/
config
Update config
curl --request POST \
  --url https://studio.edgeimpulse.com/v1/api/{projectId}/optimize/config \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "name": "<string>",
  "targetLatency": 0,
  "targetDevice": {
    "name": "cortex-m4f-80mhz",
    "ram": 1024,
    "rom": 1024
  },
  "compiler": [
    "<string>"
  ],
  "precision": [
    "<string>"
  ],
  "trainingCycles": 5,
  "tuningMaxTrials": 2,
  "tuningWorkers": 1,
  "initialTrials": 5,
  "optimizationRounds": 3,
  "trialsPerOptimizationRound": 3,
  "minMACCS": 123,
  "maxMACCS": 123,
  "tuningAlgorithm": "random",
  "notificationOnCompletion": true,
  "importProjectMetrics": true,
  "importResourceMetrics": true,
  "numImportProjectMetrics": 123,
  "numImportResourceMetrics": 123,
  "enableSEM": true,
  "accuracySEM": 123,
  "latencySEM": 123,
  "optimizationObjectives": [
    {
      "objective": "<string>",
      "label": "<string>",
      "weight": 123
    }
  ],
  "rawObjectives": "<string>",
  "optimizationPrecision": "float32",
  "earlyStopping": true,
  "earlyStoppingWindowSize": 123,
  "earlyStoppingImprovementBar": 123,
  "MOMF": true,
  "verboseLogging": true,
  "disableConstraints": true,
  "disableDeduplicate": true,
  "maxTotalTrainingTime": 123,
  "tunerSpaceOptions": {},
  "space": [
    {
      "parameters": {},
      "inputBlocks": [
        {}
      ],
      "dspBlocks": [
        {}
      ],
      "learnBlocks": [
        [
          {}
        ]
      ]
    }
  ],
  "searchSpaceTemplate": {
    "identifier": "speech_keyword",
    "classification": true,
    "anomaly": true,
    "regression": true
  },
  "searchSpaceSource": {
    "type": "template",
    "templateTitle": "<string>",
    "runTitle": "<string>",
    "impulseTitle": "<string>"
  }
}'
{
  "success": true,
  "error": "<string>"
}

Authorizations

x-api-key
string
header
required

Path Parameters

projectId
integer
required

Project ID

Body

application/json

Response

200 - application/json

OK

The response is of type object.