Single page of a classify job result
Get classify job result, containing the predictions for a given page.
Request
- Base URLhttps://studio.edgeimpulse.com/v1
- Auth
- API key in header x-api-key
- or API key in cookie jwt
- or API key in header x-jwt-token
- or OAuth 2Authorization code/v1/oauth/authorizeClient credentialsImplicit/v1/oauth/authorizePasswordToken URL/v1/oauth/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Project ID
Query parameters
Maximum number of results
Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
Keras model variant
Impulse ID. If this is unset then the default impulse is used.
If true, only a slice of labels will be returned for samples with multiple labels.
Only include samples with a label within the given list of labels, given as a JSON string
Only include samples whose filename includes the given filename
Only include samples shorter than the given length, in milliseconds
Only include samples longer than the given length, in milliseconds
Only include samples with higher frequency than given frequency, in hertz
Only include samples with lower frequency than given frequency, in hertz
Include samples with either valid or invalid signatures
Only include samples with a label >= this value
Only include samples with a label < this value
Search query
Include only samples with a particular data type
Include only samples with an ID >= this value
Include only samples with an ID < this value
Filter samples by metadata key-value pairs, provided as a JSON string. Each item in the filter list is an object with the following properties: - "key": Metadata key to filter on. - "op": Operator ("eq" for positive match, "neq" for negative match). - "values": (optional) Array of values to match/exclude. If omitted or empty, matches/excludes all values for the key. In addition to filter objects, the following option objects can be specified: - { "no_metadata": boolean } - If true, include samples without any metadata - { "filters_combinator": ("and" | "or") } - Specifies the combinator and matching mode: - "and": All filter items must match (logical AND). - "or": Any filter item may match (logical OR); samples with metadata keys not present in the filters are included.
Only include samples that where added after the date given
Only include samples that were added before the date given
Category to run model testing, or to retrieve results. If not provided, this will default to 'testing'.
Response
OK
Example response
{
"result": [
{
"sample": {
"id": 2,
"filename": "idle01.d8Ae",
"signatureValidate": true,
"signatureMethod": "HS256",
"label": "healthy-machine",
"intervalMs": 16,
"frequency": 62.5,
"originalIntervalMs": 16,
"originalFrequency": 62.5,
"sensors": [
{
"name": "accX"
}
],
"datastreams": [
{
"sensors": [
{
"name": "accX"
}
]
}
]
},
"classifications": [
{
"learnBlock": {
"name": "NN Classifier",
"dsp": [
27
],
"title": "Classification (Keras)",
"createdBy": "createImpulse"
},
"result": [
{
"idle": 0.0002,
"wave": 0.9998,
"anomaly": -0.42
}
],
"structuredResult": [
{
"debugInfoJson": "{\n \"y_trues\": [\n {\"x\": 0.854, \"y\": 0.453125, \"label\": 1},\n {\"x\": 0.197, \"y\": 0.53125, \"label\": 2}\n ],\n \"y_preds\": [\n {\"x\": 0.916, \"y\": 0.875, \"label\": 1},\n {\"x\": 0.25, \"y\": 0.541, \"label\": 2}\n ],\n \"assignments\": [\n {\"yp\": 1, \"yt\": 1, \"label\": 2, \"distance\": 0.053}\n ],\n \"normalised_min_distance\": 0.2,\n \"all_pairwise_distances\": [\n [0, 0, 0.426],\n [1, 1, 0.053]\n ],\n \"unassigned_y_true_idxs\": [0],\n \"unassigned_y_pred_idxs\": [0]\n}\n"
}
],
"thresholds": [
{
"key": "min_score",
"description": "Score threshold",
"helpText": "Threshold score for bounding boxes. If the score for a bounding box is below this the box will be discarded."
}
]
}
]
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.