cross entropy

Solutions on MaxInterview for cross entropy by the best coders in the world

showing results for - "cross entropy"
Nabil
21 Oct 2019
1class QuadraticCost(object):
2
3    @staticmethod
4    def fn(a, y):
5        return 0.5*np.linalg.norm(a-y)**2
6
7    @staticmethod
8    def delta(z, a, y):
9        return (a-y) * sigmoid_prime(z)
10