Name | pynsm JSON |
Version |
1.0.1
JSON |
| download |
home_page | |
Summary | A PyTorch implementation of non-negative similarity matching |
upload_time | 2023-09-08 18:58:18 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.8 |
license | MIT License Copyright (c) 2022-2023 Shagesh Sridharan, Yanis Bahroun, Tiberiu Tesileanu Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
neural network
biology
research
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Non-negative similarity matching in PyTorch
[![PyPI Version](https://img.shields.io/pypi/v/pynsm.svg)](https://pypi.org/project/pynsm/)
[![Python 3.8+](https://img.shields.io/badge/python-3.8+-green.svg)](https://www.python.org/downloads/release/python-380/)
[![License](https://img.shields.io/pypi/l/pynsm.svg)](https://github.com/Shagesh/pytorch-NSM/blob/master/LICENSE)
This is an implementation of non-negative similarity matching (NSM) for PyTorch focusing on ease of use, extensibility, and speed.
## Getting started
You can install the package from PyPI by using
```sh
pip install pynsm
```
## User documentation
Find examples, how-to guides, tutorials, and full API reference information on Readthedocs, https://pynsm.readthedocs.io/.
## Questions or issues?
Please contact us by opening an issue on GitHub.
<br/>
*********************************************************
<br/>
## Instructions for developers
### Developer installation
It is strongly recommended to use a virtual environment when working with this code. The installation instructions below include the commands for creating the virtual environment, using either `conda` (recommended) or `venv`.
#### Developer install using `conda`
If you do not have `conda` installed, the easiest way to get started is with [Miniconda](https://docs.conda.io/en/latest/miniconda.html). Follow the installation instructions for your system.
Next, create a new environment and install for CPU using
```sh
conda env create -f environment.yml
```
For using an NVIDIA GPU run
```sh
conda env create -f environment-cuda.yml
```
Note that most Macs do not have an NVIDIA GPU, so you should use the first invocation shown above. If your Mac uses the newer Apple chips, you may be able to use ``device=mps`` to get GPU acceleration (the installation procedure remains unchanged).
The commands above automatically perform an "editable" install—this means that changes made to the code will automatically take effect without having to reinstall the package.
#### Developer install using `venv`
Before creating a new virtual environment, it is best to ensure you're not using the system version of Python—this is often badly out of date. Some options for doing this are outlined in [The Hitchhiker's Guide to Python](https://docs.python-guide.org/starting/installation/#installation-guides), although many options exist. One advantage of using `conda` is that this is done for you.
Once you have a proper Python install, create a new virtual environment by running the following command in a terminal inside the main folder of the repository:
```sh
python -m venv env
```
This creates a subfolder called `env` containing the files for the virtual environment. Next we need to activate the environment and install the package with its pre-requisites:
```sh
source env/bin/activate
pip install -e ".[dev]"
```
The `-e` marks this as an "editable" install—this means that changes made to the code will automatically take effect without having to reinstall the package.
### Example usage
See the notebooks in the [`examples`](examples) folder to get started with the package. The information on [readthedocs](https://pynsm.readthedocs.io/) may also prove useful.
Raw data
{
"_id": null,
"home_page": "",
"name": "pynsm",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "neural network,biology,research",
"author": "",
"author_email": "Tiberiu Tesileanu <ttesileanu@gmail.com>, Shagesh Sridharan <shagesh1996@gmail.com>, Yanis Bahroun <ybahroun@flatironinstitute.org>",
"download_url": "https://files.pythonhosted.org/packages/8a/e0/96f58658aac50f9607089ed75ae7cf7373b5d961aee739a0ec3168475d2f/pynsm-1.0.1.tar.gz",
"platform": null,
"description": "# Non-negative similarity matching in PyTorch\n\n[![PyPI Version](https://img.shields.io/pypi/v/pynsm.svg)](https://pypi.org/project/pynsm/)\n[![Python 3.8+](https://img.shields.io/badge/python-3.8+-green.svg)](https://www.python.org/downloads/release/python-380/)\n[![License](https://img.shields.io/pypi/l/pynsm.svg)](https://github.com/Shagesh/pytorch-NSM/blob/master/LICENSE)\n\nThis is an implementation of non-negative similarity matching (NSM) for PyTorch focusing on ease of use, extensibility, and speed.\n\n## Getting started\n\nYou can install the package from PyPI by using\n\n```sh\npip install pynsm\n```\n\n## User documentation\nFind examples, how-to guides, tutorials, and full API reference information on Readthedocs, https://pynsm.readthedocs.io/.\n\n## Questions or issues?\n\nPlease contact us by opening an issue on GitHub.\n\n<br/>\n\n*********************************************************\n\n<br/>\n\n## Instructions for developers\n\n### Developer installation\n\nIt is strongly recommended to use a virtual environment when working with this code. The installation instructions below include the commands for creating the virtual environment, using either `conda` (recommended) or `venv`.\n\n#### Developer install using `conda`\n\nIf you do not have `conda` installed, the easiest way to get started is with [Miniconda](https://docs.conda.io/en/latest/miniconda.html). Follow the installation instructions for your system.\n\nNext, create a new environment and install for CPU using\n\n```sh\nconda env create -f environment.yml\n```\n\nFor using an NVIDIA GPU run\n\n```sh\nconda env create -f environment-cuda.yml\n```\n\nNote that most Macs do not have an NVIDIA GPU, so you should use the first invocation shown above. If your Mac uses the newer Apple chips, you may be able to use ``device=mps`` to get GPU acceleration (the installation procedure remains unchanged).\n\nThe commands above automatically perform an \"editable\" install\u2014this means that changes made to the code will automatically take effect without having to reinstall the package.\n\n#### Developer install using `venv`\n\nBefore creating a new virtual environment, it is best to ensure you're not using the system version of Python\u2014this is often badly out of date. Some options for doing this are outlined in [The Hitchhiker's Guide to Python](https://docs.python-guide.org/starting/installation/#installation-guides), although many options exist. One advantage of using `conda` is that this is done for you.\n\nOnce you have a proper Python install, create a new virtual environment by running the following command in a terminal inside the main folder of the repository:\n\n```sh\npython -m venv env\n```\n\nThis creates a subfolder called `env` containing the files for the virtual environment. Next we need to activate the environment and install the package with its pre-requisites:\n\n```sh\nsource env/bin/activate\npip install -e \".[dev]\"\n```\n\nThe `-e` marks this as an \"editable\" install\u2014this means that changes made to the code will automatically take effect without having to reinstall the package.\n\n### Example usage\n\nSee the notebooks in the [`examples`](examples) folder to get started with the package. The information on [readthedocs](https://pynsm.readthedocs.io/) may also prove useful.\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2022-2023 Shagesh Sridharan, Yanis Bahroun, Tiberiu Tesileanu Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
"summary": "A PyTorch implementation of non-negative similarity matching",
"version": "1.0.1",
"project_urls": {
"Docs": "https://pynsm.readthedocs.io",
"Source": "https://github.com/Shagesh/pytorch-NSM"
},
"split_keywords": [
"neural network",
"biology",
"research"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "00c63234b3efb6ff2ca4e6a3137c4a7b87d5d80027d6835e46cae9425cbac64d",
"md5": "68f9d97ae4e7295f285d186c2130fd5f",
"sha256": "29c74991acdcacd6d5245e234a6405c534e274e6ce1c11908800cc607177ee3d"
},
"downloads": -1,
"filename": "pynsm-1.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "68f9d97ae4e7295f285d186c2130fd5f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 12701,
"upload_time": "2023-09-08T18:58:16",
"upload_time_iso_8601": "2023-09-08T18:58:16.283837Z",
"url": "https://files.pythonhosted.org/packages/00/c6/3234b3efb6ff2ca4e6a3137c4a7b87d5d80027d6835e46cae9425cbac64d/pynsm-1.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8ae096f58658aac50f9607089ed75ae7cf7373b5d961aee739a0ec3168475d2f",
"md5": "c3a512de135cd8005563eb715c0866db",
"sha256": "394ef35ee9d828e792c7682bd9738763dc63d5c704d4f68c8804b29ee079004a"
},
"downloads": -1,
"filename": "pynsm-1.0.1.tar.gz",
"has_sig": false,
"md5_digest": "c3a512de135cd8005563eb715c0866db",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 3900942,
"upload_time": "2023-09-08T18:58:18",
"upload_time_iso_8601": "2023-09-08T18:58:18.595993Z",
"url": "https://files.pythonhosted.org/packages/8a/e0/96f58658aac50f9607089ed75ae7cf7373b5d961aee739a0ec3168475d2f/pynsm-1.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-09-08 18:58:18",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Shagesh",
"github_project": "pytorch-NSM",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "pynsm"
}