This commit is contained in:
Jeremy Howard
2022-04-25 15:43:24 +10:00
parent 4a9a281c03
commit a64c789ebe
43 changed files with 203 additions and 232 deletions

View File

@@ -7,7 +7,7 @@
"outputs": [],
"source": [
"#hide\n",
"!pip install -Uqq fastbook\n",
"! [ -e /content ] && pip install -Uqq fastai # upgrade fastai on colab\n",
"import fastbook\n",
"fastbook.setup_book()"
]

View File

@@ -7,7 +7,7 @@
"outputs": [],
"source": [
"#hide\n",
"# !pip install -Uqq fastbook\n",
"# ! [ -e /content ] && pip install -Uqq fastai # upgrade fastai on colab\n",
"import fastbook\n",
"fastbook.setup_book()"
]

View File

@@ -7,7 +7,7 @@
"outputs": [],
"source": [
"#hide\n",
"!pip install -Uqq fastbook\n",
"! [ -e /content ] && pip install -Uqq fastai # upgrade fastai on colab\n",
"import fastbook\n",
"fastbook.setup_book()"
]

View File

@@ -7,7 +7,7 @@
"outputs": [],
"source": [
"#hide\n",
"!pip install -Uqq fastbook\n",
"! [ -e /content ] && pip install -Uqq fastai # upgrade fastai on colab\n",
"import fastbook\n",
"fastbook.setup_book()"
]

View File

@@ -7,7 +7,7 @@
"outputs": [],
"source": [
"#hide\n",
"!pip install -Uqq fastbook\n",
"! [ -e /content ] && pip install -Uqq fastai # upgrade fastai on colab\n",
"import fastbook\n",
"fastbook.setup_book()"
]

View File

@@ -7,7 +7,7 @@
"outputs": [],
"source": [
"#hide\n",
"!pip install -Uqq fastbook\n",
"! [ -e /content ] && pip install -Uqq fastai # upgrade fastai on colab\n",
"import fastbook\n",
"fastbook.setup_book()"
]
@@ -326,7 +326,7 @@
"source": [
"def binary_cross_entropy(inputs, targets):\n",
" inputs = inputs.sigmoid()\n",
" return -torch.where(targets==1, 1-inputs, inputs).log().mean()"
" return -torch.where(targets==1, inputs, 1-inputs).log().mean()"
]
},
{

View File

@@ -7,7 +7,7 @@
"outputs": [],
"source": [
"#hide\n",
"!pip install -Uqq fastbook\n",
"! [ -e /content ] && pip install -Uqq fastai # upgrade fastai on colab\n",
"import fastbook\n",
"fastbook.setup_book()"
]

View File

@@ -7,7 +7,7 @@
"outputs": [],
"source": [
"#hide\n",
"!pip install -Uqq fastbook\n",
"! [ -e /content ] && pip install -Uqq fastai # upgrade fastai on colab\n",
"import fastbook\n",
"fastbook.setup_book()"
]

View File

@@ -7,7 +7,7 @@
"outputs": [],
"source": [
"#hide\n",
"!pip install -Uqq fastbook kaggle waterfallcharts treeinterpreter dtreeviz\n",
"! [ -e /content ] && pip install -Uqq fastai # upgrade fastai on colab kaggle waterfallcharts treeinterpreter dtreeviz\n",
"import fastbook\n",
"fastbook.setup_book()"
]

View File

@@ -7,7 +7,7 @@
"outputs": [],
"source": [
"#hide\n",
"!pip install -Uqq fastbook\n",
"! [ -e /content ] && pip install -Uqq fastai # upgrade fastai on colab\n",
"import fastbook\n",
"fastbook.setup_book()"
]

View File

@@ -7,7 +7,7 @@
"outputs": [],
"source": [
"#hide\n",
"!pip install -Uqq fastbook\n",
"! [ -e /content ] && pip install -Uqq fastai # upgrade fastai on colab\n",
"import fastbook\n",
"fastbook.setup_book()"
]

View File

@@ -7,7 +7,7 @@
"outputs": [],
"source": [
"#hide\n",
"!pip install -Uqq fastbook\n",
"! [ -e /content ] && pip install -Uqq fastai # upgrade fastai on colab\n",
"import fastbook\n",
"fastbook.setup_book()"
]
@@ -770,7 +770,7 @@
"split_at_heading": true
},
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python 3",
"language": "python",
"name": "python3"
}

View File

@@ -7,7 +7,7 @@
"outputs": [],
"source": [
"#hide\n",
"!pip install -Uqq fastbook\n",
"! [ -e /content ] && pip install -Uqq fastai # upgrade fastai on colab\n",
"import fastbook\n",
"fastbook.setup_book()"
]

View File

@@ -7,7 +7,7 @@
"outputs": [],
"source": [
"#hide\n",
"!pip install -Uqq fastbook\n",
"! [ -e /content ] && pip install -Uqq fastai # upgrade fastai on colab\n",
"import fastbook\n",
"fastbook.setup_book()"
]

View File

@@ -7,7 +7,7 @@
"outputs": [],
"source": [
"#hide\n",
"!pip install -Uqq fastbook\n",
"! [ -e /content ] && pip install -Uqq fastai # upgrade fastai on colab\n",
"import fastbook\n",
"fastbook.setup_book()"
]

View File

@@ -7,7 +7,7 @@
"outputs": [],
"source": [
"#hide\n",
"!pip install -Uqq fastbook\n",
"! [ -e /content ] && pip install -Uqq fastai # upgrade fastai on colab\n",
"import fastbook\n",
"fastbook.setup_book()"
]

View File

@@ -7,7 +7,7 @@
"outputs": [],
"source": [
"#hide\n",
"!pip install -Uqq fastbook\n",
"! [ -e /content ] && pip install -Uqq fastai # upgrade fastai on colab\n",
"import fastbook\n",
"fastbook.setup_book()"
]

View File

@@ -7,7 +7,7 @@
"outputs": [],
"source": [
"#hide\n",
"!pip install -Uqq fastbook\n",
"! [ -e /content ] && pip install -Uqq fastai # upgrade fastai on colab\n",
"import fastbook\n",
"fastbook.setup_book()"
]

View File

@@ -7,7 +7,7 @@
"outputs": [],
"source": [
"#hide\n",
"!pip install -Uqq fastbook\n",
"! [ -e /content ] && pip install -Uqq fastai # upgrade fastai on colab\n",
"import fastbook\n",
"fastbook.setup_book()"
]

View File

@@ -7,7 +7,7 @@
"outputs": [],
"source": [
"#hide\n",
"!pip install -Uqq fastbook\n",
"! [ -e /content ] && pip install -Uqq fastai # upgrade fastai on colab\n",
"import fastbook\n",
"fastbook.setup_book()"
]

View File

@@ -7,7 +7,7 @@
"outputs": [],
"source": [
"#hide\n",
"!pip install -Uqq fastbook\n",
"! [ -e /content ] && pip install -Uqq fastai # upgrade fastai on colab\n",
"import fastbook\n",
"fastbook.setup_book()"
]