eternagame / EternaBrain

Deep learning to solve RNA design puzzles
https://software.eternagame.org/
Other
19 stars 11 forks source link

Incorrect shape size for NN input data #9

Closed RK900 closed 7 years ago

RK900 commented 7 years ago

Tensorflow

cost = tf.reduce_mean(tf.nn.softmax_cross_entropy_with_logits(logits=prediction,labels=y))

Logits and labels not of same size.

TFLearn

net = tflearn.input_data(shape=[None, 4716])

Shape size is incorrect for input matrix.

RK900 commented 7 years ago

Reshape

np.reshape([-1,24])
RK900 commented 7 years ago

YES IT WORKS!!!!

Fixes:

n_classes = 2
batch_size = 100 # load 100 features at a time

x = tf.placeholder('float',[None,16]) 
y = tf.placeholder('float',[None,2])

enc = enc0.reshape([-1,16])
ms = ms0