Skip to content

moryba/Predicting-the-vaieties-of-Italian-wines-with-KNN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Predicting the vaieties of Italian wines with KNN

Introduction

The aim of this project is to understand KNN by creating a model that is able to predict the varieties of wines. The dataset is the result of a chemical analysis of wines grown in the same region in Italy but derived from three different cultivars organized in three classes. The analysis was done by considering the quantities of 13 constituents found in each of the three types of wines.

The data set comes from Kaggle. For additional information about KNN you can read my article on Towards Data Science here.

Labels

  • Class 1
  • Class 2
  • Class 3

Features

  • Alcohol
  • Malic acid
  • Ash
  • Alcalinity of ash
  • Magnesium
  • Total phenols
  • Flavanoids
  • Nonflavanoid phenols
  • Proanthocyanins
  • Color intensity
  • Hue
  • OD280/OD315 of diluted wines
  • Proline

Usage

import sklearn
from sklearn import preprocessing
from sklearn.model_selection import train_test_split
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np

Data Visualization before processing

alt text

alt text

Model performance

alt text

License

The dateset for this project comes from Kaggle website.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published