import tensorflow as tf boston_house = tf.keras.datasets.boston_housing (train_x,train_y),(test_x,test_y) = boston_house.load_data(test_split = 0) #test_split = 0 表示测试数据为0,全是训练数据 #打印数据 print('train_x:') print(train_x,train_x.shape) print() print('train_y:') print(train_y,train_y.shape)