我在Docker容器中运行Tensor流程,我是一个新手。这是我刚从TensorFlow tutorial复制到加载CSV数据集的代码。
import tensorflow as tf
import numpy as np
# Data sets
IRIS_TRAINING = "iris_training.csv"
IRIS_TEST = "iris_test.csv"
# Load datasets.
training_set = tf.contrib.learn.datasets.base.load_csv(filename=IRIS_TRAINING, target_dtype=np.int)
test_set = tf.contrib.learn.datasets.base.load_csv(filename=IRIS_TEST, target_dtype=np.int)
无论如何,这会引发以下错误:
AttributeError: 'module' object has no attribute 'datasets'
我的问题是如何加载我在桌面上本地下载的csv文件?应该是这样的吗?
IRIS_TRAINING = "C:\Users\priya\Desktop\iris_training.csv"
IRIS_TEST = "C:\Users\priya\Desktop\iris_test.csv"
如何加载CSV?有可用的文件吗?