open(..., "rb")
. The
upload_samples()
function expects Sample objects as input.
Parameters
bounding_boxes: List[dict] | None
The type of the None singleton.
category: Literal['training', 'testing', 'anomaly', 'split'] | None
The type of the None singleton.
data: io.BufferedIOBase | _io.StringIO | str
The type of the None singleton.
filename: str | None
The type of the None singleton.
label: str | None
The type of the None singleton.
metadata: dict | None
The type of the None singleton.
sample_id: int | None
The type of the None singleton.
structured_labels: List[dict] | None
The type of the None singleton.
None
, all samples in the project are deleted.
Parameters
filename
argument must not include the original extension. For example,
if you uploaded a file named my-image.01.png
, you must provide the filename
as
my-image.01
.
Parameters
DownloadSample
object, which contains the raw data in
a BytesIO object along with associated metadata.
Important! All time series data is returned as a JSON file (in BytesIO format)
with a timestamp column. This includes files originally uploaded as CSV, JSON, and
CBOR. Edge Impulse Studio removes the timestamp column from any uploaded CSV
files and computes an estimated sample rate. The timestamps are computed based on
the sample rate, will always start at 0, and will be in milliseconds. These
timestamps may not be the same as the original timestamps in the uploaded file.
Parameters
my-image.01.png
, it will be stored in your project with
a hash such as my-image.01.png.4f262n1b.json
. To find the ID(s) that match this
sample, you must provide the argument filename=my-image.01
. Notice the lack of
extension and hash.
Because of the potential for multiple samples (i.e., different sample IDs) with the
same filename, we recommend providing unique filenames for your samples when
uploading.
Parameters
my-dataset/training/wave.1.cbor
where wave
is the label and training
is the category.
It checks if there is training
, testing
or anomaly
in the filename to determine the sample category.
Parameters
info.labels
information.
Use this when you’ve exported your data in the studio, via the export
functionality.
Parameters
group_by
in order to detect what timeseries value belongs
to which sample.
Parameters
Sample
object, which contains metadata about that sample.
Give this function a single Sample
or a List of Sample
objects to upload to your
project. The data
field of the Sample
must be a raw binary stream, such as a BufferedIOBase
object (which you can create with the open(..., "rb")
function).
Parameters