Skip to content Skip to sidebar Skip to footer
Showing posts with the label Loss Function

How To Iterate Through Tensors In Custom Loss Function?

I'm using keras with tensorflow backend. My goal is to query the batchsize of the current batch… Read more How To Iterate Through Tensors In Custom Loss Function?

How Can I Predict The Expected Value And The Variance Simultaneously With A Neural Network?

I'd like to use a neural network to predict a scalar value which is the sum of a function of th… Read more How Can I Predict The Expected Value And The Variance Simultaneously With A Neural Network?

How To Pass The Input Tensor Of A Model To A Loss Function?

My goal is to create a custom loss function that calculates the loss based on y_true, y_pred and th… Read more How To Pass The Input Tensor Of A Model To A Loss Function?

Using Sgd Without Using Sklearn (logloss Increasing With Every Epoch)

def train(X_train,y_train,X_test,y_test,epochs,alpha,eta0): w,b = initialize_weights(X_train[0]… Read more Using Sgd Without Using Sklearn (logloss Increasing With Every Epoch)