Skip to content

Commit 1b3b992

Browse files
authored
Merge pull request #1169 from ritog/patch-1
changed typecasting from np.float to float in calc_loss_function
2 parents 467b3f2 + 791402a commit 1b3b992

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorials/W3D1_BayesianDecisions/W3D1_Tutorial2.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2081,7 +2081,7 @@
20812081
" elif loss_f == \"Absolute Error\":\n",
20822082
" loss = np.abs(error)\n",
20832083
" elif loss_f == \"Zero-One Loss\":\n",
2084-
" loss = (np.abs(error) >= 0.03).astype(np.float)\n",
2084+
" loss = (np.abs(error) >= 0.03).astype(float)\n",
20852085
" return loss"
20862086
]
20872087
},

0 commit comments

Comments
 (0)