Skip to content

Commit

Permalink
Merge pull request #40 from Deepslient/master
Browse files Browse the repository at this point in the history
统一注释格式
  • Loading branch information
zhangyu345293721 authored Nov 26, 2024
2 parents 9e48ab6 + 6b6cf06 commit 0f524e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion 1-1,结构化数据建模流程范例.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3789,7 +3789,7 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": null,
"id": "a31cb281",
"metadata": {},
"outputs": [
Expand All @@ -3815,6 +3815,7 @@
],
"source": [
"#预测类别\n",
"\n",
"y_pred = torch.where(y_pred_probs>0.5,\n",
" torch.ones_like(y_pred_probs),torch.zeros_like(y_pred_probs))\n",
"y_pred"
Expand Down
2 changes: 1 addition & 1 deletion 1-2,图片数据建模流程范例.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
"source": [
"在Pytorch中构建图片数据管道通常有两种方法。\n",
"\n",
"第一种是使用 torchvision中的datasets.ImageFolder来读取图片然后用 DataLoader来并行加载。\n",
"第一种是使用 torchvision中的datasets.ImageFolder 来读取图片然后用 DataLoader来并行加载。\n",
"\n",
"第二种是通过继承 torch.utils.data.Dataset 实现用户自定义读取逻辑然后用 DataLoader来并行加载。\n",
"\n",
Expand Down

0 comments on commit 0f524e8

Please sign in to comment.