Questions tagged [loss]
The loss tag has no summary.
37 questions
3 votes
0 answers
44 views
Loss while fine tuning a transformer based pose estimation model not reducing
I am trying to fine-tune a transformer/encoder based pose estimation model available here at: https://huggingface.co/docs/transformers/en/model_doc/vitpose When passing "labels" attribute to ...
1 vote
1 answer
47 views
What loss function can I use?
My dataset consists of 5625 Arabic examples and 5625 synsets, and my model is CNN followed by a sigmoid classification layer. I constructed this 5625 synsets to 5625 classes, and my predicted output ...
1 vote
1 answer
41 views
Does reducing the loss change the amount of change during backpropagation?
If I would do loss = loss/10 before calculating the gradient would that change the amount of change applied to the model parameters during back propagation? Or is ...
0 votes
1 answer
86 views
How do I use loss instead of accuracy in the formula?
The below function is applied as a filtering procedure for a set of clients that are represented by accuracy values. where accuracy is used to measure the model’s performance. So, my question is: If ...
1 vote
0 answers
35 views
Transfer Learning - GoogLeNet - Training Times || Loss not converging || Pytorch
Hi Community and thanks in advance for the help. I am working on transfer learning - specifically GoogLeNet model with the Food101 Dataset. Code is below. I think everything is in order from data ...
0 votes
0 answers
25 views
What does a correlation between predictions of training data and predictions of validation data tell me?
In my Machine Learning intro course I made several scatter plots of predictions for the california housing data set. Here is the most complete of them (created by a pipe using a sklearn StandardScaler ...
1 vote
0 answers
32 views
0 votes
0 answers
48 views
flat validation loss (underfitting or goodfitting)
if we have a loss like this plot, is it kind of underfitting or goodfitting? Error results: Training Process:
4 votes
0 answers
343 views
How Does the Reward Model in ChatGPT Calculate Losses?
Reading the InstructGPT paper(which seems to be what ChatGPT was built off of), I found this equation for the reward function. However, I'm struggling to understand how this equation is used to ...
1 vote
0 answers
161 views
Calculationg perplexity (in natural language processing) manually
I am trying to understand Perplexity within Natural Language Processing as a metric more fully. And I am doing so by creating manual examples to understand all the component parts. Is the following ...
1 vote
1 answer
500 views
What does that mean if the loss looks like this?
I have a problem. I have trained a model. And as you can see, there is a zigzag in the loss. In addition, the validation loss is increasing. What does this mean if you only look at the training curve? ...
0 votes
1 answer
68 views
Is there a way I can double the punishment when model mis-classing to a specific class?
As the title I asked. For example: a model that predicts the probability of a stock price rising/falling. Let's say this is a triple-classification problem. If it predicts "RISING", while ...
0 votes
2 answers
112 views
Val loss initially decreases, then increases
I've created an LSTM model to predict 1 output value from 8 features. My loss constantly decreases and my val loss also decreases from the start, however it begins to increase after so many epochs. ...
0 votes
0 answers
51 views
Why is there a 0.5 in this loss?
I'm reading this paper and I don't understand why the squared L2-norm is also multiplied by 0.5 in the loss. They want a loss that measures the distance between two feature maps. Why don't they use ...
0 votes
0 answers
260 views
training loss decreases but training accuracy is also decreasing with epochs
I am working on the classification problem where by I am having a hinge loss function + other loss terms to optimize for which the input is the output from tanh layer at the end. But I can't reveal ...