We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 348541e commit b89484dCopy full SHA for b89484d
README.md
@@ -11,7 +11,7 @@ free to fork and modify the code.
11
12
MIT License
13
14
-Copyright (c) 2012-2013 Michael Nielsen
+Copyright (c) 2012-2015 Michael Nielsen
15
16
Permission is hereby granted, free of charge, to any person obtaining
17
a copy of this software and associated documentation files (the
src/network2.py
@@ -51,7 +51,7 @@ def fn(a, y):
51
to the correct value (0.0).
52
53
"""
54
- return np.nan_to_num(np.sum(-y*np.log(a)-(1-y)*np.log(1-a)))
+ return np.sum(np.nan_to_num(-y*np.log(a)-(1-y)*np.log(1-a)))
55
56
@staticmethod
57
def delta(z, a, y):
0 commit comments