A library of useful modules for data analysis.
Project description
basic_neural_processing_modules
Personal library of functions used in analyzing neural data. If you find a bug or just want to reach out: RichHakim@gmail.com
Installation
Normal installation of bnpm
does not install all possible dependencies; there are some specific functions that wrap libraries that may need to be installed separately on a case-by-case basis.
Install stable version:
pip install bnpm[core]
If installing on a server or any computer without graphics/display, install using core_cv2Headless
. If you accidentally installed the normal version, simply please uninstall pip uninstall opencv-contrib-python
and install pip install opencv-contrib-python-headless
instead.
Install development version:
pip install git+https://github.com/RichieHakim/basic_neural_processing_modules.git
import with:
import bnpm
Usage
My favorites:
automatic_regression
module- Allows for easy and fast hyperparameter optimization of regression models
- Any model with a
fit
andpredict
method can be used (e.g.sklearn
and similar) - Uses
optuna
for hyperparameter optimization
Other useful functions:
-
Signal Processing:
timeSeries.rolling_percentile_rq_multicore
- Fast rolling percentile calculation
timeSeries.event_triggered_traces
- Fast creation of a matrix of aligned traces relative to specified event times
-
Machine Learning:
neural_networks
module- Has nice RNN regression and classification classes
decomposition.torch_PCA
- Fast standard PCA using PyTorch
similarity.orthogonalize
- Orthogonalize a matrix relative to a set of vectors using OLS or Gram-Schmidt process
-
Miscellaneous
path_helpers.find_paths
- Find paths to files and/or folders in a directory. Searches recursively using regex.
image_processing.play_video_cv2
- Plays and/or saves a 3D array as a video using OpenCV
h5_handling.simple_save
andh5_handling.simple_load
- Simple lazy loading and saving of dictionaries as nested h5 files
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file bnpm-0.5.5.tar.gz
.
File metadata
- Download URL: bnpm-0.5.5.tar.gz
- Upload date:
- Size: 242.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 471e06a2eac7aac0f6520705f17bd40a5ad25945137decdc36c529114ff610e1 |
|
MD5 | 3413bd563ddcf4b2d28cf0f9a1d9b0ce |
|
BLAKE2b-256 | fcc7cc4b0ddcf6d789735635fe2a50fb434cd8f0edd85bf10362091db9be2c1e |
Provenance
The following attestation bundles were made for bnpm-0.5.5.tar.gz
:
Publisher:
pypi_release.yml
on RichieHakim/basic_neural_processing_modules
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
bnpm-0.5.5.tar.gz
- Subject digest:
471e06a2eac7aac0f6520705f17bd40a5ad25945137decdc36c529114ff610e1
- Sigstore transparency entry: 151007347
- Sigstore integration time:
- Predicate type:
File details
Details for the file bnpm-0.5.5-py3-none-any.whl
.
File metadata
- Download URL: bnpm-0.5.5-py3-none-any.whl
- Upload date:
- Size: 253.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2fb64057905139be8c513179289950b39fa04e7808e86b9bd19a5f2dfbde141 |
|
MD5 | fbcaaf6b5a750ff68c27dc3c52a2bd47 |
|
BLAKE2b-256 | b7a42690c0552980fa181835cfaf7f9e78c2f8da64fc58ebf6baf31e922ebf08 |
Provenance
The following attestation bundles were made for bnpm-0.5.5-py3-none-any.whl
:
Publisher:
pypi_release.yml
on RichieHakim/basic_neural_processing_modules
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
bnpm-0.5.5-py3-none-any.whl
- Subject digest:
c2fb64057905139be8c513179289950b39fa04e7808e86b9bd19a5f2dfbde141
- Sigstore transparency entry: 151007349
- Sigstore integration time:
- Predicate type: