Data Sources
The data sources page is actually much more than just adding data from external sources. It let you create complete automated data pipelines so you can work on your active learning strategies.
From there, you can import datasets from existing cloud storage buckets, automate and schedule the imports, and, trigger actions such as explore and label your new data, retrain your model, automatically build a new deployment task and more.
Add a data source
Click in + Add new data source and select where your data lives:
Click on Next, provide credentials:
Click on Verify credentials:
Here, you have several options to automatically label your data:
Infer from folder name
In the example above, the structure of the folder is the following:
The labels will be picked from the folder name and will be split between your training and testing set using the following ratio 80/20
.
Note that the samples present in an unlabeled/
folder will be kept unlabeled in Edge Impulse Studio.
Alternatively, you can also organize your folder using the following structure to automatically split your dataset between training and testing sets:
Infer from file name:
When using this option, only the file name is taken into account. The part before the first .
will be used to set the label. E.g. cars.01741.jpg
will set the label to cars
.
Keep the data unlabeled:
All the data samples will be unlabeled, you will need to label them manually before using them.
Finally, click on Next, post-sync actions.
From this view, you can automate several actions:
Recreate data explorer
The data explorer gives you a one-look view of your dataset, letting you quickly label unknown data. If you enable this you'll also get an email with a screenshot of the data explorer whenever there's new data.
Retrain model
If needed, will retrain your model with the same impulse. If you enable this you'll also get an email with the new validation and test set accuracy.
Note: You will need to have at least setup up and trained your project once.
Create new version
Store all data, configuration, intermediate results and final models.
Create new deployment
Builds a new library or binary with your updated model. Requires 'Retrain model' to also be enabled.
Run the pipeline
Once your pipeline is set, you can run it directly from the UI, from external sources or by scheduling the task.
Run the pipeline from the UI
To run your pipeline from Edge Impulse studio, click on the â‹®
button and select Run pipeline now.
Run the pipeline from code
To run your pipeline from Edge Impulse studio, click on the â‹®
button and select Run pipeline from code. This will display an overlay with curl
, Node.js
and Python
code samples.
Note that you will need to create an API key to run the pipeline from code.
Schedule your pipeline jobs
By default, your pipeline will run every day. To schedule your pipeline jobs, click on the â‹®
button and select Edit pipeline.
Note that free users can only run the pipeline every 4 hours. If you are an enterprise customer, you can run this pipeline up to every minute.
Once the pipeline has successfully finish, you will receive an email like the following:
Note that you can also define who can receive the email. The users have to be part of your project. See Dashboard -> Collaboration.
Webhooks
Another useful feature is to create a webhook to call a URL when the pipeline has ran. It will run a POST request containing the following information:
Edit your pipeline
As of today, if you want to update your pipeline, you need to edit the configuration json available in â‹®
-> Run pipeline from code.
Here is an example of what you can get if all the actions have been selected:
Free projects have only access to the above builtinTransformationBlock
.
If you are part of an organization, you can use your custom transformation jobs in the pipeline. In your organization workspace, go to "Custom blocks -> Transformation" and select "Run job" on the job you want to add.
Select "Copy as pipeline step" and paste it to the configuration json file.
Last updated