Retrieves the EON tuner state
Last updated
Last updated
Retrieves the EON tuner state
Project ID
Current EON tuner state
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.
Whether the job is active (if false => finished)
const response = await fetch('https://studio.edgeimpulse.com/v1/api/{projectId}/optimize/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": [
"text"
],
"rawObjectives": "text",
"optimizationPrecision": "float32",
"earlyStopping": false,
"earlyStoppingWindowSize": 0,
"earlyStoppingImprovementBar": 0,
"MOMF": false,
"verboseLogging": false,
"space": [
{
"inputBlocks": [],
"dspBlocks": [],
"learnBlocks": [
[]
]
}
],
"searchSpaceTemplate": {
"identifier": "speech_keyword",
"classification": false,
"anomaly": false,
"regression": false
}
},
"status": {
"status": "creating"
},
"tunerJobIsRunning": false,
"trials": [
{
"id": "text",
"name": "text",
"status": "pending",
"lastCompletedEpoch": "2024-11-21T08:50:29.387Z",
"lastCompletedTraining": "2024-11-21T08:50:29.387Z",
"workerId": "text",
"blocks": [
{
"lastActive": "2024-11-21T08:50:29.387Z",
"status": "pending",
"type": "input"
}
],
"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": {},
"eon": {},
"eon_ram_optimized": {},
"customMetrics": [
{
"name": "text",
"value": "text"
}
]
}
],
"predictions": [
{
"startMs": 0,
"endMs": 0,
"label": "text",
"prediction": "text",
"predictionCorrect": false,
"f1Score": 0,
"anomalyScores": [
[
0
]
]
}
],
"visualization": "featureExplorer",
"isSupportedOnMcu": false,
"mcuSupportError": "text",
"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": {},
"eon": {},
"eon_ram_optimized": {},
"customMetrics": [
{
"name": "text",
"value": "text"
}
]
}
],
"predictions": [
{
"startMs": 0,
"endMs": 0,
"label": "text",
"prediction": "text",
"predictionCorrect": false,
"f1Score": 0,
"anomalyScores": [
[
0
]
]
}
],
"visualization": "featureExplorer",
"isSupportedOnMcu": false,
"mcuSupportError": "text",
"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": {},
"eon": {},
"eon_ram_optimized": {},
"customMetrics": [
{
"name": "text",
"value": "text"
}
]
}
],
"predictions": [
{
"startMs": 0,
"endMs": 0,
"label": "text",
"prediction": "text",
"predictionCorrect": false,
"f1Score": 0,
"anomalyScores": [
[
0
]
]
}
],
"visualization": "featureExplorer",
"isSupportedOnMcu": false,
"mcuSupportError": "text",
"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": {},
"eon": {},
"eon_ram_optimized": {},
"customMetrics": [
{
"name": "text",
"value": "text"
}
]
}
],
"predictions": [
{
"startMs": 0,
"endMs": 0,
"label": "text",
"prediction": "text",
"predictionCorrect": false,
"f1Score": 0,
"anomalyScores": [
[
0
]
]
}
],
"visualization": "featureExplorer",
"isSupportedOnMcu": false,
"mcuSupportError": "text",
"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": {},
"eon": {},
"eon_ram_optimized": {},
"customMetrics": [
{
"name": "text",
"value": "text"
}
]
}
],
"predictions": [
{
"startMs": 0,
"endMs": 0,
"label": "text",
"prediction": "text",
"predictionCorrect": false,
"f1Score": 0,
"anomalyScores": [
[
0
]
]
}
],
"visualization": "featureExplorer",
"isSupportedOnMcu": false,
"mcuSupportError": "text",
"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": {},
"eon": {},
"eon_ram_optimized": {},
"customMetrics": [
{
"name": "text",
"value": "text"
}
]
}
],
"predictions": [
{
"startMs": 0,
"endMs": 0,
"label": "text",
"prediction": "text",
"predictionCorrect": false,
"f1Score": 0,
"anomalyScores": [
[
0
]
]
}
],
"visualization": "featureExplorer",
"isSupportedOnMcu": false,
"mcuSupportError": "text",
"profilingJobFailed": false,
"additionalMetrics": [
{
"name": "text",
"value": "text",
"fullPrecisionValue": 0,
"tooltipText": "text",
"link": "text"
}
]
}
}
},
"impulseAddedToProject": {
"link": "text"
}
}
],
"projectDataType": "audio",
"jobError": "text",
"workers": [
{
"workerId": "text",
"status": "pending"
}
],
"isWhitelabel": false
}