Skip to main content

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

Metadata

Release files for ReLUs 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ReLUs 1.0.1
File Size Uploaded Provenance Actions
ReLUs-1.0.1.tar.gz 3.8 kB Without provenance Details for ReLUs-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ReLUs 1.0.1
File Interpreter ABI Platform Actions
ReLUs-1.0.1-py3-none-any.whl Python 3 none any Details for ReLUs-1.0.1-py3-none-any.whl

Total release size: 7.8 kB

Release files / ReLUs-1.0.1.tar.gz

Download URL ReLUs-1.0.1.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1f945a9f70be8241d07cb3e590f7f09e14ea8f5ff3533366e611cc5b006253c4
BLAKE2b-256 checksum
How to use checksums
2dab5925af6ba799c68891ba96cedc99686eadf9e6958e3105272b6cd2d3fe26
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / ReLUs-1.0.1-py3-none-any.whl

Download URL ReLUs-1.0.1-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9471f79e7f2046335cad9b353b385ae88237b1b02e65c464d9b4afd6381159ea
BLAKE2b-256 checksum
How to use checksums
687b619bf1366848c2852cf095b9f664c6ffa59804467af1a27ffb2c3abd9037
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for ReLUs 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page