Received a label value of 1 which is outside the valid range of [0, 1) - Python, Keras

后端 未结 5 1351
臣服心动
臣服心动 2021-02-01 14:25

I am working on a simple cnn classifier using keras with tensorflow background.

def cnnKeras(training_data, training_labels, test_data, test_labels, n_dim):
  pr         


        
5条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-01 15:06

    I had this problem when I had labels of type "float", cast them it "int" and the problem was solved...

提交回复
热议问题