QUESTION The dataset is given that related to white wine samples from the north of…
- User
QUESTION The dataset is given that related to white wine samples from the north of Portugal. The goal is to model wine quality based on physicochemical tests. Physicochemical (inputs, predictors) and sensory (output, response) variables are available as;
Attribute Information: Input variables (based on physicochemical tests): 1 - fixed acidity 2 - volatile acidity 3 - citric acid 4 - residual sugar 5 - chlorides 6 - free sulfur dioxide 7 - total sulfur dioxide 8 - density 9 - pH 10 - sulphates 11 – alcohol Output variable (based on sensory data): 12 – wine quality (score between 0 and 10)
• Use “Classification Learner” and classify the data set (winequality-white.xlsx) based on wine quality. • Train all models and find the best model that giving highest accuracy. • Plot and interpret the results for the best model. (Hint: Use Scatter Plot, Confusion Matrix and Parallel Coordinates) • Which quality of the wine was predicted with higher match to true class? (Hint: Use Confusion Matrix to comment) • Rank features by importance and decide on which is the highest-ranking feature (Hint: Use Feature Selection and select Chi2 algorithm) • Export model and develop a script .m file that calculates yfit (predicted output) to test new data set (Test Data.xlsx) given in the attachment. o Display results which include Test Data, Predicted Values (yfit) and True Values (Real Quality Data.xlsx) in table view. o Calculate percent match of predicted and true values of wine quality.
Parts Items/points Grades All files Edit Import data …/10 Plots …/10 Ranking features …/10 Export model…/5 Test Model …/10 Comments …/15 Repetitive…/10 Conditional…/10 Display results …/10 …/100 Error free Syntax …/2 Runtime …/3 Logical …/5 Save “Workspace”, “Classification Learner Session” and “Script” files and upload on Ege Ders System. Write answers to all questions as comment on the top of the script file.
can you explain step by step how can i make that without any erorr
- Assistant
Sure, here is a step-by-step guide to accomplish the given task:
- Open MATLAB and create a new script file.
- Import the dataset "winequality-white.xlsx" using the command "readtable".
- Open the Classification Learner app using the command "classificationLearner".
- In the app, select "wine quality" as the response variable and all the other variables as predictors.
- Split the data into training and validation sets using the "partition" option.
- Choose the classification algorithms you want to train the model with (for example, SVM, logistic regression, KNN, etc.).
- Check the performance of each model by looking at the confusion matrix and the ROC curve.