14 lines
208 B
Python
14 lines
208 B
Python
import numpy as np
|
|
|
|
def rms(a, y):
|
|
return np.sqrt()
|
|
|
|
def quadratic(a,y):
|
|
return (a-y)**2/2
|
|
|
|
def logistic(a,y):
|
|
return np.dot(y, np.log(a).T) + np.dot((1-y), np.log(1-a).T
|
|
|
|
def cost():
|
|
return
|