Giter Club home page Giter Club logo

pool-generation-experiment's Introduction

Homework 1

python status license

This is the first homework for the Multiple Classifiers System's class.

Description

The goal of this homework is to perform an experiment comparing two different pool generation strategies for ensemble of classifiers using two binary classification datasets. Bagging and Random Subspace were the chosen strategies, which were applied to generate a pool of a 100 base-classifiers each. This is done for both Perceptron and Decision Trees using 10-fold cross-validation. Metrics are collected for each fold and for the whole experiment in the form of means and standard deviations. They include accuracy, f-measure, AUC and g-mean.

Getting Started

Requirements

Installing

  • Clone this repository into your machine
  • Download and install all the requirements listed above in the given order
  • Download the CM1 and JM1 software defect prediction datasets in .arff format from the Promise repository and do not change their names
  • Place both .arff files inside the data/ folder

Reproducing

  • Enter into the code/ folder in your local repository
  • Run the experiment to produce every ensemble's predictions
python generate_predictions.py
  • Generate all metric results
python generate_metrics.py
  • Then, compare the scenarios wanted
python compare_scenarios.py [-f FILENAME] [-s SEPARATE] [-c1 COLUMN1] [-c2 COLUMN2]

Project Structure

.            
├── code                             # Code files
|   ├── compare_scenarios.py         # Compare metric results 
│   ├── generate_metrics.py          # Generate metric results
│   ├── generate_predictions.py      # Generate models predictions
│   ├── prefit_voting_classifier.py  # Voting classifier for prefit base classifiers
│   └── utils.py                     # Utils functions
├── comparisons                      # Result comparison files
├── data                             # Datasets files
├── metrics                          # Metrics files
├── predictions                      # Models predictions files
├── LICENSE.md
└── README.md

Author

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Acknowledgements

Thanks to @tomquisel for providing here an initial version of a Voting Classifier for prefit base classifiers.

pool-generation-experiment's People

Contributors

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