Skip to content

Get Datasets

netspresso.np_qai.base.NPQAIBase.get_datasets(offset=0, limit=50)

Get a list of datasets from the QAI Hub.

Parameters:

Name Type Description Default
offset int

The offset of the datasets to get even older datasets.

0
limit int

The limit of the datasets to get.

50

Returns:

Type Description
List[Dataset]

List[Dataset]: Returns a list of dataset objects if successful.

Note

For details, see get_datasets in QAI Hub API.

Example

from netspresso import NPQAI

QAI_HUB_API_TOKEN = "YOUR_QAI_HUB_API_TOKEN"
np_qai = NPQAI(api_token=QAI_HUB_API_TOKEN)
datasets = np_qai.get_datasets()