top of page
Food analysis

Food analysis

Data Science

Data Science

Machine Learning

Machine Learning

Welcome to Foodatascience !!!

This blog is about Food data science, here I will show you how I analyse some data sets regarding health and food and see how you can apply it to your data.

I will do exploratory data analysis, machine learning and data visualization with R and Python.

I've moved this blog here https://lsaa2014.github.io/

Red Wine Classification (Python)

  • Immagine del redattore: saalaure
    saalaure
  • 13 feb 2018
  • Tempo di lettura: 1 min

From the last, we will continue with the wine dataset. Here, I will apply machine learning technique to classify it. Just to remember, we have 3 categories: low, medium and high.

I used five algorithms from scikit learn package: KNeighbors, Random Forest, Gaussian NB, ExtraTrees and DecisionTree. Here is the accuracy


The random forest gives the highest accuracy around 88% and we can have also the most important predictors.


The most important features for red wine classification are : alcohol, volatile acidity, sulphates, density and total sulfur dioxide. Indeed, these are important parameters to evaluate the quality of a wine.

 
 
 

Comments


© 2023 by Saalaure. Proudly created with Wix.com

  • Black Facebook Icon
  • Black Twitter Icon
  • Black Pinterest Icon
  • Black Instagram Icon
bottom of page