Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions MLlib/tests/test_demo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

from MLlib.activations import TanH
from MLlib.activations import Softmax
import numpy as np

def test_1():
assert 2 == 2.0

def test_2():
assert type(5) is int

def test_tanh_fuction():
# X= np.array([0])
X = np.array([ 0 , 0 ,0 ])

assert (TanH.activation(X) == np.array([[ 0 , 0 , 0] ])).all()
assert (TanH.derivative(X) == np.array([1 , 1 , 1])).all()