PyDeepLib


NamePyDeepLib JSON
Version 0.0.1 PyPI version JSON
download
home_pagehttps://github.com/y-a-r-i-k/PDLib
SummaryA simple library for deep learning
upload_time2023-09-03 18:48:02
maintainer
docs_urlNone
authoryarik_g
requires_python>=3.9
license
keywords example python
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # **PythonDeepLearning library (PDLib)** #

This is simple library for deep learning with Python. 
The library is based on the book "Grokking Deep Learning".
The library is distributed under the MIT license and can be downloaded and used by anyone.

----------


## How to install ##
To install, you can use the command:

    pip install PyDeepLib

Or download the repository from [GitHub](https://github.com/y-a-r-i-k/PDLib)

----------

## Using ##
In this file you will not find a detailed description and instructions for working with this library, only a description of each of the base classes of the library will be presented here.
If you want to know how this library works in depth or learn how to work with it to perfection, read Chapter 13 of the book "Grokking Deep Learning". The code for this library is very similar to the code in the book.

### Tensor ###
Initially, this library should have been called SimpleTensorLib, since Tensor is the main component of the library.
> A tensor is an abstract form of representation
> nested lists of numbers. A vector is a one-dimensional tensor. Matrix -
> two-dimensional tensor, and structures with a large number of dimensions are called
> n-dimensional tensors.
  
The **Tensor class** (located in the tensorclass.py file) is the main class in the library and has a number of functions:   
  
- *all_children_grads_accounted_for*() Checks if gradients are derived from all children;
  
- *backward*() Responsible for backpropagation logic;
  
- A set of functions responsible for backpropagation operations;
  
  
During initialization, the class takes an input parameters:
  
- *data* - The actual data. It must be a numpy array;
  
- *autograd* - Use automatic gradient or not. Must be a boolean (true or false);
  
- *creators* - The list of tensors used for create current tensor. Default - None;
  
- *creation_op* - Stores the operations used to create. Default - None;
  
- *id* - ID. Optional parameter. If you do not set it, it is assigned automatically;
  
  
### Layer classes ###
  
List of all layer classes available for use:
  
- *Layer* - The base class of the layer, some others are inherited from it.
  
- *SGD* - automatic optimization.
  
- *Sequential* - a layer containing another layer.
  
- *MSELoss* - Loss function layer.
  
- *Embedding* - Layer with vector representation.
  
- *Tanh* and *Sigmoid* - Activation functions.
  
- *CrossEntropyLoss* - Cross entropy layer.
  
- *RNNCell* - Recurrent layer.
  
- *LSTMCell* - Long short term memory cell.
  
  
### Additional functions ###

- *File* - contained in the file speedfiein.py and is a built-in fragment of the speedfile library. Allows you to work with files faster. Read more [here](https://github.com/y-a-r-i-k/SpeedFile-for-Python).
  
- *Logging* - Fast logging class. In developing.

 
----------


## From the developer ##

> Hello. If you noticed this project, it's very cool! I did it just for myself while reading "Grokking Deep Learning". I'm just learning both neural networks and Python, so maybe something could be done better. If you have great knowledge about neural networks and Python, and want to help the project, then go to [my website](https://y-a-r-i-k.github.io/), there you will find my contacts, you can help me in the project, I will be glad for any cooperation or help, thanks in advance. In the near future, I probably will not be able to support the project, as I am very busy with my studies.
  
  

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/y-a-r-i-k/PDLib",
    "name": "PyDeepLib",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "example python",
    "author": "yarik_g",
    "author_email": "gusevyaroslaveggg666@gmail.com",
    "download_url": "",
    "platform": null,
    "description": "# **PythonDeepLearning library (PDLib)** #\r\n\r\nThis is simple library for deep learning with Python. \r\nThe library is based on the book \"Grokking Deep Learning\".\r\nThe library is distributed under the MIT license and can be downloaded and used by anyone.\r\n\r\n----------\r\n\r\n\r\n## How to install ##\r\nTo install, you can use the command:\r\n\r\n    pip install PyDeepLib\r\n\r\nOr download the repository from [GitHub](https://github.com/y-a-r-i-k/PDLib)\r\n\r\n----------\r\n\r\n## Using ##\r\nIn this file you will not find a detailed description and instructions for working with this library, only a description of each of the base classes of the library will be presented here.\r\nIf you want to know how this library works in depth or learn how to work with it to perfection, read Chapter 13 of the book \"Grokking Deep Learning\". The code for this library is very similar to the code in the book.\r\n\r\n### Tensor ###\r\nInitially, this library should have been called SimpleTensorLib, since Tensor is the main component of the library.\r\n> A tensor is an abstract form of representation\r\n> nested lists of numbers. A vector is a one-dimensional tensor. Matrix -\r\n> two-dimensional tensor, and structures with a large number of dimensions are called\r\n> n-dimensional tensors.\r\n  \r\nThe **Tensor class** (located in the tensorclass.py file) is the main class in the library and has a number of functions:   \r\n  \r\n- *all_children_grads_accounted_for*() Checks if gradients are derived from all children;\r\n  \r\n- *backward*() Responsible for backpropagation logic;\r\n  \r\n- A set of functions responsible for backpropagation operations;\r\n  \r\n  \r\nDuring initialization, the class takes an input parameters:\r\n  \r\n- *data* - The actual data. It must be a numpy array;\r\n  \r\n- *autograd* - Use automatic gradient or not. Must be a boolean (true or false);\r\n  \r\n- *creators* - The list of tensors used for create current tensor. Default - None;\r\n  \r\n- *creation_op* - Stores the operations used to create. Default - None;\r\n  \r\n- *id* - ID. Optional parameter. If you do not set it, it is assigned automatically;\r\n  \r\n  \r\n### Layer classes ###\r\n  \r\nList of all layer classes available for use:\r\n  \r\n- *Layer* - The base class of the layer, some others are inherited from it.\r\n  \r\n- *SGD* - automatic optimization.\r\n  \r\n- *Sequential* - a layer containing another layer.\r\n  \r\n- *MSELoss* - Loss function layer.\r\n  \r\n- *Embedding* - Layer with vector representation.\r\n  \r\n- *Tanh* and *Sigmoid* - Activation functions.\r\n  \r\n- *CrossEntropyLoss* - Cross entropy layer.\r\n  \r\n- *RNNCell* - Recurrent layer.\r\n  \r\n- *LSTMCell* - Long short term memory cell.\r\n  \r\n  \r\n### Additional functions ###\r\n\r\n- *File* - contained in the file speedfiein.py and is a built-in fragment of the speedfile library. Allows you to work with files faster. Read more [here](https://github.com/y-a-r-i-k/SpeedFile-for-Python).\r\n  \r\n- *Logging* - Fast logging class. In developing.\r\n\r\n \r\n----------\r\n\r\n\r\n## From the developer ##\r\n\r\n> Hello. If you noticed this project, it's very cool! I did it just for myself while reading \"Grokking Deep Learning\". I'm just learning both neural networks and Python, so maybe something could be done better. If you have great knowledge about neural networks and Python, and want to help the project, then go to [my website](https://y-a-r-i-k.github.io/), there you will find my contacts, you can help me in the project, I will be glad for any cooperation or help, thanks in advance. In the near future, I probably will not be able to support the project, as I am very busy with my studies.\r\n  \r\n  \r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A simple library for deep learning",
    "version": "0.0.1",
    "project_urls": {
        "Documentation": "https://github.com/y-a-r-i-k/PDLib",
        "Homepage": "https://github.com/y-a-r-i-k/PDLib"
    },
    "split_keywords": [
        "example",
        "python"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "37bbc0b5831a69f9a03dfb3dd8c518052e09f45d572542d0ea3833c8f73d87d9",
                "md5": "a6ba7fdc75c35ad57c2856c4f3702747",
                "sha256": "6822a12082226dffdd780b5a025980914be712ad2b2a7ce1fcc7ba6a804cb1d2"
            },
            "downloads": -1,
            "filename": "PyDeepLib-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a6ba7fdc75c35ad57c2856c4f3702747",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 7391,
            "upload_time": "2023-09-03T18:48:02",
            "upload_time_iso_8601": "2023-09-03T18:48:02.837267Z",
            "url": "https://files.pythonhosted.org/packages/37/bb/c0b5831a69f9a03dfb3dd8c518052e09f45d572542d0ea3833c8f73d87d9/PyDeepLib-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-03 18:48:02",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "y-a-r-i-k",
    "github_project": "PDLib",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pydeeplib"
}
        
Elapsed time: 0.10468s