Похожие чаты

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 ответов

50 просмотров

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- Автор вопроса

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

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

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта