This project explores using unusual activation functions in neural networks, specifically those derived from modular forms. In particular, we focus on the Dedekind eta function as an activation function.
The Dedekind eta function is a modular form defined on the complex upper half-plane with significant applications in number theory and theoretical physics. It is defined as:
where
In this project, we implement the Dedekind eta function using Euler's formula and integrate it as an activation function within neural network architectures.
We approximate the infinite product in the Dedekind eta function using a finite sum based on Euler's formula:
where
The implementation can be found in the DedekindEta
class in the __init__.py
file.