Catalog PyPI
PACKAGE EXPLORERView in registry

actix

PyPI

A collection of novel and experimental activation functions for TensorFlow and PyTorch

activationactixdeepfunctionskeraslearningmachinenetworksneuralpytorchtensorflow
Versions collected1
Direct dependencies5From release 0.5.0
Last observed20 Oct, 18:38 UTC

README

Version 0.5.0 documentation

Actix Functions

PyPI version License: MIT

A collection of novel and experimental activation functions for deep learning, supporting both TensorFlow/Keras and PyTorch.

Key Features

  • 50+ activation functions including custom parametric and static variants
  • Dual framework support for TensorFlow/Keras and PyTorch
  • Proven performance gains over standard activations in benchmarks
  • Simple API with direct imports and getter functions

Installation

pip install actix                # Auto-detects installed frameworks
pip install actix[tf]            # TensorFlow only
pip install actix[torch]         # PyTorch only
pip install actix[tf,torch]      # Both frameworks

Quick Start

TensorFlow/Keras

from actix import OptimA, ATanSigmoid, get_activation
import tensorflow as tf

# Direct usage
model = tf.keras.Sequential([
    tf.keras.layers.Dense(128, input_shape=(784,)),
    OptimA(),
    tf.keras.layers.Dense(64),
    ATanSigmoid(),
    tf.keras.layers.Dense(10, activation='softmax')
])

# Using getter function
activation = get_activation('OptimA', framework='tensorflow')

PyTorch

from actix import OptimATorch, ATanSigmoidTorch
import torch.nn as nn

class Model(nn.Module):
    def __init__(self):
        super().__init__()
        self.fc1 = nn.Linear(784, 128)
        self.act1 = OptimATorch()
        self.fc2 = nn.Linear(128, 64)
        self.act2 = ATanSigmoidTorch()
        self.fc3 = nn.Linear(64, 10)
    
    def forward(self, x):
        x = self.act1(self.fc1(x))
        x = self.act2(self.fc2(x))
        return self.fc3(x)

Universal Top Performers

FunctionKey StrengthBest Use Case
ATanSigUBest overall performanceGeneral-purpose, especially classification (77.63% on CIFAR-10)
A_ELuCConsistent across tasksWhen you need reliable performance everywhere

Classification Leaders

RankActivation FunctionCIFAR-10 Accuracy
1ATanSigU77.63%
2AdaptiveSinusoidalSoftgate77.52%
3ParametricLogish77.48%
4SmoothedAbsoluteGatedUnit77.43%
5A_ELuC77.21%

Regression Champions

California Housing Dataset

RankActivation FunctionMSEImprovement vs Baseline
1SymmetricParametricRationalSigmoid0.2183-17.75%
2OptimA0.2211-16.70%
3OptimXTemporal0.2213-16.62%

Diabetes Dataset

RankActivation FunctionMSEImprovement vs Baseline
1ParametricBetaSoftsign0.4564-2.37%
2A_ELuC0.4567-2.31%
3SmoothedAbsoluteGatedUnit0.4590-1.82%

Experimental Functions

FunctionCharacteristicsApplication Domain
ComplexHarmonicActivationDemonstrates significant potential, requires precise hyperparameter optimizationAdvanced research applications with computational flexibility
WeibullSoftplusActivationExhibits robust performance with predictable convergence propertiesProduction systems requiring high stability and reliability
GeneralizedAlphaSigmoidProvides domain-specific adaptability through parameterizationSpecialized tasks requiring function customization
OptimQIntegrates three activation mechanisms with extensive configurabilityComplex architectures demanding high adaptability
StabilizedHarmonicCaptures periodic patterns while maintaining numerical stabilityTemporal modeling, signal processing, and cyclic phenomena
AdaptiveArcTanSwishAchieves optimal balance between computational efficiency and expressivenessRegression tasks requiring enhanced performance

Visualization Tools

import actix

# Visualize activation function and its derivative
actix.plot_activation('GeneralizedAlphaSigmoid', framework='tf')
actix.plot_derivative('GeneralizedAlphaSigmoid', framework='tf')

Requirements

  • Python 3.7+
  • NumPy ≥1.19
  • Matplotlib ≥3.3
  • TensorFlow ≥2.4 (optional)
  • PyTorch ≥1.8 (optional)

Documentation

For complete function list and mathematical formulas, see actix/activations_tf.py

For detailed benchmarks, check:

Contributing

We welcome contributions! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Add tests for new functions
  4. Ensure code follows PEP8 standards
  5. Submit a pull request

License

MIT License - see LICENSE file for details.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.5.018 Jun 20255

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
emotionengineer/actix

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:38 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:f6e5420039de730b61ece6d659577015698ba099507089d5fd40901d46b99a7b