No project description provided
Project description
Build-Your-Own-Embedding
BuildYourOwnEmbedding is a Python library designed for generating synthetic neural responses and analysing their resultant embeddings. This library provides tools for modelling a variety of neural response functions, generating sets of synthetic responses, adding noise to the responses, and advanced analysis and evaluation techniques like PCA and RDMs.
Installation
To install the library, simply use pip
:
pip install BuildYourOwnEmbedding
Alternatively, clone the repository and install the package:
git clone https://github.com/rates37/Build-Your-Own-Embedding.git
cd BuildYourOwnEmbedding
pip install .
Getting Started
Generating Neural Responses
The following example demonstrates how to create a custom Gaussian response function:
import numpy as np
from BuildYourOwnEmbedding import responses, parameters
# Define input stimulus
x = np.linspace(0, 1, 100)
# Define response parameters
params = {
"mean": parameters.ConstantParameter(0.5),
"std": parameters.ConstantParameter(0.1)
}
# Create a Gaussian response manager
responseManager = responses.ResponseManager(responses.GaussianResponse, **params)
# Generate a neural response with no noise
neural_response = responseManager.generate_responses(x, noiseLevel=0)
Documentation
Full documentation is available here, including examples. You can generate the documentation locally using Sphinx:
cd docs
make html
Contributing
This project welcomes contributions! To contribute to this project:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes and commit (
git commit -m 'Added Feature X'
). - Push your branch (
git push origin feature-branch
). - Create a pull request.
Please ensure that all new features are covered appropriately with tests and documentation.
License
This project is licensed under the MIT License. See the LICENSE file for details.
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 BuildYourOwnEmbedding-1.1.tar.gz
.
File metadata
- Download URL: BuildYourOwnEmbedding-1.1.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5b3627d674eb693db2388cceb70f2e580b225b90d05fb4c9326a554aa904702 |
|
MD5 | 741689bda362fd60161eac714a700afa |
|
BLAKE2b-256 | 7d2875b83f031afe6147debb0e45c23f88717215b62032ff967a6ca0d9914f96 |
File details
Details for the file BuildYourOwnEmbedding-1.1-py3-none-any.whl
.
File metadata
- Download URL: BuildYourOwnEmbedding-1.1-py3-none-any.whl
- Upload date:
- Size: 18.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a977ef2c68a8e23a1fa422ad4ffe01b1eb9cdb7947311d3d7adcb719224c12b5 |
|
MD5 | 5640a54f988fb1a3ca89f472e9cd8572 |
|
BLAKE2b-256 | 4c3cd28dafc6f765101a3f69c0ba8b175ac38636422eda3140b7a35a4abe09bf |