Links

Export Keras Block Data

Export the data of a Keras block (already split in train/validate data). Updates are streamed over the websocket API.
post
https://studio.edgeimpulse.com/v1
/api/{projectId}/jobs/train/keras/{learnId}/data
Export Keras block data

Export the data of a Keras block (already split in train/validate data). Updates are streamed over the websocket API.

Parameters
Path
projectId*
integer
Project ID
learnId*
integer
Learn Block ID, use the impulse functions to retrieve the ID
Responses
200: OK
OK
cURL
Python
Node.js
curl --request POST \
--url https://studio.edgeimpulse.com/v1/api/{projectId}/jobs/train/keras/{learnId}/data \
--header 'x-jwt-token: REPLACE_KEY_VALUE'
import http.client
conn = http.client.HTTPSConnection("studio.edgeimpulse.com")
headers = { 'x-jwt-token': "REPLACE_KEY_VALUE" }
conn.request("POST", "/v1/api/{projectId}/jobs/train/keras/{learnId}/data", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const request = require('request');
const options = {
method: 'POST',
url: 'https://studio.edgeimpulse.com/v1/api/{projectId}/jobs/train/keras/{learnId}/data',
headers: {'x-jwt-token': 'REPLACE_KEY_VALUE'}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});