Say I have 1000x500
table, where 500
are the columns and 1000 rows.
And the rows represent 1000
sample, each sample is composed of 499 features
and 1 label
If I want to put this tensorflow model and, say that each time I get a batch of 20 samples
:
.........................................
inputdata #is filled and has a shape of 499x1000
inputlabel #is filled and has a shape of 1x1000
y_ = tf.placeholder(tf.float32,[None,batchSize],name='Labels')
for j in range( numberOfRows/BatchSize):
sess.run(train_step,feed_dict={x:batch_xs[j],y_:np.reshape(inputlabel[j] ,(batchSize,1) )}))
So I've been trying to run my code for two days without any success, So I'll be grateful for any help considering the y_
and reshaping part. The problem that I have is to understand, that when I read a batch of 20 data
row how should I shape the labels Y_