反馈状态
产品模块
上线时间
参与状态
mnist 下载有语法错误
2
未解决
Open Datasets

from tensorbay import GAS
from tensorbay.dataset import Segment

# Authorize a GAS client.
gas = GAS('<YOUR_ACCESS_KEY>')

# Get a dataset client.
dataset_client = gas.get_dataset("MNIST")

# List dataset segments.
segments = list(dataset_client.list_segment_names())

# Get a segment by name
segment = Segment("test", dataset_client)
    classification = data.label.classification
    category = classification.category

我完全按程序,跑,会出现

File "<ipython-input-9-5becdae95e13>", line 2
    classification = data.label.classification
    ^
IndentationError: unexpected indent

当我对齐时,又会出现

NameError                                 Traceback (most recent call last)
<ipython-input-10-9853a0763ebd> in <module>
      1 segment = Segment("test", dataset_client)
----> 2 classification = data.label.classification
      3 category = classification.category

NameError: name 'data' is not defined
Graviti_623540
2021-04-22
立即开始构建AI