Skip to main content

A library of useful modules for data analysis.

Project description

PyPI version Downloads repo size

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 and predict 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 and h5_handling.simple_load
      • Simple lazy loading and saving of dictionaries as nested h5 files

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

bnpm-0.6.6.tar.gz (248.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bnpm-0.6.6-py3-none-any.whl (260.4 kB view details)

Uploaded Python 3

File details

Details for the file bnpm-0.6.6.tar.gz.

File metadata

  • Download URL: bnpm-0.6.6.tar.gz
  • Upload date:
  • Size: 248.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for bnpm-0.6.6.tar.gz
Algorithm Hash digest
SHA256 cef4ab223a4ee40ace3d4a7b1a1f4abf27ccf81c7c7dc43c0e12a59f346adc3e
MD5 911932d9fbb5c5697a148d2072232717
BLAKE2b-256 4d51ea767355775cc61fa87b6fc68b5f9b3285bfe82d9e6a6bf1efe1421f7959

See more details on using hashes here.

Provenance

The following attestation bundles were made for bnpm-0.6.6.tar.gz:

Publisher: pypi_release.yml on RichieHakim/basic_neural_processing_modules

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bnpm-0.6.6-py3-none-any.whl.

File metadata

  • Download URL: bnpm-0.6.6-py3-none-any.whl
  • Upload date:
  • Size: 260.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for bnpm-0.6.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e42891c63f06a5f6ee41bbc8f6f044a01658924ae78b8dc7232795d7035da4ef
MD5 ded1856fcb31b86c9970d8d23e76f5a5
BLAKE2b-256 9e8bde63b3aadce98d26fed5a7e0378adeea718c20211327a72ab29b4ce7052c

See more details on using hashes here.

Provenance

The following attestation bundles were made for bnpm-0.6.6-py3-none-any.whl:

Publisher: pypi_release.yml on RichieHakim/basic_neural_processing_modules

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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