LogLU Activation Function - TensorFlow
Project description
Installation
To use LogLU, simply install it using the following command:
pip install loglu-tensorflow
Implementation
import tensorflow as tf
from loglu_tensorflow import LogLU # Importing the LogLU activation function from the loglu package
# Define a model
model = tf.keras.models.Sequential([
tf.keras.layers.Dense(128, input_shape=(784,)),
tf.keras.layers.Activation(LogLU()), # Use LogLU as the activation function
tf.keras.layers.Dense(10, activation='softmax')
])
# Compile the model
# Summary of the model
model.summary()
License
LogLU-TensorFlow is released under the Apache License 2.0.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file loglu_tensorflow-0.0.1.tar.gz.
File metadata
- Download URL: loglu_tensorflow-0.0.1.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4a637f1155fd5ea27e58cba3f6701b9a541b83a0d36407f2a22089a210a63fd
|
|
| MD5 |
79ab524df4f6668890af60e89befbbeb
|
|
| BLAKE2b-256 |
92a1d3759d6ae781f49c4dcc462c8df8935584695553ce1651eafa51879fa0bb
|
File details
Details for the file loglu_tensorflow-0.0.1-py3-none-any.whl.
File metadata
- Download URL: loglu_tensorflow-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff7c9acc5a344b7177a37db06cba07208772885074b99061c0c0c775657ded81
|
|
| MD5 |
cd55ad0bf7a787567d136620f85ef01f
|
|
| BLAKE2b-256 |
3f52ce3eb67a75710f91f7d4143613d7fc651c3f9f715937b3c8eb27333eb59c
|