Giter VIP home page Giter VIP logo

greed2411 / knn Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 2.0 830 KB

Using k-Nearest Neighbors algorithm, training it using 2/3rd of the iris.data and using the rest of the 1/3rd for the test case, and yield prediction for those 1/3rd with an accuracy usually greater than 90% , and this algorithm is implemented without using Python scikit-learn.

Python 0.23% Jupyter Notebook 99.77%
knn knn-classification iris-dataset iris-flowers pandas-dataframes graphs

knn's Introduction

The Iris flower data set or Fisher's Iris data set is a multivariate data set introduced by the British statistician and biologist Ronald Fisher in his 1936 paper The use of multiple measurements in taxonomic problems as an example of linear discriminant analysis.It is sometimes called Anderson's Iris data set because Edgar Anderson collected the data to quantify the morphologic variation of Iris flowers of three related species.

The data set consists of 50 samples from each of three species of Iris (Iris setosa,Iris virginica and Iris versicolor). Four features were measured from each sample: the length and the width of the sepals and petals, in centimetres. Based on the combination of these four features, Fisher developed a linear discriminant model to distinguish the species from each other.

The k-Nearest Neighbors calculation (or kNN for short) is a simple calculation to comprehend and to actualize, and an intense instrument to have available to you.

Used Python 2.7 for KNN.py

Used Python 3.6.1 for KNN-sklearn.ipynb

The implementation will be specific to classification problems and will be demonstrated using the Iris flowers classification problem.

Get the dataset: iris.data

knn's People

Contributors

greed2411 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.