GithubHelp home page GithubHelp logo

autotagger's Introduction

Project: Final Project: CSC522 Automated learning and Data Analysis
Authors: Nathan Climer <[email protected]>,
         Charles Haithcock <[email protected]>
Prerequisites: Python 2.0, Numpy, Joblib, sklearn, numpy, scipy, ntlk, pdb,
               matplotlib

===============================FILE CONTENTS===================================
-Overview
-Usage
===================================OVERVIEW====================================

This codebase evaluates several classifiers on Stack Overflow questions.
Classifiers included are:
 - baysean classifier with word frequency priors.
 - baysean classifier with document presense prios.
 - K-Nearest Neighbors
 - One-vs-All Support Vector Machine
 - A binary relevance wrapper for any supplied binary classifier.
=====================================USAGE=====================================
All scripts are located in the bin folder.

All code is captured in python scripts that will need to be modified to run in
your environment. First, the baysean classifier code consists of 4 files which
all have the same layout.
 - baysean_classifier.py (tests word frequency priors on PT2 selected data)
 - baysean_classifier_binary_relevance.py (Word frequency with binary relevance)
 - baysean_classifier_doc.py (tests document presence on PT2 selected data)
 - baysean_classifier_binary_relevance_doc.py (Document presense prior with biary relevance)

To use these files, change the PROJECT_PATH to the source of your project. You may
also want to select a different or smaller subset of tags. Then simply call
python -O baysean_classifier.py

For the KNN and OVA SVM classifiers, if the current working directory is autotagger/, 
simply run
 python [-i] bin/knn_svm.py data/plain-text/full.csv
for KNN, or
 python [-i] bin/ova_svm.py data/plain-text/full.csv
for OVA SVM.

Uncomment line 117 to also run kNN.

Other files of interest:
eval_classifier.py contains methods for evaluating the classifiers.
naive_bayse.py contains methods for training and classifing using the
    baysean classifier.
tokens.py, preprocess_to_questions.py - preprocesses the data.
svm.py - training and classifying KNN and OVA SVM.

autotagger's People

Contributors

ideahat avatar

Watchers

 avatar James Cloos avatar Charles Edward Haithcock JR avatar

Forkers

ideahat

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.