Giter Club home page Giter Club logo

ga-ds829-knn-classification's Introduction

KNN & Classification

Unit 3: Required


Materials We Provide

Topic Description Link
Lesson K-Nearest Neighbors with Scikit-Learn Here
Data 2015 Season Statistics for ~500 NBA Players Here
The Iris Dataset (Flowers) Here
Practice Two sample activities to practice KNN Here
Slides Sample slide deck for lesson topic (PPTX) Here

This lesson uses the Iris dataset and the NBA player statistics dataset. The Iris dataset allows students to easily make their own rules-based model and is easy to visualize for KNN. The NBA dataset results in a very nice curve for choosing K.


Learning Objectives

After this lesson, students should be able to:

  • Utilize the KNN model on the iris data set.
  • Implement scikit-learn's KNN model.
  • Assess the fit of a KNN Model using scikit-learn.

Student Requirements

Before this lesson(s), students should already be able to:

  • Load, explore, and manipulate data using Pandas
  • Create simple visualizations with Matplotlib
  • Interpret statistical information from box and scatter plots
  • Describe the statistical meaning of an "error"

Lesson Outline

TOTAL (170 min)

  • Learning Objectives (5 min)
  • Overview of the Iris Data Set (10 min)
    • Terminology
  • Exercise: "Human Learning" With Iris Data (60 min)
  • Human Learning on the Iris Data Set (10 min)
  • K-Nearest Neighbors (KNN) Classification (30 min)
    • Using the Train/Test Split Procedure (K=1)
  • Tuning a KNN Model (30 min)
    • What Happens If We View the Accuracy of our Training Data?
    • Training Error Versus Testing Error
  • Standardizing Features (15 min)
    • Use StandardScaler to Standardize our Data.
  • Comparing KNN With Other Models (10 min)

Additional Resources

For more information on this topic, check out the following resources:

ga-ds829-knn-classification's People

Contributors

samuel-stack avatar danwilhelm avatar rickyhennessy avatar lasisioo avatar timbook avatar hboyan avatar aegorenkov avatar cjc2238 avatar richardjonathonharris avatar

Watchers

James Cloos avatar Aidan Connolly 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.