mirror of
https://github.com/fastai/fastbook.git
synced 2025-04-04 18:00:48 +00:00
fix
This commit is contained in:
parent
b87a476975
commit
93d7698885
@ -3896,6 +3896,7 @@
|
|||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
|
"with torch.no_grad(): weights[0] *= 1.0001"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -3285,7 +3285,6 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"source": [
|
"source": [
|
||||||
"matplotlib.rcParams['image.cmap']='viridis' "
|
|
||||||
"learn.activation_stats.color_dim(-2)"
|
"learn.activation_stats.color_dim(-2)"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -956,7 +956,7 @@
|
|||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"corrects = (preds>0.5).float() == train_y\n",
|
"corrects = (preds>0.0).float() == train_y\n",
|
||||||
"corrects"
|
"corrects"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user