Skip to main content

Python package containing all custom and SOTA mathematical backend algorithms used in Machine Learning.

Project description

Donate

Echo-AI

Python package containing all mathematical backend algorithms used in Machine Learning. The full documentation for Echo is provided here.

Table of Contents

About

Echo-AI Package is created to provide an implementation of the most promising mathematical algorithms, which are missing in the most popular deep learning libraries, such as PyTorch, Keras and TensorFlow.

Activation Functions

The package contains implementation for following activation functions (:white_check_mark: - implemented functions, :clock9: - functions to be implemented soon, :white_large_square: - function is implemented in the original deep learning package):

# Function Equation Keras PyTorch TensorFlow
1 Weighted Tanh equation :white_check_mark: :white_check_mark: :clock9:
2 Swish equation :white_check_mark: :white_check_mark: :clock9:
3 ESwish equation :white_check_mark: :white_check_mark: :clock9:
4 Aria2 equation :white_check_mark: :white_check_mark: :clock9:
5 ELiSH equation :white_check_mark: :white_check_mark: :clock9:
6 HardELiSH equation :white_check_mark: :white_check_mark: :clock9:
7 Mila equation :white_check_mark: :white_check_mark: :clock9:
8 SineReLU equation :white_check_mark: :white_check_mark: :clock9:
9 Flatten T-Swish equation :white_check_mark: :white_check_mark: :clock9:
10 SQNL equation :white_check_mark: :white_check_mark: :clock9:
11 ISRU equation :white_check_mark: :white_check_mark: :clock9:
12 ISRLU equation :white_check_mark: :white_check_mark: :clock9:
13 Bent's identity equation :white_check_mark: :white_check_mark: :clock9:
14 Soft Clipping equation :white_check_mark: :white_check_mark: :clock9:
15 SReLU equation :white_check_mark: :white_check_mark: :clock9:
15 BReLU equation :clock9: :white_check_mark: :clock9:
16 APL equation :clock9: :white_check_mark: :clock9:
17 Soft Exponential equation :white_check_mark: :white_check_mark: :clock9:
18 Maxout equation :clock9: :white_check_mark: :clock9:
19 Mish - :white_check_mark: :white_check_mark: :clock9:
20 Beta Mish equation :white_check_mark: :white_check_mark: :clock9:
21 RReLU equation :clock9: :white_large_square: :clock9:
22 CELU equation :white_check_mark: :white_large_square: :clock9:
23 ReLU6 equation :white_check_mark: :white_large_square: :clock9:
24 HardTanh equation :white_check_mark: :white_large_square: :clock9:
25 GLU equation :clock9: :white_large_square: :clock9:
26 LogSigmoid equation :white_check_mark: :white_large_square: :clock9:
27 TanhShrink equation :white_check_mark: :white_large_square: :clock9:
28 HardShrink equation :white_check_mark: :white_large_square: :clock9:
29 SoftShrink equation :white_check_mark: :white_large_square: :clock9:
30 SoftMin equation :white_check_mark: :white_large_square: :clock9:
31 LogSoftmax equation :white_check_mark: :white_large_square: :clock9:
32 Gumbel-Softmax :clock9: :white_large_square: :clock9:

Repository Structure

The repository has the following structure:

- echoAI # main package directory
| - Activation # sub-package containing activation functions implementation
| |- Torch  # sub-package containing implementation for PyTorch
| | | - functional.py # script which contains implementation of activation functions
| | | - weightedTanh.py # activation functions wrapper class for PyTorch
| | | - ... # PyTorch activation functions wrappers
| |- Keras  # sub-package containing implementation for Keras
| | | - custom_activations.py # script which contains implementation of activation functions
| - __init__.py

- Observations # Folder containing other assets

- docs # Sphinx documentation folder

- LICENSE # license file
- README.md
- setup.py # package setup file
- Smoke_tests # folder, which contains scripts with demonstration of activation functions usage
- Unit_tests # folder, which contains unit test scripts

Setup Instructions

To install Echo package follow the instructions below:

  1. Clone or download GitHub repository.

  2. Navigate to echoAI folder:

$ cd Echo

  1. Install the package with pip:

$ pip install .

To run the demo scripts:

  1. From root folder navigate to Smoke_tests folder:

$ cd Smoke_tests

  1. Run demo script:

$ python keras_activations_demo.py --activation aria2

To run unit tests:

  1. From root folder navigate to Unit_tests folder:

$ cd Unit_tests

  1. Run unit test script:

$ python -m unittest torch_activation_tests

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

echoAI-0.1.2.tar.gz (16.6 kB view hashes)

Uploaded Source

Built Distribution

echoAI-0.1.2-py3-none-any.whl (31.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page