Skip to content

Commit

Permalink
Custom activation functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Dawith committed Nov 3, 2025
1 parent 94b4dae commit 288de9d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions model/activation.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# -*- Encoding: utf-8 -*-

import keras.ops as K

def sublinear(x):
return x / (1 + K.sqrt(K.sqrt(K.abs(x))))

# EOF

0 comments on commit 288de9d

Please sign in to comment.