Coder Social home page Coder Social logo

pacanalyzer's Introduction

PACAnalyzer

By Bryan O'Malley ([email protected])

Perception-Action Cycle analysis plugin for SC2Reader (https://github.com/GraylinKim/sc2reader)

This plugin is built based on the work of Mark Blair, Ph.D, and the Simon Fraser University Cognitive Science Lab (http://cslab-sfu.ca) on the SkillCraft project. You can find their project website at: http://skillcraft.ca

This plugin adds a list of PACs to each human player in a replay.

The list consists of PAC objects with the following attributes

  • min, max: Min & max camera coordinates for this fixation
  • cameras: list of camera actions during this PAC, formatted as [frame#, x, y] for each camera action in the list
  • actions: list of frame numbers actions were taken on during this PAC

Additionally, a PACInfo object is added to the replay with the attributes DispThreshold and DurThreshold. DispThreshold is the max combined x & y shift before a new fixation is started while DurThreshold is the minimum duration for a camera location to be considered a fixation.

Finally, a PACStats object is added to each human player with the following statistics calculated:

  • ppm: average(mean) PAC per minute
  • pal: PAC action latency. e.g: how long it takes you to take your first action after each fixation shift. (mean average)
  • app: Actions per PAC. The average(mean) number of actions you take each PAC.
  • gap: How long it takes you, after finishing your actions in one PAC to establish a new fixation. (mean average)

PACAnalysis.exe is a command-line tool for analyzing replays for PAC stats. You can execute it from command line, or simply drag one or more replays, or even a folder of replays on the executable.

PACAnalysis.py is the SC2Reader script used to generate the executable, with the help of setupExe.py, a setup script for py2exe. Once the distributible executable has been generated by py2exe (dist/PACAnalysis.exe), change its extension to .zip and draw the accompanying folder (dist/sc2reader) into it. Then simply change its extension back to exe and it will run.

pacanalyzer's People

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.