【发布时间】:2017-09-16 19:13:45
【问题描述】:
我尝试使用来自 github 的 MLPClassifier:
但我实际上不知道如何将它与我自己的数据一起使用。我有一个维度为 20000x100 的特征矩阵 X 和一个 5 类大小为 20000 的目标向量 y。
X 和 y 保存在一个 numpy 数组中。我感到困惑的是:
x = tf.placeholder("float", [None, n_input]) #n_input is 100 here, right?
y = tf.placeholder("float", [None, n_classes])
total_batch = int(mnist.train.num_examples/batch_size) #What is that for my data?
batch_x, batch_y = mnist.train.next_batch(batch_size)#what are these?
【问题讨论】:
标签: tensorflow