GithubHelp home page GithubHelp logo

periodic-seq's Introduction

Periodic Sequence Loop Counter

  • Author: Austin Wang
  • Year: 2017
  • Requirements: Numpy (Matplotlib for visualization) (See requirements.txt for full details)

Introduction

  • Counts cycle occurences in periodic sequence regardless of noise
  • Application: Counting loops in execution of flow chart with information from log files

File list

PeriodCounter.py
Primary module for counting periodic occurences

  • PeriodCounter: class, main functionality of the counter
    • __init__(window, margin): initializer, counts diagonally if margin < 0
    • reset(window, margin): member function, resets counter, can optionally assign new window and margin
    • get_count(): member function, gets current estimate of number of loops in sequence
    • countSeq(seq): member function, counts number of loops in seq
    • addElement(e): member function, parses new element from the sequence and updates count

count.py
Example program of counting log files
Usage: $python count.py <parsed_log_file_path>

preprocess.py
Preprocesses a log file, leaving only names of executed nodes and errors
Usage: $python preprocess.py <log_file_path> <output_file_path>

visualize.py
Visualizes the shift chart of first n elements of a sequence file
Requires matplotlib
Usage: $python visualize.py <log_file_path>

requirements.txt
Python library list (output file of pip freeze)

datasets/
Contains sequence data

random_noise/
Contains code related to creating and analyzing random sequences
Used in the development process

periodic-seq's People

Contributors

exhaustin avatar

Watchers

James Cloos 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.