GithubHelp home page GithubHelp logo

ahmdrz / spam-classifier Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 524 KB

Here are our exercises of implementing classification algorithms.

License: MIT License

Python 98.74% Dockerfile 1.26%
classifier data-minig classification class-project

spam-classifier's Introduction

Classification algorithms (SpamClassifier)

Here are our exercises of implementing classification algorithms in Python using sci-kit learn.

It written in Python-3.6.7. Dependencies are available in requirements.txt file. You may have to install tkinter. Follow this instruction:

$ # on the debian-based OS like Ubuntu
$ sudo apt-get install python3-tk

Image is from developers.google.com

You can see DOCUMENT.md for more information.

Docker

To run this program without installing python3 and other libraries/dependencies, you can run our docker image.

$ docker pull ahmdrz/spam-classifier:latest
$ docker run ahmdrz/spam-classifier:latest

Dataset

We used standard dataset named spambase. You can find it in dataset directory of our repository. This program support all of arff datasets that the class-label is in the last column.

Algorithms

  1. kNN
  2. Naive bayes
  3. Decision tree
  4. SVM
  5. Random forest

TODO: With neural-networks

Results

The result contains the confusion matrix and the accuracy of each algorithm and will be available in the results directory.

Accuracy graph Confusion matrix for kNN with k=6

The configuration of each classifier listed below

  1. n_neighbors in kNN: 6
  2. C in SVC: 2.0
  3. n_estimators in RandomForest: 6
  4. all others were in the default configuration.

We used confusion_matrix_pretty_print.py to generate this figure.

kNN SVM Naive-Bayes Random-Forest Decision-Tree

Authors

  1. Nastaran Kiani (@Nastarankiani)
  2. Ahmadreza Zibaei (@ahmdrz)

spam-classifier's People

Contributors

ahmdrz avatar

Stargazers

 avatar

Watchers

 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.