Data Science, Machine Learning, Statistics, Open Source, Crossvalidation.
metric, let’s say accuracy. Which data do we use to compute the metric? One way to do it would be to generate predictions for all observations in our training set and compute the evaluation metric: Image by author. This is how it looks in code: Console output: (1/1): Accuracy: 0.97 This approach is