Retrieves EON tuner state for a run.
Last updated
Was this helpful?
Last updated
Was this helpful?
Retrieves the EON tuner state for a specific run.
/api/{projectId}/optimize/{tunerCoordinatorJobId}/state
Project ID
Tuner coordinator job ID
curl -L \
--url 'https://studio.edgeimpulse.com/v1/api/{projectId}/optimize/{tunerCoordinatorJobId}/state' \
--header 'x-api-key: YOUR_API_KEY'
{
"success": true,
"error": "text",
"config": {
"name": "text",
"targetLatency": 0,
"trainingCycles": 5,
"tuningMaxTrials": 2,
"tuningWorkers": 1,
"initialTrials": 5,
"optimizationRounds": 3,
"trialsPerOptimizationRound": 3,
"minMACCS": 1,
"maxMACCS": 1,
"notificationOnCompletion": true,
"importProjectMetrics": true,
"importResourceMetrics": true,
"numImportProjectMetrics": 1,
"numImportResourceMetrics": 1,
"enableSEM": true,
"accuracySEM": 1,
"latencySEM": 1,
"rawObjectives": "text",
"earlyStopping": true,
"earlyStoppingWindowSize": 1,
"earlyStoppingImprovementBar": 1,
"MOMF": true,
"verboseLogging": true,
"disableConstraints": true,
"disableDeduplicate": true,
"tuningAlgorithm": "random",
"optimizationPrecision": "float32",
"compiler": [
"text"
],
"precision": [
"text"
],
"space": [
{
"parameters": {},
"inputBlocks": [
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}
],
"dspBlocks": [
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}
],
"learnBlocks": [
[
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}
]
]
}
],
"targetDevice": {
"name": "cortex-m4f-80mhz",
"ram": 1024,
"rom": 1024
},
"tunerSpaceOptions": {
"ANY_ADDITIONAL_PROPERTY": [
"text"
]
},
"searchSpaceTemplate": {
"classification": true,
"anomaly": true,
"regression": true,
"identifier": "speech_keyword"
},
"searchSpaceSource": {
"templateTitle": "text",
"runTitle": "text",
"impulseTitle": "text",
"type": "template"
},
"optimizationObjectives": [
{
"objective": "text",
"label": "text",
"weight": 1
}
]
},
"tunerJobId": 1,
"tunerCoordinatorJobId": 1,
"continuationJobId": 1,
"tunerJobIsRunning": true,
"jobError": "text",
"nextRunIndex": 1,
"canExtendSearch": true,
"isWhitelabel": true,
"tuningAlgorithm": "random",
"projectDataType": "audio",
"trials": [
{
"id": "text",
"name": "text",
"lastCompletedEpoch": "2025-02-21T18:03:05.407Z",
"lastCompletedTraining": "2025-02-21T18:03:05.407Z",
"retries": 1,
"currentEpoch": 1,
"workerId": "text",
"impulse": {
"inputBlocks": [
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}
],
"dspBlocks": [
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}
],
"learnBlocks": [
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}
]
},
"experiment": "text",
"original_trial_id": "text",
"model": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"learnJobId": 1,
"devicePerformance": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"optimizationRound": 1,
"status": "pending",
"dspJobId": {
"training": 1,
"testing": 1
},
"progress": {
"epoch": 1,
"loss": 1,
"val_loss": 1,
"accuracy": 1,
"val_accuracy": 1
},
"impulseAddedToProject": {
"impulseId": 1,
"link": "text"
},
"blocks": [
{
"id": 1,
"lastActive": "2025-02-21T18:03:05.407Z",
"retries": 1,
"modelBlockIndex": 1,
"status": "pending",
"type": "input"
}
],
"metrics": {
"test": {
"float32": {
"type": "int8",
"loss": 1,
"accuracy": 1,
"report": {},
"isSupportedOnMcu": true,
"mcuSupportError": "text",
"profilingJobId": 1,
"profilingJobFailed": true,
"visualization": "featureExplorer",
"predictions": [
{
"sampleId": 1,
"startMs": 1,
"endMs": 1,
"label": "text",
"prediction": "text",
"predictionCorrect": true,
"f1Score": 1,
"anomalyScores": [
[
1
]
]
}
],
"additionalMetrics": [
{
"name": "text",
"value": "text",
"fullPrecisionValue": 1,
"tooltipText": "text",
"link": "text"
}
],
"confusionMatrix": [
[
31,
1,
0
],
[
2,
27,
3
],
[
1,
0,
39
]
],
"onDevicePerformance": [
{
"mcu": "text",
"name": "text",
"isDefault": true,
"latency": 1,
"customMetrics": [
{
"name": "text",
"value": "text"
}
],
"tflite": {
"ramRequired": 1,
"romRequired": 1,
"arenaSize": 1,
"modelSize": 1
},
"eon": {
"ramRequired": 1,
"romRequired": 1,
"arenaSize": 1,
"modelSize": 1
},
"eon_ram_optimized": {
"ramRequired": 1,
"romRequired": 1,
"arenaSize": 1,
"modelSize": 1
}
}
]
},
"int8": {
"type": "int8",
"loss": 1,
"accuracy": 1,
"report": {},
"isSupportedOnMcu": true,
"mcuSupportError": "text",
"profilingJobId": 1,
"profilingJobFailed": true,
"visualization": "featureExplorer",
"predictions": [
{
"sampleId": 1,
"startMs": 1,
"endMs": 1,
"label": "text",
"prediction": "text",
"predictionCorrect": true,
"f1Score": 1,
"anomalyScores": [
[
1
]
]
}
],
"additionalMetrics": [
{
"name": "text",
"value": "text",
"fullPrecisionValue": 1,
"tooltipText": "text",
"link": "text"
}
],
"confusionMatrix": [
[
31,
1,
0
],
[
2,
27,
3
],
[
1,
0,
39
]
],
"onDevicePerformance": [
{
"mcu": "text",
"name": "text",
"isDefault": true,
"latency": 1,
"customMetrics": [
{
"name": "text",
"value": "text"
}
],
"tflite": {
"ramRequired": 1,
"romRequired": 1,
"arenaSize": 1,
"modelSize": 1
},
"eon": {
"ramRequired": 1,
"romRequired": 1,
"arenaSize": 1,
"modelSize": 1
},
"eon_ram_optimized": {
"ramRequired": 1,
"romRequired": 1,
"arenaSize": 1,
"modelSize": 1
}
}
]
}
},
"train": {
"float32": {
"type": "int8",
"loss": 1,
"accuracy": 1,
"report": {},
"isSupportedOnMcu": true,
"mcuSupportError": "text",
"profilingJobId": 1,
"profilingJobFailed": true,
"visualization": "featureExplorer",
"predictions": [
{
"sampleId": 1,
"startMs": 1,
"endMs": 1,
"label": "text",
"prediction": "text",
"predictionCorrect": true,
"f1Score": 1,
"anomalyScores": [
[
1
]
]
}
],
"additionalMetrics": [
{
"name": "text",
"value": "text",
"fullPrecisionValue": 1,
"tooltipText": "text",
"link": "text"
}
],
"confusionMatrix": [
[
31,
1,
0
],
[
2,
27,
3
],
[
1,
0,
39
]
],
"onDevicePerformance": [
{
"mcu": "text",
"name": "text",
"isDefault": true,
"latency": 1,
"customMetrics": [
{
"name": "text",
"value": "text"
}
],
"tflite": {
"ramRequired": 1,
"romRequired": 1,
"arenaSize": 1,
"modelSize": 1
},
"eon": {
"ramRequired": 1,
"romRequired": 1,
"arenaSize": 1,
"modelSize": 1
},
"eon_ram_optimized": {
"ramRequired": 1,
"romRequired": 1,
"arenaSize": 1,
"modelSize": 1
}
}
]
},
"int8": {
"type": "int8",
"loss": 1,
"accuracy": 1,
"report": {},
"isSupportedOnMcu": true,
"mcuSupportError": "text",
"profilingJobId": 1,
"profilingJobFailed": true,
"visualization": "featureExplorer",
"predictions": [
{
"sampleId": 1,
"startMs": 1,
"endMs": 1,
"label": "text",
"prediction": "text",
"predictionCorrect": true,
"f1Score": 1,
"anomalyScores": [
[
1
]
]
}
],
"additionalMetrics": [
{
"name": "text",
"value": "text",
"fullPrecisionValue": 1,
"tooltipText": "text",
"link": "text"
}
],
"confusionMatrix": [
[
31,
1,
0
],
[
2,
27,
3
],
[
1,
0,
39
]
],
"onDevicePerformance": [
{
"mcu": "text",
"name": "text",
"isDefault": true,
"latency": 1,
"customMetrics": [
{
"name": "text",
"value": "text"
}
],
"tflite": {
"ramRequired": 1,
"romRequired": 1,
"arenaSize": 1,
"modelSize": 1
},
"eon": {
"ramRequired": 1,
"romRequired": 1,
"arenaSize": 1,
"modelSize": 1
},
"eon_ram_optimized": {
"ramRequired": 1,
"romRequired": 1,
"arenaSize": 1,
"modelSize": 1
}
}
]
}
},
"validation": {
"float32": {
"type": "int8",
"loss": 1,
"accuracy": 1,
"report": {},
"isSupportedOnMcu": true,
"mcuSupportError": "text",
"profilingJobId": 1,
"profilingJobFailed": true,
"visualization": "featureExplorer",
"predictions": [
{
"sampleId": 1,
"startMs": 1,
"endMs": 1,
"label": "text",
"prediction": "text",
"predictionCorrect": true,
"f1Score": 1,
"anomalyScores": [
[
1
]
]
}
],
"additionalMetrics": [
{
"name": "text",
"value": "text",
"fullPrecisionValue": 1,
"tooltipText": "text",
"link": "text"
}
],
"confusionMatrix": [
[
31,
1,
0
],
[
2,
27,
3
],
[
1,
0,
39
]
],
"onDevicePerformance": [
{
"mcu": "text",
"name": "text",
"isDefault": true,
"latency": 1,
"customMetrics": [
{
"name": "text",
"value": "text"
}
],
"tflite": {
"ramRequired": 1,
"romRequired": 1,
"arenaSize": 1,
"modelSize": 1
},
"eon": {
"ramRequired": 1,
"romRequired": 1,
"arenaSize": 1,
"modelSize": 1
},
"eon_ram_optimized": {
"ramRequired": 1,
"romRequired": 1,
"arenaSize": 1,
"modelSize": 1
}
}
]
},
"int8": {
"type": "int8",
"loss": 1,
"accuracy": 1,
"report": {},
"isSupportedOnMcu": true,
"mcuSupportError": "text",
"profilingJobId": 1,
"profilingJobFailed": true,
"visualization": "featureExplorer",
"predictions": [
{
"sampleId": 1,
"startMs": 1,
"endMs": 1,
"label": "text",
"prediction": "text",
"predictionCorrect": true,
"f1Score": 1,
"anomalyScores": [
[
1
]
]
}
],
"additionalMetrics": [
{
"name": "text",
"value": "text",
"fullPrecisionValue": 1,
"tooltipText": "text",
"link": "text"
}
],
"confusionMatrix": [
[
31,
1,
0
],
[
2,
27,
3
],
[
1,
0,
39
]
],
"onDevicePerformance": [
{
"mcu": "text",
"name": "text",
"isDefault": true,
"latency": 1,
"customMetrics": [
{
"name": "text",
"value": "text"
}
],
"tflite": {
"ramRequired": 1,
"romRequired": 1,
"arenaSize": 1,
"modelSize": 1
},
"eon": {
"ramRequired": 1,
"romRequired": 1,
"arenaSize": 1,
"modelSize": 1
},
"eon_ram_optimized": {
"ramRequired": 1,
"romRequired": 1,
"arenaSize": 1,
"modelSize": 1
}
}
]
}
}
}
}
],
"status": {
"numPendingTrials": 1,
"numRunningTrials": 1,
"numCompletedTrials": 1,
"numFailedTrials": 1,
"numReadyWorkers": 1,
"numBusyWorkers": 1,
"numPendingWorkers": 1,
"status": "creating"
},
"workers": [
{
"workerId": "text",
"status": "pending"
}
]
}
OK