Skip to content

This is our submission for the InformatiCup 2017. Although we designed our Application to assist us with the given task of classifying GitHub repositories, it should be easily reusable for other classification purposes - feel free to use it on your own!

License

Ichaelus/Github-Classifier

Repository files navigation

GitHub Classifier

Note: Open UserManual.html with Firefox 50 for a better Markdown representation.

Introduction

Welcome to the InformatiCup 2017 submission from the team of the University of Augsburg. Please note that this repository doesn't contain our trained classifier save-files. Training them on your own can take really long (1h+) and due to the non-deterministic nature of the traing process of most models, results can vary greatly. We recommend using the save-files from our submission.

Update 13.03.17: We did it!


Photo credit: GI

Yeah! We have been chosen the winning team of the InformatiCup 2017 challenge, what a great honor. Time to say thank you to:

  • The Gesellschaft für Informatik for hosting and organizing such a great challenge - keep it up!
  • The chair of Organic Computing with Jörg Hähner
  • The sponsoring companies
  • Moreover: Our competitors - we saw many great solutions back at the BTW, it was nice meeting you!

See you next year :-)

Classification Goals and Restrictions

GitHub is a place where everyone is able to create new repositories, and nobody is asked to keep them assignable to one and only one class given by the InformatiCup guidelines. As a matter of facts, we chose not to make our life easy and had long discussions for many train samples - and labeled them based on nuances, which won't be easy to imitate by a machine learning tool. The very first 5 train samples per class have been given by the Appendix A, which we then increased with both Stream Based and Pool Based Active Learning. As we kept classifying manually, we saw that a grand part of our input samples would possibly fit in two or more classes (for instance DOCS and EDU) - it is therefore unlikely to reach a near perfect precision score.

Over the time we tried out many different approaches to use varying algorithms on partitions of our feature set. We could observe a natural limitation for single classifiers at precisions around ~ 60%. For comparison only:

  • Assume every sample would basically fit into two classes, but has been manually classified as one of those
  • Random classification would reach 1/7 precision, thus 14% accuracy
  • If the classifier would identify the two possible classes and chose a random one, precision would be 50%
  • 60% would mean in this abstract example, that possible classes are being spotted and the classifier tends to the correct class

This comparison is far from being close to reality, but does justice to the underlying evaluation problem.

To surpass that boundary of ~ 60%, we made use of an Ensemble learning module that combines the decisions of other modules to a final, more accurate one. All that combined - AL, modularisation, a train set with > 2000 samples and Ensemble Learning brought us to a total F-score M (each class weighted equally) of ~ 65%.

You can read further about our goals in Documentation/Documentation.md or open the file Documentation.pdf for a bundled documentation.

Component Correlation

Because of the need of a shared information base and the dependency on the GitHub API, we decided to encapsulate a few main concepts and connect them through few well defined interfaces. This leaves us basically with a remote backend system and multiple client applications.

The Backend

Whenever we gather information for a repository, about 10-100 of GitHub's API-calls (limited to 5000) are being used. In order to get along with this limitation we decided to set up an isolated remote LAMP server which is able to mine and store random repositories in a dedicated MySQL database. This gives us the freedom to work on and extend the same information base while running different clients in separated networks.

More about the database structure and PHP services can be read in Documentation/API.md.

The Client Application

The software actually containing the classification modules, feature extraction and GUI representation is located inside the ./Application folder and can be run OS-independent on your local machine. It is designed following the MVC pattern with Python running the heartbeat and Bottle offering services and files to the Frontend. The best of all: New classifiers can be easily embedded into the system just by being added to Models/ClassificationModules.

The frontend is where all the fun starts, so don't hesitate following the Installation Guideline - there is an introduction to the GUI as well in Documentation/Frontend Manual.md.

Client Installation

Please select Documentation/Installation Manual.md on top of the page to get the Frontend running.

About

This is our submission for the InformatiCup 2017. Although we designed our Application to assist us with the given task of classifying GitHub repositories, it should be easily reusable for other classification purposes - feel free to use it on your own!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •