Commit 29cef4b9 authored by Sushant Mahajan's avatar Sushant Mahajan

removed unused function - restrictProbs, code moved inline

parent e53add22
Pipeline #299 skipped
......@@ -64,9 +64,6 @@ def feedforward(model, X):
h = sigmoid(z2) #mx2
return h
def restrictProb(a):
return min([max([a,1e-15]), 1-1e-15])
def cost(model, X, y):
m = X.shape[0]
h = feedforward(model, X)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment