Skip to content

Commit 2490765

Browse files
authored
Merge pull request #1170 from NeuromatchAcademy/staging
Staging
2 parents 467b3f2 + 32eff1d commit 2490765

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

tutorials/W3D1_BayesianDecisions/W3D1_Tutorial2.ipynb

Lines changed: 2 additions & 2 deletions
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
},
@@ -3279,7 +3279,7 @@
32793279
"name": "python",
32803280
"nbconvert_exporter": "python",
32813281
"pygments_lexer": "ipython3",
3282-
"version": "3.9.21"
3282+
"version": "3.9.23"
32833283
}
32843284
},
32853285
"nbformat": 4,

tutorials/W3D1_BayesianDecisions/instructor/W3D1_Tutorial2.ipynb

Lines changed: 2 additions & 2 deletions
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
},
@@ -3279,7 +3279,7 @@
32793279
"name": "python",
32803280
"nbconvert_exporter": "python",
32813281
"pygments_lexer": "ipython3",
3282-
"version": "3.9.21"
3282+
"version": "3.9.23"
32833283
}
32843284
},
32853285
"nbformat": 4,

tutorials/W3D1_BayesianDecisions/student/W3D1_Tutorial2.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2033,7 +2033,7 @@
20332033
" elif loss_f == \"Absolute Error\":\n",
20342034
" loss = np.abs(error)\n",
20352035
" elif loss_f == \"Zero-One Loss\":\n",
2036-
" loss = (np.abs(error) >= 0.03).astype(np.float)\n",
2036+
" loss = (np.abs(error) >= 0.03).astype(float)\n",
20372037
" return loss"
20382038
]
20392039
},
@@ -3089,7 +3089,7 @@
30893089
"name": "python",
30903090
"nbconvert_exporter": "python",
30913091
"pygments_lexer": "ipython3",
3092-
"version": "3.9.21"
3092+
"version": "3.9.23"
30933093
}
30943094
},
30953095
"nbformat": 4,

0 commit comments

Comments
 (0)