hyper-jax


Namehyper-jax JSON
Version 0.0.1 PyPI version JSON
download
home_page
SummaryHyperdimensional computing with Jax
upload_time2023-10-23 17:15:02
maintainer
docs_urlNone
author
requires_python>=3.10
licenseMIT License Copyright (c) 2023 mmarklar 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 hyperdimensional computing jax vector symbolic architecture
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # hyper-jax
[Hyperdimensional computing](https://en.wikipedia.org/wiki/Hyperdimensional_computing) with Jax. This library provides a very minimal implementation of MAP (Multiply, add, permute) operations over bipolar vectors originally proposed [here](https://www.researchgate.net/publication/215992330_Multiplicative_Binding_Representation_Operators_Analogy).

# Install

Coming soon...

# How to use
Generate 2 random vectors with dimension of 10 000
```
from generator import random_vectors

dimensions = 10000
count = 2

key = random.PRNGKey(0)
vectors = random_vectors(key, dimensions, count)
```

Bundle two hypervectors
```
from operation import bundle, unbundle

hypervector = bundle(vectors[0], vectors[1])
```
Unbundle two hypervectors
```
# original_vector == vectors[0]
original_vector = unbundle(hypervector, vectors[1])
```
Bind two hypervectors
```
from operation import bind, unbind

bound_vector = bind(vectors[0], vectors[1])
```
Unbind the hypervector
```
# original_vector == vectors[1]
unbound_vector = unbind(bound_vector, vectors[0])
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "hyper-jax",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "",
    "keywords": "hyperdimensional computing,jax,vector symbolic architecture",
    "author": "",
    "author_email": "marklar <ddillon@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/07/00/c4360a895de517da3247bc96a8f46d91a8f8de8b2ff4da37934f24826772/hyper-jax-0.0.1.tar.gz",
    "platform": null,
    "description": "# hyper-jax\n[Hyperdimensional computing](https://en.wikipedia.org/wiki/Hyperdimensional_computing) with Jax. This library provides a very minimal implementation of MAP (Multiply, add, permute) operations over bipolar vectors originally proposed [here](https://www.researchgate.net/publication/215992330_Multiplicative_Binding_Representation_Operators_Analogy).\n\n# Install\n\nComing soon...\n\n# How to use\nGenerate 2 random vectors with dimension of 10 000\n```\nfrom generator import random_vectors\n\ndimensions = 10000\ncount = 2\n\nkey = random.PRNGKey(0)\nvectors = random_vectors(key, dimensions, count)\n```\n\nBundle two hypervectors\n```\nfrom operation import bundle, unbundle\n\nhypervector = bundle(vectors[0], vectors[1])\n```\nUnbundle two hypervectors\n```\n# original_vector == vectors[0]\noriginal_vector = unbundle(hypervector, vectors[1])\n```\nBind two hypervectors\n```\nfrom operation import bind, unbind\n\nbound_vector = bind(vectors[0], vectors[1])\n```\nUnbind the hypervector\n```\n# original_vector == vectors[1]\nunbound_vector = unbind(bound_vector, vectors[0])\n```\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2023 mmarklar  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": "Hyperdimensional computing with Jax",
    "version": "0.0.1",
    "project_urls": null,
    "split_keywords": [
        "hyperdimensional computing",
        "jax",
        "vector symbolic architecture"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0f455e2dd2e308a9bcd6de5c3b2716395cb467fb665cf6f76761e0765e401544",
                "md5": "229f78c475c5c7b54c8698354d53649a",
                "sha256": "a3e2b5e5a46c90b4895a208ef945b19c669c54c349df76d72345b56ed8514be0"
            },
            "downloads": -1,
            "filename": "hyper_jax-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "229f78c475c5c7b54c8698354d53649a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 3868,
            "upload_time": "2023-10-23T17:15:00",
            "upload_time_iso_8601": "2023-10-23T17:15:00.515466Z",
            "url": "https://files.pythonhosted.org/packages/0f/45/5e2dd2e308a9bcd6de5c3b2716395cb467fb665cf6f76761e0765e401544/hyper_jax-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0700c4360a895de517da3247bc96a8f46d91a8f8de8b2ff4da37934f24826772",
                "md5": "ab4cc8d4d364acc83f262cb74854c2a7",
                "sha256": "7d0dbc575a9f5c7d22be93e4f6ff3b2b658b54d1b56cd4a175c18fb98ea81011"
            },
            "downloads": -1,
            "filename": "hyper-jax-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "ab4cc8d4d364acc83f262cb74854c2a7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 2823,
            "upload_time": "2023-10-23T17:15:02",
            "upload_time_iso_8601": "2023-10-23T17:15:02.574394Z",
            "url": "https://files.pythonhosted.org/packages/07/00/c4360a895de517da3247bc96a8f46d91a8f8de8b2ff4da37934f24826772/hyper-jax-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-23 17:15:02",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "hyper-jax"
}
        
Elapsed time: 0.13954s