Giter Club home page Giter Club logo

gh-issue-classification's Introduction

Github Issue Classification

Towards automatically labelling issues reported on github.

Steps to run

  1. Run Fetch Repositories notebook
  2. Run Fetch Issues notebook

Step 1 and 2 can be skipped by downloading the datasets from the kaggle links below, and placing them in the directory of the training notebook.

  1. Run the Cleaning and training notebook (To run this notebook faster, also download the labelled_issues_with_language.csv from below)

Fetching Data

This focus of this work was more recent data, as opposed to old datasets that are already available on Google's BigQuery, Kaggle and various other internet sources.

Therefore, the first and foremost task was to systematically collect data from github. For this purpose, we used nothing but github's own api. (Refer to Fetch Repos and Fetch Issues)

Furthermore, all the data that was collected has also been uploaded to public sources to facilitate future research and projects.

Repositories fetched from github associated with The top programming languages can be found at Kaggle - Repositories dataset

The original issue dataset(s) can be found at Kaggle - Issue Dataset The above kaggle link is associated with two datasets:-

  1. issues.csv - Raw issue data extracted from top 50 repositories
  2. labelled_issues_with_language.csv - Labelled data from the above dataset, also includes an identifier of the language that was used

Pre-processing Data for Training

This part involves a number of steps. At first we observe that the dataset contains almost 48% labelled issues. Which means that 52% of the issues are not labelled, which is the problem that we intend to solve.

Then out of the labelled data, we filter out results that are only in english language. Finally, we pre-process data and add appropriate columns and values to make it a multi-class problem. Moreover, we only classify for default github labels that correspond to maintainence activities such as feature, bug, and enhancement.

Training

In the training phase we fit three models

  • Naive Bayes - as a baseline model
  • Logistic Regression
  • LinearSVC.

Evaluation

We compare the acuracy of all the models and find that LinearSVC performs the best.

License

MIT License

gh-issue-classification's People

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.