Code Monkey home page Code Monkey logo

ml_group020's Introduction

ML_GROUP020

Assignment 10

 Due Tuesday by 23:59 Points 26 Submitting a file upload Available Nov 26 at 0:00 - Dec 10 at 23:59 15 days

Groups 10,20,30,40,50,60,70,80,90,100,110,120,130,140,150 Instructions

Follow the instructions in each question carefully.
1. A Jupyter notebook along with output for each cell is expected.
2. Any assignment submitted using  other python IDEs are not considered for grading.
3. Use appropriate labels for all visualizations.
4. Upload the output.csv file along with the notebook when required.

Question 1

Spam filtering is an example of document classification task which involves classifying an email / SMS as spam or non-spam (a.k.a. ham).

1. Import the dataset from https://www.kaggle.com/uciml/sms-spam-collection-dataset. (1 point).
2. Split the data into training and testing. (1 point). Use 10-fold cross validation.(1 point)
3. Extract features using TF-IDF and display the features. ( 2 points)
4. Model and train the classifier using GaussianNB, BernoulliNB and MultinomialNB.( 3 points)
5. Evaluate classifiers on Test Data. ( 2 points)
6. Plot the decision boundary, visualize training and test results of all the models (3 points)

Question 2

The following dataset is used to classify the car acceptability into classes: unacceptable, acceptable, good and very good.

1. Import the data dataset from https://archive.ics.uci.edu/ml/machine-learning-databases/car/ (Links to an external site.) (1 points).
2. Extract X as all columns except the last column and Y as last column. (1 points)
3. Visualize the dataset using any two appropriate graphs. (2 points)
4. Visualize the correlation between all the variables of dataset. (1  points)
5. Split the data into training set and testing set. (1 points).Perform 10-fold cross validation (1 point).
6. Train a Logistic regression model for the dataset. (1 points)
7. Compute the accuracy and confusion matrix. (2 points)
8. Plot the decision boundary, visualize training and test results (2 point)
9. Predict and display the class label of a car with following attributes : buying, maint, doors, persons, lug_boot, safety as [vhigh,low,4,more,small,med]. (1 points)

ml_group020's People

Contributors

rvirjn avatar puneethrai avatar

Stargazers

 avatar

Watchers

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