GithubHelp home page GithubHelp logo

w19-360420-machine-learning's Introduction

Machine Learning

Dawson College 360-420-DW

Winter 2019

Introduction to Object-Oriented-Programming for Machine Learning

  • Take a close look at the following files:

    • DataPoint.java
    • DataSet.java
  • Take note of the different methods in each.

  • Complete Tasks 1-2 in kNNMain.java

  • commit your changes and show your teacher.

K-Nearest Neighbors Classification

  • Take a close look at KNNClassifier.java

  • what do the different methods do?

  • Complete Tasks 4, 5, and 6 in kNNMain.java

  • at the end of each task, commit your changes

Report: Error Analysis

Now that you understand how to interact with the classes in this project, your final task is to analyse the performance of kNN classification on the breastCancer.csv dataset.

Most importantly, we want to characterize

  • the amount of confidence we can put in our model

    • Each time you run the classification model, you should be getting a different accuracy. Why? (hint: lines 148-150 in DataSet.java)
    • Run the entire classification process 1000 times (load data, split into off 30% for a test set, evaluate model performance)
    • store the results of each run in a double[]; use the mean and standardDeviation methods in kNNMain.java to calculate how much performance can be expected to vary on unseen data
      • What is a sensible baseline against which we should compare our model's performance? (hint: line 200 in DataSet.java)
  • the types of errors that our classifier makes

    • Accuracy is only one way that we can evaluate model performance. However in the context of medical diagnosis, different types of classification errors carry importances.

    • what is a

      • False Positive?
      • False Negative?
    • Extend your analysis in the previous step (with the 1000 runs) to keep track of Recall and Precision as well.

      • What makes these two measures different?
      • What are sensible baseline for each of these measures?
    • how do the above results change with the hyperparameter k?

  • Describe your results, and answer the questions above in a short report written using Markdown in the files ErrorAnalysis.md template file in this repo. Submit in teams of 2 max (make sure to include both names).

Precision & Recall

By Walber - Own work, CC BY-SA 4.0, Link

w19-360420-machine-learning's People

Contributors

sameerbhatnagar 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.