Update Config
Update config
post
https://studio.edgeimpulse.com/v1
/api/{projectId}/optimize/config
Update config
cURL
Python
Node.js
curl --request POST \
--url https://studio.edgeimpulse.com/v1/api/{projectId}/optimize/config \
--header 'content-type: application/json' \
--header 'x-jwt-token: REPLACE_KEY_VALUE' \
--data '{"datasetCategory":"speech_keyword","classificationType":"classification","targetLatency":0,"targetDevice":{"name":"cortex-m4f-80mhz","ram":1024,"rom":1024},"compiler":["string"],"precision":["string"],"trainingCycles":5,"tuningMaxTrials":2,"tuningWorkers":1,"minMACCS":0,"maxMACCS":0,"tuningAlgorithm":"random","notificationOnCompletion":true}'
import http.client
conn = http.client.HTTPSConnection("studio.edgeimpulse.com")
payload = "{\"datasetCategory\":\"speech_keyword\",\"classificationType\":\"classification\",\"targetLatency\":0,\"targetDevice\":{\"name\":\"cortex-m4f-80mhz\",\"ram\":1024,\"rom\":1024},\"compiler\":[\"string\"],\"precision\":[\"string\"],\"trainingCycles\":5,\"tuningMaxTrials\":2,\"tuningWorkers\":1,\"minMACCS\":0,\"maxMACCS\":0,\"tuningAlgorithm\":\"random\",\"notificationOnCompletion\":true}"
headers = {
'content-type': "application/json",
'x-jwt-token': "REPLACE_KEY_VALUE"
}
conn.request("POST", "/v1/api/{projectId}/optimize/config", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const request = require('request');
const options = {
method: 'POST',
url: 'https://studio.edgeimpulse.com/v1/api/{projectId}/optimize/config',
headers: {'content-type': 'application/json', 'x-jwt-token': 'REPLACE_KEY_VALUE'},
body: {
datasetCategory: 'speech_keyword',
classificationType: 'classification',
targetLatency: 0,
targetDevice: {name: 'cortex-m4f-80mhz', ram: 1024, rom: 1024},
compiler: ['string'],
precision: ['string'],
trainingCycles: 5,
tuningMaxTrials: 2,
tuningWorkers: 1,
minMACCS: 0,
maxMACCS: 0,
tuningAlgorithm: 'random',
notificationOnCompletion: true
},
json: true
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
Export as PDF
Copy link