Update config

Update config

Update config

POSThttps://studio.edgeimpulse.com/v1/api/{projectId}/optimize/config
Path parameters
projectId*integer

Project ID

Body
namestring
datasetCategory*enum

Dataset category

speech_keywordspeech_continuousaudio_eventaudio_continuoustransfer_learningmotion_eventmotion_continuousaudio_syntiantobject_detection_bounding_boxesobject_detection_centroidsvisual_ad
classificationType*enum

Classification type

classificationregression
targetLatency*integer

Target latency in MS

Example: 0
targetDevice*object

Target device

compilerarray of string
precisionarray of string
trainingCyclesinteger

Maximum number of training cycles

Example: 5
tuningMaxTrialsinteger

Maximum number of trials

Example: 2
tuningWorkersinteger

Maximum number of parallel workers/jobs

Example: 1
minMACCSnumber
maxMACCSnumber
tuningAlgorithmenum

Tuning algorithm to use to search hyperparameter space

randomhyperbandbayesiancustom
notificationOnCompletionboolean
tunerSpaceOptionsobject
spacearray of TunerSpaceImpulse (object)

List of impulses specifying the EON Tuner search space

Response

OK

Body
success*boolean

Whether the operation succeeded

errorstring

Optional error description (set if 'success' was false)

Request
const response = await fetch('https://studio.edgeimpulse.com/v1/api/{projectId}/optimize/config', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "targetDevice": {
        "name": "cortex-m4f-80mhz"
      },
      "targetLatency": 0,
      "datasetCategory": "speech_keyword",
      "classificationType": "classification"
    }),
});
const data = await response.json();
Response
{
  "success": false,
  "error": "text"
}

Last updated