vector-ai-ml


Namevector-ai-ml JSON
Version 0.0.3 PyPI version JSON
download
home_page
SummaryA simple python vector package.
upload_time2022-12-02 22:20:09
maintainer
docs_urlNone
authorAtlasAerospace (Alexander Armitage)
requires_python
license
keywords python math ai ml artificialintelligence
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Vector

A python vector library

## Contents
* [Why vector](#why-vector)
* [Usage](#usage)
* [Installation](#installation)

## Why vector

Vector is a mathematical library for python. In my search to understand artificial intelligence (AI) I strived to make my own neural network entirely from scratch. To do this I began with <a href =https://numpy.org/>numpy</a> – a python library which is the go-to for mathematical things within python. As I started to make this program, I realised that I wanted more control over the objects and wanted to use them in such a way that would make sense for AI. So, I made my own library – vector – a simple vector library in python which holds the basic activation functions for neural networks, random generation, and of course a Vector object which is to be used in a way similar to `np.array`.

## Usage

To import the library:
```
from vector import Vector
from vector import activation
from vector import random
```
To define a vector object, `a = Vector([1, 0, 0, 1])` or `a = Vector(1)`. This class definition takes in either a list, tuple, int, or float. <br>
To generate a random vector, `a = random.random_vector(length, lower_bound, upper_bound)`, `lower_bound` and `upper_bound` are optional arguments and by default are -0.1 and 0.1 respectively.<br>
The vector library has 2 activation functions and the 2 derivative functions of those functions:
```
activation.sigmoig(vec)
activation.sigmoid_prime(vec)
activation.linear(vec)
activation.linear_prime(vec)
```
In the example above, vec is either an integer, float, or Vector. `sigmoid` is: 1 / (1 + e ^ -x) and `linear` is: 0.5 * x.
The `_prime` in the function name means derivative. 

## Installation

To install this library using pip, you need to type `pip install vector-ai-ml`.

![pylint](https://github.com/atlas-aerospace-yt/Vector/actions/workflows/pylint.yml/badge.svg)<br>

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "vector-ai-ml",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "python,math,ai,ml,artificialintelligence",
    "author": "AtlasAerospace (Alexander Armitage)",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/4f/c1/9e279896b2937f2694578dd7fcebcded2986e599b2f40492146b1af424e1/vector-ai-ml-0.0.3.tar.gz",
    "platform": null,
    "description": "# Vector\r\n\r\nA python vector library\r\n\r\n## Contents\r\n* [Why vector](#why-vector)\r\n* [Usage](#usage)\r\n* [Installation](#installation)\r\n\r\n## Why vector\r\n\r\nVector is a mathematical library for python. In my search to understand artificial intelligence (AI) I strived to make my own neural network entirely from scratch. To do this I began with <a href =https://numpy.org/>numpy</a> \u00e2\u20ac\u201c a python library which is the go-to for mathematical things within python. As I started to make this program, I realised that I wanted more control over the objects and wanted to use them in such a way that would make sense for AI. So, I made my own library \u00e2\u20ac\u201c vector \u00e2\u20ac\u201c a simple vector library in python which holds the basic activation functions for neural networks, random generation, and of course a Vector object which is to be used in a way similar to `np.array`.\r\n\r\n## Usage\r\n\r\nTo import the library:\r\n```\r\nfrom vector import Vector\r\nfrom vector import activation\r\nfrom vector import random\r\n```\r\nTo define a vector object, `a = Vector([1, 0, 0, 1])` or `a = Vector(1)`. This class definition takes in either a list, tuple, int, or float. <br>\r\nTo generate a random vector, `a = random.random_vector(length, lower_bound, upper_bound)`, `lower_bound` and `upper_bound` are optional arguments and by default are -0.1 and 0.1 respectively.<br>\r\nThe vector library has 2 activation functions and the 2 derivative functions of those functions:\r\n```\r\nactivation.sigmoig(vec)\r\nactivation.sigmoid_prime(vec)\r\nactivation.linear(vec)\r\nactivation.linear_prime(vec)\r\n```\r\nIn the example above, vec is either an integer, float, or Vector. `sigmoid` is: 1 / (1 + e ^ -x) and `linear` is: 0.5 * x.\r\nThe `_prime` in the function name means derivative. \r\n\r\n## Installation\r\n\r\nTo install this library using pip, you need to type `pip install vector-ai-ml`.\r\n\r\n![pylint](https://github.com/atlas-aerospace-yt/Vector/actions/workflows/pylint.yml/badge.svg)<br>\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A simple python vector package.",
    "version": "0.0.3",
    "split_keywords": [
        "python",
        "math",
        "ai",
        "ml",
        "artificialintelligence"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "48446ae8f1f3471f311832708071d5a4",
                "sha256": "226fa6d894eb0ddb8a59f5fde9132716ce3bc19d9dc39d6dbce3f5f7c1603f7c"
            },
            "downloads": -1,
            "filename": "vector_ai_ml-0.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "48446ae8f1f3471f311832708071d5a4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 5235,
            "upload_time": "2022-12-02T22:20:08",
            "upload_time_iso_8601": "2022-12-02T22:20:08.134761Z",
            "url": "https://files.pythonhosted.org/packages/25/53/d1eb5e22dad384a4834c9d3d6041282ce52c8495797629f61b0cdfbb5e3d/vector_ai_ml-0.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "6b9590c551ed42547c769b87aceda10f",
                "sha256": "c66041394a95107c25cfd41e249ddce432c8ebb98b2989c5a67da98b847315f1"
            },
            "downloads": -1,
            "filename": "vector-ai-ml-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "6b9590c551ed42547c769b87aceda10f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4614,
            "upload_time": "2022-12-02T22:20:09",
            "upload_time_iso_8601": "2022-12-02T22:20:09.547670Z",
            "url": "https://files.pythonhosted.org/packages/4f/c1/9e279896b2937f2694578dd7fcebcded2986e599b2f40492146b1af424e1/vector-ai-ml-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-02 22:20:09",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "vector-ai-ml"
}
        
Elapsed time: 0.02001s