Coder Social home page Coder Social logo

2019-proj1-god-classes's Introduction

Project 1 - God Classes

Documentation

For the general documentation run:

python3 god_classes.py

For details about each command and instruction on "how to run", run:

python3 god_classes.py <command>

To launch the whole analysis at once run:

python3 god_classes.py run_all -s <path-to-src> -a <algorithm-name> (i.e. k-means or hierarchical)

Examples usage:

The following are some example of commands:

  1. Pre-processing
    • find_god_classes:
      • $ python3 god_classes.py find_god_classes -s ../res/xerces2-j/src
    • extract_feature_vectors:
      • $ python3 god_classes.py extract_feature_vectors -s ../res/xerces2-j/src
  2. Clustering
    • k_means.py/hierarchical:
      • $ python3 god_classes.py clustering -a k-means -fv res/feature_vectors/1559157308733 -n 10 or
      • $ python3 god_classes.py clustering -a hierarchical -fv res/feature_vectors/1559157308733 -n 10
    • silhouette.py:
      • 1st case (with clustering file)
        • $ python3 god_classes.py silhouette -fv res/feature_vectors/1559157308733 -cl res/clusters/k-means-1559157521766
      • 2st case (without clustering file)
        • $ python3 god_classes.py silhouette -fv res/feature_vectors/1559157308733 -n 10
  3. Evaluation
    • ground_truth.py:
      • $ python3 god_classes.py ground_truth -fv res/feature_vectors/1559157308733 -k res/keywords.txt
    • prec_recall.py:
      • $ python3 god_classes.py prec_recall -cl res/clusters/k-means-1559157521766 -gt res/ground_truths/1559157739490

2019-proj1-god-classes's People

Contributors

ggrz7 avatar

Watchers

 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.