Skip to main content

A custom non-monotonic activation function

Project description

lili_activation

Description

lili_activation 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 directly from PyPI using pip:

pip install lili_activation

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


Download files

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

Source Distribution

lili_activation-0.1.3.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

lili_activation-0.1.3-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file lili_activation-0.1.3.tar.gz.

File metadata

  • Download URL: lili_activation-0.1.3.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

Hashes for lili_activation-0.1.3.tar.gz
Algorithm Hash digest
SHA256 0c662d2b017e15c9f3d2f3d8e28b6616a50e2b77ecea04e4363f7e62bb2baa01
MD5 84a5a597ba6e76126e2a6dfc2a5f663f
BLAKE2b-256 0a853a9d375c1604ef45ae1565f6088b3e6d8e770b27c5ee72718db10d0bbf2b

See more details on using hashes here.

File details

Details for the file lili_activation-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for lili_activation-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e27e8e1bf8ded52da02a3b72622cc42a327f9510cfda25b00ac101e2e2e350dd
MD5 02f3e367755ec535eadeb5ef47416013
BLAKE2b-256 55d27ccb8e125ac1cfeb9634dc8e956d1d6a49dd6e0806a3bef35e74a5898dcb

See more details on using hashes here.

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