kospi_training = 'kospi_training.csv'
kospi_test = 'kospi_test.csv'
training_set = tf.contrib.learn.datasets.base.load_csv_with_header(filename = kospi_training,
target_dtype = np.int,
features_dtype = np.float32)
test_set = tf.contrib.learn.datasets.base.load_csv_with_header(filename = kospi_test,
target_dytpe = np.int,
features_dtype = np.float32)我创建了上面的代码,但它不起作用。它给了我这个错误:
TypeError: load_csv_with_header() got an unexpected keyword argument 'target_dytpe'我的csv文件如下所示:
2468,3, x1, x2, x3, label
1085 ,74.45,1.49,1
1082 ,74.66,1.48,1
1081 ,74.59,1.49,0
1082 ,74.04,1.49,1
1077 ,74.02,1.49,0
1070 ,73.48,1.49,0
1067 ,73.68,1.49,1 and so on.我在谷歌上搜索过,但我不知道我的代码哪里出错了。
请帮帮忙。谢谢。
发布于 2018-05-24 13:14:14
这只是你代码中的一个错误。
target_dytpe = np.int应:
target_dtype = np.inthttps://stackoverflow.com/questions/50510257
复制相似问题