Question
1. Import to R the following fiel: http://archive.ics.uci.edu/ml/machine-learning-databases/wine-quality/winequality-white.csv (The dataset is related to white Portuguese Vinho Verde wine. For more info: https://archive.ics.uci.edu/ml/datasets/Wine+Quality) What is the
1. Import to R the following fiel: http://archive.ics.uci.edu/ml/machine-learning-databases/wine-quality/winequality-white.csv (The dataset is related to white Portuguese "Vinho Verde" wine. For more info: https://archive.ics.uci.edu/ml/datasets/Wine+Quality)
What is the correlation between the attributes other than Quality?
Graph the frequency distribution of wine quality by using Quality
Reduce the levels of rating for quality to three levels as high, medium and low. Assign the levels of 3 and 4 to level 0; 5 and 6 to level 1; and 7,8 and 9 to level 2.
Normalize the data set by using the following function:
Divide the dataset to training and test sets.
Use the KNN algorithm to predict the quality of wine using its attributes.
Display the confusion matrix to evaluate the model performance.
Evaluate the model performance by computing Accuracy, Sensitivity and Specificity.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started