graviti
PlatformMarketplaceSolutionsResourcesOpen DatasetsCommunityCompany
773
0
0
Kenyan Food Type
General
SDK
Activities
Dataset non-members cannot use this dataset via developer tools. You can access and use the data after forking the dataset.
Fork
1from tensorbay import GAS
2from tensorbay.dataset import Dataset
3
4# Authorize a GAS client.
5gas = GAS('<YOUR_ACCESS_KEY>')
6
7# Get a dataset.
8dataset = Dataset("KenyanFoodType", gas)
9
10# List dataset segments.
11segments = dataset.keys()
12
13# Get a segment by name
14segment = dataset["test"]
15for data in segment:
16    with data.open() as fp:
17        # Use the data as you like.
18        classification = data.label.classification
19        classification_category = classification.category
20