PyTEAP
PyTEAP is a Python implementation of Toolbox for Emotion Analysis using Physiological signals (TEAP).
This package intends to reimplement TEAP, originally written in MATLAB, in Python, to enable interoperation with other Python packages.
Installation
To use PyTEAP, you can either clone this repository:
$ git clone https://github.com/cheulyop/PyTEAP.git
$ cd PyTEAP
or install it via pip:
$ pip install PyTEAP
Baseline classification on DEAP
As the primary goal of this package is to provide a toolbox for processing physiological signals for emotion analysis, this package includes a script to perform simple baseline classification on DEAP dataset.
There are two ways you can do baseline classification on DEAP with PyTEAP:
- Clone this repository and run the script for baseline classification.
$ python baseline.py --root '/path/to/deap_root'
Running baseline.py will load raw datafiles from the root directory, preprocess features and target labels, perform baseline classification with four simple classifiers: 1) Gaussian Naive Bayes, 2) random voting assuming a uniform distribution between classes, 3) majority voting, 4) class ratio voting, and finally print a table showing performance of each classifier, measured with accuracy score, balanced accuracy score, and F1-score.
- Or, install PyTEAP via
pipas shown above, and use its modules and functions as you want.
The below table shows the results of baseline classification with seed=0.
| Gaussian NB | Random voting | Majority voting | Class ratio voting | |
|---|---|---|---|---|
| Acc. | 0.508594 | 0.496094 | 0.553125 | 0.489063 |
| Balanced acc. | 0.513142 | 0.494228 | 0.500000 | 0.484621 |
| F1-score | 0.513712 | 0.528224 | 0.712272 | 0.531533 |
* You must have access to DEAP dataset, in particular a preprocessed data in Python format to perform above baseline classification. Please contact DEAP maintainers if you need access to the dataset.
Metadata
Release files for PyTEAP 0.1.2
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 |
|---|---|---|---|---|
| PyTEAP-0.1.2.tar.gz | 9.1 kB | Without provenance | Details for PyTEAP-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| PyTEAP-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for PyTEAP-0.1.2-py3-none-any.whl |
Total release size: 32.3 kB
Release files / PyTEAP-0.1.2.tar.gz
| Download URL | PyTEAP-0.1.2.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7065c4967c7ac77e60da762e254426e38d7472988fe8dde7d14298c3bd67760a
|
|
BLAKE2b-256 checksum How to use checksums |
acfa299777c7231f989aa5531dd6822df0549f33b00e533a329ca988cda97238
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|
Release files / PyTEAP-0.1.2-py3-none-any.whl
| Download URL | PyTEAP-0.1.2-py3-none-any.whl |
|---|---|
| Size | 23.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
56d7e396b7f1f315190686515a9a9cff6e551f392da0133dc34f5b5b4e16d6d6
|
|
BLAKE2b-256 checksum How to use checksums |
42efbc67a29594c94510a8aba120c423c57c375fe911377f321d5a8ca7f32955
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|
Security for PyTEAP 0.1.2
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.