Top "Loss-function" questions

NaN loss when training regression network

I have a data matrix in "one-hot encoding" (all ones and zeros) with 260,000 rows and 35 columns. I am using Keras …

python keras neural-network theano loss-function
RMSE/ RMSLE loss function in Keras

I try to participate in my first Kaggle competition where RMSLE is given as the required loss function. For I …

python keras custom-function loss-function
NotImplementedError: Cannot convert a symbolic Tensor (2nd_target:0) to a numpy array

I try to pass 2 loss functions to a model as Keras allows that. loss: String (name of objective function) or …

python tensorflow keras loss-function
How does keras handle multiple losses?

If I have something like: model = Model(inputs = input, outputs = [y1,y2]) l1 = 0.5 l2 = 0.3 model.compile(loss = [loss1,loss2], loss_…

deep-learning keras backpropagation loss-function
Custom weighted loss function in Keras for weighing each element

I'm trying to create a simple weighted loss function. Say, I have input dimensions 100 * 5, and output dimensions also 100 * 5. I also …

python tensorflow keras loss-function
How do I mask a loss function in Keras with the TensorFlow backend?

I am trying to implement a sequence-to-sequence task using LSTM by Keras with the TensorFlow backend. The inputs are English …

keras lstm masking loss-function
What function defines accuracy in Keras when the loss is mean squared error (MSE)?

How is Accuracy defined when the loss function is mean square error? Is it mean absolute percentage error? The model …

machine-learning keras regression loss-function mean-square-error
How is the categorical_crossentropy implemented in keras?

I'm trying to apply the concept of distillation, basically to train a new smaller network to do the same as …

python tensorflow keras softmax loss-function
Implementing custom loss function in keras with condition

I need some help with keras loss function. I have been implementing custom loss function on keras with Tensorflow backend. …

python tensorflow keras loss-function
keras: Smooth L1 loss

Try to customize loss function(smooth L1 loss) in keras like below ValueError: Shape must be rank 0 but is rank 5 …

deep-learning keras loss-function