Query SDK
Query the Datapoints / Predictions / Groundtruths
To query the Datapoints, Predictions or Groundtruths, you can use the select_datapoints
select_predictions
, select_groundtruths
utilities. The output is a pandas DataFrame
the list of fields to be retrieved. To query sub fields, use a jq format. For example: image_metadata.uri
A list of filters to be used to query the data. Should follow the format
{
'left': 'my_field',
'op': '=', 'right:
'my_value'
}
Supported operators are =
, !=
, >
, <
, >=
, <=
, in
, not in
, like
, not like
limit to the number of datapoints to query
the name of a field to order by when doing a limit
This is to control the order on which the limit
is applied
whether the order should be desc or asc
Joining query results
To join query results in a single DataFrame, you can use the join_on_datapoints
utility
a DataFrame containing the datapoints
a DataFrame containing the predictions
a DataFrame containing the groundtruths
Deleting
To delete datapoints, predictions or ground truths, use the delete_xxx
functions. Note that deleting a datapoint will delete all attachment: groundtruths, tags, predictions.
Last updated
Was this helpful?