Giter Club home page Giter Club logo

sax_vsm's Introduction

Guide of Code:

0. Pre-compilation: go into _python folder and run "python setup.py build_ext --inplace" to compile Cython file

1. How to Make a Quick Run: "python test.py"

2. Structure of the code:

    0. "data" contains all the data used, and "output" is an empty folder to hold potential output

    1. There are 13 files from the _python:

        #DOCUMENTATION
        0. README.md

        #CORE
        1. saxvsm.py
            Implementation of SAXVSM classifier as a sklearn estimator
            Performance-deciding processes are moved to performance_critical_functions.pyx
        2. optimizer.py
            Opimisation of hyper-parameters of SAXVSM

        #CYTHON
        3. performance_critical_functions.pyx
            Heavily used processes are implemented in Cython to take the advantage of C efficiency
        4. setup.py
            Basic file to allow Cython to be compiled

        #HANDY FUNCTIONS
        5. parser.py
            Functions to read data from uts_dataset and mts_dataset
        6. formats.py
            Functions to provide pretty printing
        7. helper.py
            Frequently used functions for vectorized operations

        #MAIN
        8. test.py
            Most of the usage is demonstrated.

        #MODULE
        9. __init__.py

        #DEPRECIATED
        (These include an attempt of bagging ensemble in varying hyper-parameters of SAXVSM and an attempt of improving weights of words in SAXVSM by Stochastic Gradient Descent, which appear to be not especially interesting after some initial experiments)
        10. ensemble.py
        11. gradient_descent.py
        12. sparse_matrix.py (used for SGD)

sax_vsm's People

Contributors

datoclement avatar

Watchers

 avatar  avatar

Forkers

halapano

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.