Load and process brain datasets for deep learning
Project description
🍍PNPL Brain Data Deep Learning Library
The current primary use of the PNPL library is for the LibriBrain competition. Click here to learn more and get started!
Installation
pip install pnpl
This will also take care of all requirements.
Usage
The core functionality of the library is contained in the two Dataset classes LibriBrainSpeech and LibriBrainPhoneme.
Check out the basic usage:
LibriBrainSpeech
This wraps the LibriBrain dataset for use in speech detection problems.
from pnpl.datasets import LibriBrainSpeech
speech_example_data = LibriBrainSpeech(
data_path="./data/",
include_run_keys = [("0","1","Sherlock1","1")]
)
sample_data, label = speech_example_data[0]
# Print out some basic info about the sample
print("Sample data shape:", sample_data.shape)
print("Label shape:", label.shape)
LibriBrainSpeech
This wraps the LibriBrain dataset for use in phoneme classification problems.
from pnpl.datasets import LibriBrainPhoneme
phoneme_example_data = LibriBrainPhoneme(
data_path="./data/",
include_run_keys = [("0","1","Sherlock1","1")]
)
sample_data, label = phoneme_example_data[0]
# Print out some basic info about the sample
print("Sample data shape:", sample_data.shape)
print("Label shape:", label.shape)
Support
In case of any questions or problems, please get in touch through our Discord server.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pnpl-0.0.3.tar.gz.
File metadata
- Download URL: pnpl-0.0.3.tar.gz
- Upload date:
- Size: 22.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c39dc53ddeb8aefa5874a35221cc014045e0a78313ea9c637b43b06e6da01ef
|
|
| MD5 |
e4e845b284a695443b44e749b3f1d91a
|
|
| BLAKE2b-256 |
19be9b01b61909dd7046bcdc6f94ea7a2ace2206de38605627fe22eee067628f
|
File details
Details for the file pnpl-0.0.3-py3-none-any.whl.
File metadata
- Download URL: pnpl-0.0.3-py3-none-any.whl
- Upload date:
- Size: 30.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7693fe44f1361bb09d6593fc0b390f0abc89199ca241f9fca1ed9d96d28495f
|
|
| MD5 |
966364e37579eb1a355df18fcb4145a3
|
|
| BLAKE2b-256 |
4d2eea0d9314e8dbab63b4288c9eb56fcd50f2f4eabcc025e79058040789a36b
|