topepo / APM_Exercises

Exercises for the book Applied Predictive Modeling by Kuhn and Johnson (2013)
194 stars 158 forks source link

Chapter 17- Computing- cost function #12

Open Arsa-Nik opened 5 years ago

Arsa-Nik commented 5 years ago

Just wondering whether the cost function on page 457 should read: if(any(pred == "VF" & obs == "L")) cost[pred == "VF" & obs == "L"] <- 10 instead of: if(any(pred == "VF" & obs == "L")) cost[pred == "L" & obs == "VF"] <- 10 thanks, Arsa