# NOT RUN {
data(iris)
Label = c("setosa", "versicolor", "virginica")
predicted.label = c("setosa", "setosa", "virginica", "setosa", "versicolor", "versicolor")
true.label = c("setosa", "virginica", "versicolor","setosa", "versicolor", "virginica")
confusion.matrix = MakeConfusionMatrix(predicted.label, true.label, Label)
precision = GetPrecision(confusion.matrix)
confusion.matrix
precision
# }
Run the code above in your browser using DataLab