You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have trained a network that predicts 16 values (regression). The output should be a tensor which is (n,16) where n is the number of submitted examples. I have confirmed that the network is working as expected. However, I cannot directly print the values that the network predicts. The code I am running is:
generated_1 = model.predict(testing_x)
## error if print(generated_1)
generated_1 = np.array(generated_phase_1)
## error if print(generated_1)
print(generated_phase_1.shape)
## no error, correctly prints expected tensor shape
generated_1 = generated_1[0]
## error if print(generated_1)
The error that is generated is the same at all points I have marked in the above code:
"TypeError: '>' not supported between instances of 'int' and 'str'"
The text was updated successfully, but these errors were encountered:
I solved my own problem. It also appears more general than I thought so I do not think that it is a tflearn bug, but actually something to do with numpy print options. Just in case anyone encounters a similar error, I commented out the following line and resolved the error
I have trained a network that predicts 16 values (regression). The output should be a tensor which is (n,16) where n is the number of submitted examples. I have confirmed that the network is working as expected. However, I cannot directly print the values that the network predicts. The code I am running is:
The error that is generated is the same at all points I have marked in the above code:
"TypeError: '>' not supported between instances of 'int' and 'str'"
The text was updated successfully, but these errors were encountered: