Skip to main content

A Python package for direct implementation of ReLU network.

Project description

ReLU neural network

rectified linear activation function

What is ReLU ?

ReLU is defined as g(x) = max(0,x). It is 0 when x is negative and equal to x when positive. Due to it’s lower saturation region, it is highly trainable and decreases the cost function far more quickly than sigmoid.

acitation functions

Inline-style: alt text

ReLU acitation function

Inline-style: alt text

direct implementation of ReLU neural networks

install

pip install ReLUs

or

pip3 install ReLUs

parameters for the model to train

layers_sizes   (e.g.  layers_size=[13,5,5,1])
num_iters      (e.g. num_iters=1000)
learning_rate (e.g. learning_rate=0.03)

training the model

model_name =  model(X_train, Y_train, layer_sizes, num_iters, learning_rate)

train and test accuracy

train_acc, test_acc = compute_accuracy(X_train, X_test, Y_train, Y_test, model_name)

making predictions

predict(X_train,your_model)

REFRENCES

https://machinelearningmastery.com/rectified-linear-activation-function-for-deep-learning-neural-networks/

https://en.wikipedia.org/wiki/Rectifier_(neural_networks)

https://www.kaggle.com/dansbecker/rectified-linear-units-relu-in-deep-learning

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

ReLUs-1.0.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ReLUs-1.0.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file ReLUs-1.0.1.tar.gz.

File metadata

  • Download URL: ReLUs-1.0.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for ReLUs-1.0.1.tar.gz
Algorithm Hash digest
SHA256 1f945a9f70be8241d07cb3e590f7f09e14ea8f5ff3533366e611cc5b006253c4
MD5 138a99667dae68c111213259076a3410
BLAKE2b-256 2dab5925af6ba799c68891ba96cedc99686eadf9e6958e3105272b6cd2d3fe26

See more details on using hashes here.

File details

Details for the file ReLUs-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: ReLUs-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for ReLUs-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9471f79e7f2046335cad9b353b385ae88237b1b02e65c464d9b4afd6381159ea
MD5 d5ce476bc9342204ef9aac7011965ad9
BLAKE2b-256 687b619bf1366848c2852cf095b9f664c6ffa59804467af1a27ffb2c3abd9037

See more details on using hashes here.

Supported by

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