Model Evaluation 2

7 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$49.99
List Price:  $69.99
You save:  $20
€46.84
List Price:  €65.59
You save:  €18.74
£40.08
List Price:  £56.11
You save:  £16.03
CA$68.77
List Price:  CA$96.29
You save:  CA$27.51
A$77.57
List Price:  A$108.61
You save:  A$31.03
S$67.98
List Price:  S$95.18
You save:  S$27.19
HK$391.47
List Price:  HK$548.09
You save:  HK$156.61
CHF 45.44
List Price:  CHF 63.62
You save:  CHF 18.18
NOK kr550.52
List Price:  NOK kr770.78
You save:  NOK kr220.25
DKK kr349.57
List Price:  DKK kr489.42
You save:  DKK kr139.85
NZ$84.34
List Price:  NZ$118.08
You save:  NZ$33.74
د.إ183.58
List Price:  د.إ257.04
You save:  د.إ73.45
৳5,470.71
List Price:  ৳7,659.43
You save:  ৳2,188.72
₹4,176.24
List Price:  ₹5,847.07
You save:  ₹1,670.83
RM239.12
List Price:  RM334.79
You save:  RM95.67
₦64,837.03
List Price:  ₦90,777.03
You save:  ₦25,940
₨13,875.73
List Price:  ₨19,427.14
You save:  ₨5,551.40
฿1,838.09
List Price:  ฿2,573.47
You save:  ฿735.38
₺1,625.07
List Price:  ₺2,275.24
You save:  ₺650.16
B$261.61
List Price:  B$366.28
You save:  B$104.66
R951.73
List Price:  R1,332.50
You save:  R380.77
Лв91.56
List Price:  Лв128.20
You save:  Лв36.63
₩68,725.22
List Price:  ₩96,220.81
You save:  ₩27,495.59
₪189.45
List Price:  ₪265.25
You save:  ₪75.79
₱2,860.16
List Price:  ₱4,004.45
You save:  ₱1,144.29
¥7,719.58
List Price:  ¥10,808.04
You save:  ¥3,088.45
MX$847.97
List Price:  MX$1,187.23
You save:  MX$339.25
QR181.87
List Price:  QR254.64
You save:  QR72.76
P688.94
List Price:  P964.57
You save:  P275.63
KSh6,648.67
List Price:  KSh9,308.67
You save:  KSh2,660
E£2,424.79
List Price:  E£3,394.91
You save:  E£970.11
ብር2,836.22
List Price:  ብር3,970.94
You save:  ብር1,134.71
Kz41,866.62
List Price:  Kz58,616.62
You save:  Kz16,750
CLP$48,936.71
List Price:  CLP$68,515.31
You save:  CLP$19,578.60
CN¥361.88
List Price:  CN¥506.66
You save:  CN¥144.78
RD$2,946.48
List Price:  RD$4,125.31
You save:  RD$1,178.83
DA6,722.93
List Price:  DA9,412.64
You save:  DA2,689.71
FJ$113.51
List Price:  FJ$158.92
You save:  FJ$45.41
Q387.68
List Price:  Q542.78
You save:  Q155.10
GY$10,436.32
List Price:  GY$14,611.69
You save:  GY$4,175.36
ISK kr7,041.59
List Price:  ISK kr9,858.79
You save:  ISK kr2,817.20
DH505.94
List Price:  DH708.36
You save:  DH202.41
L894.84
List Price:  L1,252.84
You save:  L358
ден2,883.38
List Price:  ден4,036.97
You save:  ден1,153.58
MOP$402.04
List Price:  MOP$562.89
You save:  MOP$160.85
N$948.82
List Price:  N$1,328.43
You save:  N$379.60
C$1,834.68
List Price:  C$2,568.70
You save:  C$734.02
रु6,672.62
List Price:  रु9,342.21
You save:  रु2,669.58
S/187.54
List Price:  S/262.58
You save:  S/75.03
K189.46
List Price:  K265.26
You save:  K75.80
SAR187.52
List Price:  SAR262.55
You save:  SAR75.02
ZK1,259.85
List Price:  ZK1,763.89
You save:  ZK504.04
L233.06
List Price:  L326.30
You save:  L93.24
Kč1,184.38
List Price:  Kč1,658.23
You save:  Kč473.85
Ft18,455.66
List Price:  Ft25,839.41
You save:  Ft7,383.74
SEK kr544.55
List Price:  SEK kr762.42
You save:  SEK kr217.86
ARS$43,452.58
List Price:  ARS$60,837.09
You save:  ARS$17,384.51
Bs345.19
List Price:  Bs483.29
You save:  Bs138.10
COP$195,545.84
List Price:  COP$273,779.82
You save:  COP$78,233.98
₡24,976.48
List Price:  ₡34,969.07
You save:  ₡9,992.59
L1,230.59
List Price:  L1,722.93
You save:  L492.33
₲368,897
List Price:  ₲516,485.32
You save:  ₲147,588.31
$U1,944.69
List Price:  $U2,722.73
You save:  $U778.03
zł202.91
List Price:  zł284.09
You save:  zł81.18
Already have an account? Log In

Transcript

Okay How can I do this model evaluation it is because you are using this Java. So, he will be around the same as this classification. So, I copy the whole method okay. I paste it here then I will change this to evaluation model evaluation. So I change we evaluate our model trains, Tessa algorithm train test testing test all will be the same. So, the Import Data Source and bodies are the same if algorithm equal to linear linear regression equal new linear regressions, classifier c is equal linear and then C is your classifier we will change something here.

So, here are classified instances. So for each row in testing South Asia instances are each observation in the testing set. we classify the instance. So to evaluate model, we can do something like this evaluation or evaluation. Evaluate equal new evaluation using trainset. Okay, evaluate dot Eva, da, Mada CLS test sec.

Okay. Then we can see dot out. dot brain ly Okay evaluate to some Reese pre k slash, so this is our linear so linear regression okay then resolve slash n okay then slash n okay to summary resolve Okay, here should be false okay we can use this method to print a print result here so I can remove this one yeah I have to employ class here. Okay valet model a valet more should be more system error no System dot out dot println I print the result. Okay, so easy linear regression I'm not going to evaluate a linear regression I have to change because two 3.6 all these. So, I will do the same for the Allah algorithm.

So, what we change now is our evaluation until these are System dot out dot print line. So, I will do something like this, it should be after your classifier will change something IDs ah tree so, these are linear regression of a change to decision tree okay then I will replace here So, K a near regressor I change to k n k then for Naive Bayes replace it also. Okay. So here I remove and I changed to Naive Bayes and for MLP in summary here I changed this to MLP Amati the perceptron okay then I can call the evaluate our model. So I can do something like this okay. Evaluate a model that I can remove this classification I should have some error sama Because, in this evaluate our model, when we evaluate a model, we need a test set with labor.

So for our Iris data set, we don't have the labor. So to evaluate our model, we need a ERISA test to add labor here. Why do we need this labor? So, let's say when we are when we evaluate evaluate a model, so, after we train the model V, these are Iris data set, then we put in this testing set into the model and then this model will predict the cross here. Then we will based on the cross that we predicted and these are across here. So we will do the Evaluation we do all the calculation for the accuracy.

So, we will do the equation or calculate the accuracy calculate the accuracy using all those confusion matrix and so on. So, in confusion matrix we had extra So, extra will be the actual labor here and the predictor our labor we will compare our actual and predicted labor and then we will get our accuracy, precision and recall from this confusion matrix Okay, so, for our case I can just use the same data I should have some other accuracy here. Okay, so MLP reside we'll have all the accuracy here. If I change to other algorithm, so let's say Naive Bayes, so I saw some result here. So okay.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.