【发布时间】:2023-03-09 10:17:02
【问题描述】:
#helper libraries
import numpy as np
import pandas as pd
#loading the data
import os
train_dataset = pd.read_csv("/content/sample_data/mnist_train_small.csv")
test_dataset = pd.read_csv("/content/sample_data/mnist_test.csv")
# each image is mapped to a label so (a number from 1 to 10) so for ease of use the labels have been given class names
class_names = ['T-shirt/top', 'Pair of Trouser', 'Pull over', 'Dress', 'Coat', 'Sandal', 'Shirt', 'Sneaker', 'Bag', 'Ankle Boot']
#exploring the data
train_dataset.shape()
test_dataset.shape()
TypeError Traceback(最近一次调用最后一次) 在 () 1 #探索hte数据 2 """我们需要知道数据的维度,以便我们知道如何最好地连接或给它任何类似的过程""" ----> 3 train_dataset.shape() 4 test_dataset.shape()
TypeError: 'tuple' 对象不可调用
【问题讨论】:
标签: python pandas database csv deep-learning