Previous page Update the training parameters  Stop the training Next page

On the page:


General info

Method

GET /IP address:port/<api_ver>/metric

DescriptionThe query is used to retrieve training metrics for the specified task

Sample request

GET http://localhost:5000/v1.3/metric?task_id=4ac03f98bb214f476473f10a95282df440199de130d985828d6c0469b17cf1ee&min_epoch=0&max_epoch=3

where:

ParameterDescription
task_id

A unique identifier of the task (uid), which can be obtained using a task list query (see Get the list of tasks)

min_epoch

The value starting from which (inclusive) it is necessary to show epochs. Default value is 0

max_epoch

The value up to which (inclusive) it is necessary to show epochs

Sample response

{
    "message": "Done",
    "metrics": {
        "0": {
            "acc": 50.66666793823242,
            "loss": 0.9217858910560608,
            "test_acc": 64.0,
            "test_loss": 0.7134290337562561
        },
        ....
        "3": {
            "acc": 46.66666793823242,
            "loss": 0.7211427092552185,
            "test_acc": 36.0,
            "test_loss": 0.7094659209251404
        }
    }
}

where:

ParameterDescription
metricsAn object containing metrics by epoch
accEpoch accuracy
lossLoss of epoch
test_accTest epoch accuracy
test_lossTest loss of epoch

Response in case of error:

{ "error": "error description" }


  • No labels