Skip to main content

Combine the Cognitive Architecture ACT-R with user data

Project description

Build Status Coverage Status PyPI version fury.io PyPI license PyPI pyversions

pyactcv - python interface

This library connects the cognitive architecture ACT-R with the programming language python to load user data into ACT-R's visicon.

The cognitive architecture ACT-R is able to monitor a human operator’s interactions with a system using the concept of model-tracing, a concept previously implemented within an ACT-R tutoring system [1]. This software library adapted the work of [2] to establish such a connection between the programming language python and ACT-R version 7.12. For exemplary usage of the library please see [3] and [4].

Exemplary Visicon

Installation

$ pip install pyactcv

or

$ pip install git+https://github.com/seblum/actcv

Usage

Take a look at the examples folder for an exemplary use case.

import pandas as pd

import actr
import pyactcv as cv

data = pd.read_csv('userData.csv', sep = ';', dtype = {'alarmactivecolumn' : float, 'alarmnumbercolumn' : float, 'timecolumn' : float})

header = list(data)
data = data.where((pd.notnull(data)), None)

frequency = 3000
duration = 3
starttime = 0
indexinput = 0
timebreak = 0.1

actcv = cv.ActCV(data, 'timecolumn' )
actcv.load_states()
actcv.schedule_visicon()
actcv.schedule_tone()

actr.run()

Files

  • actcv.py - Contains the class ActCV and methods to create the interface to load user data set into the visicon of ACT-R.

  • actr.py - Contains the dispatcher of ACT-R version 7.12., which is necessary to form a connection between python and ACT-R (see http://act-r.psy.cmu.edu/).

TODO

Possible additional feature to add:

  • Add more dynamic read in for data
  • Add selection of what to load ("visual", "audio")
  • Add debugging support

Developing pyactcv

To install pyactcv along with the tools to develop and run tests please run the following in your virtualenv:

$ pip install -e .[dev]

Bibliography

[1] Fu, W.-T., Bothell, D., Douglass, S., Haimson, C., Sohn, M.-H., & Anderson, J. (2006). Toward a real-time model-based training system. Interacting with Computers, 18(6), 1215–1241.

[2] Halbruegge, M. (2013). Act-cv - bridging the gap between cognitive models and the outer world. In E. Brandenburg (Ed.), Grundlagen und Anwendungen der Mensch- Maschine- Interaktion: 10. Berliner Werkstatt Mensch- Maschine-Systeme (pp. 205–210). Berlin: TU Berlin.

[3] Klaproth, O. W., Halbruegge, M., Krol, L. R., Vernaleken, C., Zander, T. O. and Russwinkel, N. (2020). A Neuroadaptive Cognitive Model for Dealing With Uncertainty in Tracing Pilots’ Cognitive State. Topics in Cognitive Science, 12(3), p. 1012-1029.

[4] in review

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyactcv-0.0.3.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

pyactcv-0.0.3-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file pyactcv-0.0.3.tar.gz.

File metadata

  • Download URL: pyactcv-0.0.3.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.6.10

File hashes

Hashes for pyactcv-0.0.3.tar.gz
Algorithm Hash digest
SHA256 c800a49e1254c7e7dd2a8526524c4c363468bcbabb1d960b984153207507781f
MD5 5212ec0f4d7919fb40dc80e5a62c73cc
BLAKE2b-256 25ab0f66bc82464c68ff3f08612bcae5b8c89685d4c9343c22d0a098be24a66c

See more details on using hashes here.

File details

Details for the file pyactcv-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pyactcv-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.6.10

File hashes

Hashes for pyactcv-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2b588a5c3385da22bf1cfdd0e4ebe8340e2dae083cae3ae27405c9c4ee0b40c5
MD5 df41dcd152f780265cc96714c66de277
BLAKE2b-256 9ce7317ed36c16171572a1636bc6ef4d26013b39ec02915b7c8523762c9609eb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page