Working of the Earth Mover Loss method in Keras and input arguments data types
问题 I have found a code for the Earth Mover Loss in Keras/Tensrflow. I want to compute the loss for the scores given to images but I can not do it until I get to know the working of the Earth Mover Loss given below. Can someone please describe that what is happening in the code. The last layer of the model or output layer is like: out = Dense(10,activation='softmax')(x) What should be the input types for this method.I have my y_labels in the form of 1.2,4.9 etc etc. I want to use it with Keras