Похожие чаты

If i want to calculate the MAE training instead of

the MSE training, can i simply use mae function? or it's needed to use gradient of MAE instead of MSE in gradient_descent function?

here is the code

4 ответов

33 просмотра

You need the correspondent gradient for MAE since its a different loss function. Here is an example: https://github.com/chenxingwei/machine_learning_from_scratch/blob/master/algorithm/2.linearRegressionGradientDescent.md

erik- Автор вопроса
Richardt
You need the correspondent gradient for MAE since ...

a guy told me that the model can be trained with gradient of MSE then the error can be calculated with different error metric such as MAE, MAPE and so on, is this a correct way? also in some papers several error metric such as MSE, MAE and MAPE used to measure the error of the model so do they train the model with the gradient of MSE, MAE and MAPE in order to calculate the error with these metrics?

erik
a guy told me that the model can be trained with g...

In general, the "loss" function is not the same as an error "metric". For training, the loss is used to train the model, then, you need its gradient for the optimization process. The loss function and its gradient guide the training process. For evaluation of regression models, you can use multiple metrics like MSE, MAE, etc., to study different aspects of the model performance. However, metrics do not directly influence the training process, their intent is to be more interpretative.

erik- Автор вопроса

Похожие вопросы

Обсуждают сегодня

30500 за редактор? )
Владимир
47
any reference of this implementation?
BitBuddha
29
Ⓐrtto, [4/23/24 7:02 PM] Please explain more fully how it is not working exactly, and what are the steps you are taking, and what error messages come or what happens. Ⓐrtto, ...
Ezza Kezza
2
sounds like people have lost their kaspa on tradeogre... does this mean tradeogre not trustworthy?
Ezza Kezza
15
Страшнейшая правда про списки ЦБ. С первых дней жизни P2P сферы, молодые человеки, начитавшись законодательной базы и "внутренних" документов, решили, что им противостоит сер...
Foxcool
3
Недавно Google Project Zero нашёл багу в SQLite с помощью LLM, о чём достаточно было шумно в определённых интернетах, которые сопровождались рассказами, что скоро всех "ибешни...
Alex Sherbakov
5
So much speculation in the last week. So much volatility in price. This is because Hedera has a GC that isn't using the network it's governing. Why aren't people asking why a...
Summit Seeker R
9
Anyone else having this error when trying to make transactions?
Datzel
11
Question: How viable is it to use Anvil as the backend infrastructure for managing a TradFi portfolio, while integrating Flexa for instant liquidity and payment solutions? Cou...
Kevin
2
вы делали что-то подобное и как? может есть либы готовые? увидел картинку нокода, где всё линиями соединено и стало интересно попробовать то же в ddl на lua сделать. решил с ч...
Victor
8
Карта сайта