GithubHelp home page GithubHelp logo

pychess's Introduction

Usage: pychess.py process -i -o pychess.py analyze -i -o [--catmap <cat_file> --catthreshold <cat_thresh>]

Arguments:

<in> (required) : path to input file or directory.  in can be one of:
    (a) directory of .csv or .xlsx files like a seva or eldertree export,
    (b) .yaml file pointing to urls where to load data (like for bundling), or
    (c) a .json or .pickle file containing the serialized study objects
        (e.g. for loading the output of process into analyze)
        
<out> (required) : where to write the output json or pickle file
    Must have a `.json` or `.pickle` (or `.pkl`) extension. If `.json`, data will be serialized in a
    quasi-human-readable format that will be easier to load into other applications/languages/do whatever you want.
    If `.pickle`, data will be serialized using pickle, which will preserve all the data types and structures.
    
<catmap> (optional) : a .yaml file that maps "action" categories to another category.
    For getting activities to correspond across studies (e.g. seva and bundling).
    See seva_to_bundling.yaml or reduce_bundling.yaml for examples.
    If no catmap supplied, categories are left as is.
    
<cat_thresh> (optional) : a .yaml file that maps "action" categories to its "threshold".
    That is, how many times must this action be done in one period in order for that period to count as
    "active" for that category for that period.  If no catmap is supplied, thresholds will be automatically tuned
    to achieve a target inactivity rate. See Analysis options in this code for more details.

Example:

> python pychess.py process -i seva_export/ -o seva_study.json
> python pychess.py analyze -i seva_study.json -o seva_analysis.json

pychess's People

Contributors

dconathan avatar

Watchers

 avatar  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.