Retrieves EON tuner state for a run.
Last updated
Last updated
Retrieves the EON tuner state for a specific run.
Project ID
Tuner coordinator job ID
OK
Whether the operation succeeded
Optional error description (set if 'success' was false)
Actual tuner process, job message events will be tagged with this ID
The coordinator pod, attach the job runner to this process for finished events
Job ID for the initial job this job continuous the hyperparameter search process for.
Tuning algorithm to use to search hyperparameter space
Whether the job is active (if false => finished)
const response = await fetch('https://studio.edgeimpulse.com/v1/api/{projectId}/optimize/{tunerCoordinatorJobId}/state', {
method: 'GET',
headers: {},
});
const data = await response.json();
{
"success": false,
"error": "text",
"config": {
"name": "text",
"targetLatency": 0,
"targetDevice": {
"name": "cortex-m4f-80mhz",
"ram": 1024,
"rom": 1024
},
"compiler": [
"text"
],
"precision": [
"text"
],
"trainingCycles": 5,
"tuningMaxTrials": 2,
"tuningWorkers": 1,
"initialTrials": 5,
"optimizationRounds": 3,
"trialsPerOptimizationRound": 3,
"minMACCS": 0,
"maxMACCS": 0,
"tuningAlgorithm": "random",
"notificationOnCompletion": false,
"importProjectMetrics": false,
"importResourceMetrics": false,
"numImportProjectMetrics": 0,
"numImportResourceMetrics": 0,
"enableSEM": false,
"accuracySEM": 0,
"latencySEM": 0,
"optimizationObjectives": [
{
"objective": "text",
"label": "text",
"weight": 0
}
],
"rawObjectives": "text",
"optimizationPrecision": "float32",
"earlyStopping": false,
"earlyStoppingWindowSize": 0,
"earlyStoppingImprovementBar": 0,
"MOMF": false,
"verboseLogging": false,
"disableConstraints": false,
"disableDeduplicate": false,
"space": [
{
"inputBlocks": [],
"dspBlocks": [],
"learnBlocks": [
[]
]
}
],
"searchSpaceTemplate": {
"identifier": "speech_keyword",
"classification": false,
"anomaly": false,
"regression": false
}
},
"status": {
"numPendingTrials": 0,
"numRunningTrials": 0,
"numCompletedTrials": 0,
"numFailedTrials": 0,
"numReadyWorkers": 0,
"numBusyWorkers": 0,
"numPendingWorkers": 0,
"status": "creating"
},
"tunerJobId": 0,
"tunerCoordinatorJobId": 0,
"continuationJobId": 0,
"tuningAlgorithm": "random",
"tunerJobIsRunning": false,
"trials": [
{
"id": "text",
"name": "text",
"status": "pending",
"lastCompletedEpoch": "2024-12-21T12:21:20.806Z",
"lastCompletedTraining": "2024-12-21T12:21:20.806Z",
"retries": 0,
"currentEpoch": 0,
"workerId": "text",
"blocks": [
{
"id": 0,
"lastActive": "2024-12-21T12:21:20.806Z",
"retries": 0,
"status": "pending",
"type": "input",
"modelBlockIndex": 0
}
],
"impulse": {
"inputBlocks": [],
"dspBlocks": [],
"learnBlocks": []
},
"experiment": "text",
"original_trial_id": "text",
"dspJobId": {
"training": 0,
"testing": 0
},
"learnJobId": 0,
"optimizationRound": 0,
"progress": {
"epoch": 0,
"loss": 0,
"val_loss": 0,
"accuracy": 0,
"val_accuracy": 0
},
"metrics": {
"test": {
"float32": {
"type": "int8",
"loss": 0,
"accuracy": 0,
"confusionMatrix": [
[
31,
1,
0
],
[
2,
27,
3
],
[
1,
0,
39
]
],
"onDevicePerformance": [
{
"mcu": "text",
"name": "text",
"isDefault": false,
"latency": 0,
"tflite": {
"ramRequired": 0,
"romRequired": 0,
"arenaSize": 0,
"modelSize": 0
},
"eon": {
"ramRequired": 0,
"romRequired": 0,
"arenaSize": 0,
"modelSize": 0
},
"eon_ram_optimized": {
"ramRequired": 0,
"romRequired": 0,
"arenaSize": 0,
"modelSize": 0
},
"customMetrics": [
{
"name": "text",
"value": "text"
}
]
}
],
"predictions": [
{
"sampleId": 0,
"startMs": 0,
"endMs": 0,
"label": "text",
"prediction": "text",
"predictionCorrect": false,
"f1Score": 0,
"anomalyScores": [
[
0
]
]
}
],
"visualization": "featureExplorer",
"isSupportedOnMcu": false,
"mcuSupportError": "text",
"profilingJobId": 0,
"profilingJobFailed": false,
"additionalMetrics": [
{
"name": "text",
"value": "text",
"fullPrecisionValue": 0,
"tooltipText": "text",
"link": "text"
}
]
},
"int8": {
"type": "int8",
"loss": 0,
"accuracy": 0,
"confusionMatrix": [
[
31,
1,
0
],
[
2,
27,
3
],
[
1,
0,
39
]
],
"onDevicePerformance": [
{
"mcu": "text",
"name": "text",
"isDefault": false,
"latency": 0,
"tflite": {
"ramRequired": 0,
"romRequired": 0,
"arenaSize": 0,
"modelSize": 0
},
"eon": {
"ramRequired": 0,
"romRequired": 0,
"arenaSize": 0,
"modelSize": 0
},
"eon_ram_optimized": {
"ramRequired": 0,
"romRequired": 0,
"arenaSize": 0,
"modelSize": 0
},
"customMetrics": [
{
"name": "text",
"value": "text"
}
]
}
],
"predictions": [
{
"sampleId": 0,
"startMs": 0,
"endMs": 0,
"label": "text",
"prediction": "text",
"predictionCorrect": false,
"f1Score": 0,
"anomalyScores": [
[
0
]
]
}
],
"visualization": "featureExplorer",
"isSupportedOnMcu": false,
"mcuSupportError": "text",
"profilingJobId": 0,
"profilingJobFailed": false,
"additionalMetrics": [
{
"name": "text",
"value": "text",
"fullPrecisionValue": 0,
"tooltipText": "text",
"link": "text"
}
]
}
},
"train": {
"float32": {
"type": "int8",
"loss": 0,
"accuracy": 0,
"confusionMatrix": [
[
31,
1,
0
],
[
2,
27,
3
],
[
1,
0,
39
]
],
"onDevicePerformance": [
{
"mcu": "text",
"name": "text",
"isDefault": false,
"latency": 0,
"tflite": {
"ramRequired": 0,
"romRequired": 0,
"arenaSize": 0,
"modelSize": 0
},
"eon": {
"ramRequired": 0,
"romRequired": 0,
"arenaSize": 0,
"modelSize": 0
},
"eon_ram_optimized": {
"ramRequired": 0,
"romRequired": 0,
"arenaSize": 0,
"modelSize": 0
},
"customMetrics": [
{
"name": "text",
"value": "text"
}
]
}
],
"predictions": [
{
"sampleId": 0,
"startMs": 0,
"endMs": 0,
"label": "text",
"prediction": "text",
"predictionCorrect": false,
"f1Score": 0,
"anomalyScores": [
[
0
]
]
}
],
"visualization": "featureExplorer",
"isSupportedOnMcu": false,
"mcuSupportError": "text",
"profilingJobId": 0,
"profilingJobFailed": false,
"additionalMetrics": [
{
"name": "text",
"value": "text",
"fullPrecisionValue": 0,
"tooltipText": "text",
"link": "text"
}
]
},
"int8": {
"type": "int8",
"loss": 0,
"accuracy": 0,
"confusionMatrix": [
[
31,
1,
0
],
[
2,
27,
3
],
[
1,
0,
39
]
],
"onDevicePerformance": [
{
"mcu": "text",
"name": "text",
"isDefault": false,
"latency": 0,
"tflite": {
"ramRequired": 0,
"romRequired": 0,
"arenaSize": 0,
"modelSize": 0
},
"eon": {
"ramRequired": 0,
"romRequired": 0,
"arenaSize": 0,
"modelSize": 0
},
"eon_ram_optimized": {
"ramRequired": 0,
"romRequired": 0,
"arenaSize": 0,
"modelSize": 0
},
"customMetrics": [
{
"name": "text",
"value": "text"
}
]
}
],
"predictions": [
{
"sampleId": 0,
"startMs": 0,
"endMs": 0,
"label": "text",
"prediction": "text",
"predictionCorrect": false,
"f1Score": 0,
"anomalyScores": [
[
0
]
]
}
],
"visualization": "featureExplorer",
"isSupportedOnMcu": false,
"mcuSupportError": "text",
"profilingJobId": 0,
"profilingJobFailed": false,
"additionalMetrics": [
{
"name": "text",
"value": "text",
"fullPrecisionValue": 0,
"tooltipText": "text",
"link": "text"
}
]
}
},
"validation": {
"float32": {
"type": "int8",
"loss": 0,
"accuracy": 0,
"confusionMatrix": [
[
31,
1,
0
],
[
2,
27,
3
],
[
1,
0,
39
]
],
"onDevicePerformance": [
{
"mcu": "text",
"name": "text",
"isDefault": false,
"latency": 0,
"tflite": {
"ramRequired": 0,
"romRequired": 0,
"arenaSize": 0,
"modelSize": 0
},
"eon": {
"ramRequired": 0,
"romRequired": 0,
"arenaSize": 0,
"modelSize": 0
},
"eon_ram_optimized": {
"ramRequired": 0,
"romRequired": 0,
"arenaSize": 0,
"modelSize": 0
},
"customMetrics": [
{
"name": "text",
"value": "text"
}
]
}
],
"predictions": [
{
"sampleId": 0,
"startMs": 0,
"endMs": 0,
"label": "text",
"prediction": "text",
"predictionCorrect": false,
"f1Score": 0,
"anomalyScores": [
[
0
]
]
}
],
"visualization": "featureExplorer",
"isSupportedOnMcu": false,
"mcuSupportError": "text",
"profilingJobId": 0,
"profilingJobFailed": false,
"additionalMetrics": [
{
"name": "text",
"value": "text",
"fullPrecisionValue": 0,
"tooltipText": "text",
"link": "text"
}
]
},
"int8": {
"type": "int8",
"loss": 0,
"accuracy": 0,
"confusionMatrix": [
[
31,
1,
0
],
[
2,
27,
3
],
[
1,
0,
39
]
],
"onDevicePerformance": [
{
"mcu": "text",
"name": "text",
"isDefault": false,
"latency": 0,
"tflite": {
"ramRequired": 0,
"romRequired": 0,
"arenaSize": 0,
"modelSize": 0
},
"eon": {
"ramRequired": 0,
"romRequired": 0,
"arenaSize": 0,
"modelSize": 0
},
"eon_ram_optimized": {
"ramRequired": 0,
"romRequired": 0,
"arenaSize": 0,
"modelSize": 0
},
"customMetrics": [
{
"name": "text",
"value": "text"
}
]
}
],
"predictions": [
{
"sampleId": 0,
"startMs": 0,
"endMs": 0,
"label": "text",
"prediction": "text",
"predictionCorrect": false,
"f1Score": 0,
"anomalyScores": [
[
0
]
]
}
],
"visualization": "featureExplorer",
"isSupportedOnMcu": false,
"mcuSupportError": "text",
"profilingJobId": 0,
"profilingJobFailed": false,
"additionalMetrics": [
{
"name": "text",
"value": "text",
"fullPrecisionValue": 0,
"tooltipText": "text",
"link": "text"
}
]
}
}
},
"impulseAddedToProject": {
"impulseId": 0,
"link": "text"
}
}
],
"projectDataType": "audio",
"jobError": "text",
"workers": [
{
"workerId": "text",
"status": "pending"
}
],
"nextRunIndex": 0,
"isWhitelabel": false
}