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].
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
Metadata
Release files for pyactcv 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyactcv-0.0.3.tar.gz | 15.3 kB | Without provenance | Details for pyactcv-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyactcv-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for pyactcv-0.0.3-py3-none-any.whl |
Total release size: 28.5 kB
Release files / pyactcv-0.0.3.tar.gz
| Download URL | pyactcv-0.0.3.tar.gz |
|---|---|
| Size | 15.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c800a49e1254c7e7dd2a8526524c4c363468bcbabb1d960b984153207507781f
|
|
BLAKE2b-256 checksum How to use checksums |
25ab0f66bc82464c68ff3f08612bcae5b8c89685d4c9343c22d0a098be24a66c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / pyactcv-0.0.3-py3-none-any.whl
| Download URL | pyactcv-0.0.3-py3-none-any.whl |
|---|---|
| Size | 13.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2b588a5c3385da22bf1cfdd0e4ebe8340e2dae083cae3ae27405c9c4ee0b40c5
|
|
BLAKE2b-256 checksum How to use checksums |
9ce7317ed36c16171572a1636bc6ef4d26013b39ec02915b7c8523762c9609eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for pyactcv 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.