Giter Site home page Giter Site logo

danielwicz / psnake-activation-function Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6 KB

An extension to the snake activation function - Snake. Here, every input of the layer gets own trained frequency, instead of only one.

License: MIT License

Python 100.00%

psnake-activation-function's Introduction

PSnake Activation Function - A Powerful Tool for Periodic Data Approximation

PSnake is an extension to the snake activation function that enables every input of the layer to have its own trained frequency, instead of only one. This activation function is particularly useful in situations where several periodic functions with different frequencies are needed to approximate a given problem, such as in finance, stock, economical data, weather prediction, sound, EKG signal, and other fields.

The PSnake activation function forms some sort of basis function for the trained periodic signal, and can be used as a powerful tool for approximating periodic data. The function definition is given as follows:

Example of applications

The PSnake activation function can also be applied to fields such as:

  • Signal Processing
  • Time-series data
  • Predictive maintenance
  • Speech recognition
  • Music analysis
  • Image processing

Activation function definition

The PSnake activation function is defined as:

$$f(x) = x + (1 - cos(2 * \alpha * x))/(2 * \alpha)$$

where $\alpha$ is a learned array with the same shape as the input $x$.

References

Ziyin L, Hartwig T, Ueda M. Neural networks fail to learn periodic functions and how to fix it, arXiv. arXiv preprint arXiv:2006.08195. 2020.

#How to Cite

If you find this work useful in your research, please consider citing: Daniel Wiczew, Parametric Snake (PSnake) activation for the neural network to approximate periodic functions. GitHub repository Cite also original work from Ziyin L. et al.

psnake-activation-function's People

Contributors

danielwicz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.