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

Authorizations

x-api-key
string
header
required

Path Parameters

projectId
integer
required

Project ID

Response

200 - application/json

Current EON tuner state

The response is of type object.