Una función de activación personalizada para Keras
Project description
lili_activation_keras
Description
lili_activation_keras
is a custom activation function designed for TensorFlow and Keras frameworks. This package introduces fnm3
, a sine-based transformation activation function that provides an alternative to traditional activation functions like ReLU or sigmoid. The fnm3
function is particularly useful in scenarios where traditional activation functions might not capture complex patterns effectively.
Installation
Install lili_activation_keras
directly from PyPI using pip:
pip install lili_activation_keras
Ensure that you have pip updated and tensorflow installed in your environment, as lili_activation_keras depends on TensorFlow.
Usage
To use fnm3 in your Keras model, follow these steps:
import tensorflow as tf
from lili_activation import fnm3
Simple model example using fnm3
as the activation function
model = tf.keras.Sequentia([ tf.keras.layers.Dense(10, input_shape=(10,), activation=fnm3), tf.keras.layers.Dense(1, activation='sigmoid') ])
model.compile(optimizer='adam', loss='binary_crossentropy') model.summary()
Features
Non-monotonic: Introduces a controlled non-monotonic that may be more suitable in scenarios where the relationships among input data are complex. Innovative: Explores new avenues in activation functions that could prove beneficial in certain types of neural networks.
Contributions
Contributions are always welcome. If you have ideas for improvements or extensions, please feel free to create an issue or pull request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contact
Lili Chen - lilichen577@gmail.com
Acknowledgements
Special thanks to the TensorFlow and Keras community for providing an excellent platform for the experimentation and development of new ideas in machine learning.
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
File details
Details for the file lili_activation_keras-0.1.0.tar.gz
.
File metadata
- Download URL: lili_activation_keras-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46d2c76cf830b8d1bc63927a3da006a5294c5f3e2ae6ff7dd0a2b1222b09878c |
|
MD5 | 18394b3fdfccae3eef1dafa0b5c96360 |
|
BLAKE2b-256 | 336abae1abaaf72b338a4eb38433cc3cd5f01c4388e580278577b693266473c5 |
File details
Details for the file lili_activation_keras-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: lili_activation_keras-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34a887a8100113917e4b6f42656f061f4593dd9208198fbd05738f2af8196009 |
|
MD5 | 95ca1ebaba851eed9cffa12609f9ca7b |
|
BLAKE2b-256 | 1543b892bb0b4da589baf24b921f001e46529a8d88b34544460fdce9eca85589 |