Skip to content

Commit d3fe18e

Browse files
authored
minor spacing
1 parent 8b25f54 commit d3fe18e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

learning.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
def euclidean_distance(X, Y):
2222
return math.sqrt(sum((x - y)**2 for x, y in zip(X, Y)))
2323

24+
2425
def cross_entropy_loss(X,Y):
2526
n=len(X)
2627
return (-1.0/n)*sum(x*math.log(y)+(1-x)*math.log(1-y) for x,y in zip(X,Y) )

0 commit comments

Comments
 (0)