Introduction k-nearest neighbors (knn) algorithm is a type of supervised ml algorithm which can be used for both classification as well as regression predictive problems. However


Performance Metrics for Regression Problems



Download 0,73 Mb.
Pdf ko'rish
bet16/17
Sana31.12.2021
Hajmi0,73 Mb.
#222840
1   ...   9   10   11   12   13   14   15   16   17
Bog'liq
machine learning with python tutorial-139-150

Performance Metrics for Regression Problems 

We have discussed regression and its algorithms in previous chapters. Here, we are going 

to  discuss  various  performance  metrics  that  can  be  used  to  evaluate  predictions  for 

regression problems.  

Mean Absolute Error (MAE)  

It  is  the  simplest  error  metric  used  in  regression  problems.  It  is  basically  the  sum  of 

average  of  the  absolute  difference  between  the  predicted  and  actual  values.  In  simple 

words, with MAE, we can get an idea of how wrong the predictions were. MAE does not 

indicate  the  direction  of  the  model  i.e.  no  indication  about  underperformance  or 

overperformance of the model. The following is the formula to calculate MAE: 

𝑀𝐴𝐸 =  

1

𝑛



∑|𝑌 − 𝑌̂| 

Here, 𝑌=Actual Output Values 

And 𝑌̂ = Predicted Output Values. 

We can use mean_absolute_error function of sklearn.metrics to compute MAE. 




Download 0,73 Mb.

Do'stlaringiz bilan baham:
1   ...   9   10   11   12   13   14   15   16   17




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish