Skip to content

Commit a64c789

Browse files
committed
colab
1 parent 4a9a281 commit a64c789

43 files changed

Lines changed: 178 additions & 207 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

01_intro.ipynb

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"outputs": [],
88
"source": [
99
"#hide\n",
10-
"!pip install -Uqq fastbook\n",
10+
"! [ -e /content ] && pip install -Uqq fastai # upgrade fastai on colab\n",
1111
"import fastbook\n",
1212
"fastbook.setup_book()"
1313
]
@@ -2917,18 +2917,6 @@
29172917
"display_name": "Python 3 (ipykernel)",
29182918
"language": "python",
29192919
"name": "python3"
2920-
},
2921-
"language_info": {
2922-
"codemirror_mode": {
2923-
"name": "ipython",
2924-
"version": 3
2925-
},
2926-
"file_extension": ".py",
2927-
"mimetype": "text/x-python",
2928-
"name": "python",
2929-
"nbconvert_exporter": "python",
2930-
"pygments_lexer": "ipython3",
2931-
"version": "3.9.5"
29322920
}
29332921
},
29342922
"nbformat": 4,

02_production.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"outputs": [],
88
"source": [
99
"#hide\n",
10-
"# !pip install -Uqq fastbook\n",
10+
"# ! [ -e /content ] && pip install -Uqq fastai # upgrade fastai on colab\n",
1111
"import fastbook\n",
1212
"fastbook.setup_book()"
1313
]
@@ -2011,4 +2011,4 @@
20112011
},
20122012
"nbformat": 4,
20132013
"nbformat_minor": 4
2014-
}
2014+
}

03_ethics.ipynb

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"outputs": [],
88
"source": [
99
"#hide\n",
10-
"!pip install -Uqq fastbook\n",
10+
"! [ -e /content ] && pip install -Uqq fastai # upgrade fastai on colab\n",
1111
"import fastbook\n",
1212
"fastbook.setup_book()"
1313
]
@@ -1054,31 +1054,6 @@
10541054
"display_name": "Python 3",
10551055
"language": "python",
10561056
"name": "python3"
1057-
},
1058-
"language_info": {
1059-
"codemirror_mode": {
1060-
"name": "ipython",
1061-
"version": 3
1062-
},
1063-
"file_extension": ".py",
1064-
"mimetype": "text/x-python",
1065-
"name": "python",
1066-
"nbconvert_exporter": "python",
1067-
"pygments_lexer": "ipython3",
1068-
"version": "3.7.7"
1069-
},
1070-
"toc": {
1071-
"base_numbering": 1,
1072-
"nav_menu": {},
1073-
"number_sections": false,
1074-
"sideBar": true,
1075-
"skip_h1_title": true,
1076-
"title_cell": "Table of Contents",
1077-
"title_sidebar": "Contents",
1078-
"toc_cell": false,
1079-
"toc_position": {},
1080-
"toc_section_display": true,
1081-
"toc_window_display": false
10821057
}
10831058
},
10841059
"nbformat": 4,

04_mnist_basics.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"outputs": [],
88
"source": [
99
"#hide\n",
10-
"!pip install -Uqq fastbook\n",
10+
"! [ -e /content ] && pip install -Uqq fastai # upgrade fastai on colab\n",
1111
"import fastbook\n",
1212
"fastbook.setup_book()"
1313
]

05_pet_breeds.ipynb

Lines changed: 32 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 134,
5+
"execution_count": null,
66
"metadata": {},
77
"outputs": [],
88
"source": [
99
"#hide\n",
10-
"!pip install -Uqq fastbook\n",
10+
"! [ -e /content ] && pip install -Uqq fastai # upgrade fastai on colab\n",
1111
"import fastbook\n",
1212
"fastbook.setup_book()"
1313
]
1414
},
1515
{
1616
"cell_type": "code",
17-
"execution_count": 2,
17+
"execution_count": null,
1818
"metadata": {},
1919
"outputs": [],
2020
"source": [
@@ -816,7 +816,7 @@
816816
},
817817
{
818818
"cell_type": "code",
819-
"execution_count": 113,
819+
"execution_count": null,
820820
"metadata": {},
821821
"outputs": [],
822822
"source": [
@@ -826,7 +826,7 @@
826826
},
827827
{
828828
"cell_type": "code",
829-
"execution_count": 114,
829+
"execution_count": null,
830830
"metadata": {},
831831
"outputs": [
832832
{
@@ -840,7 +840,7 @@
840840
" [ 1.0698, 1.6187]])"
841841
]
842842
},
843-
"execution_count": 114,
843+
"execution_count": null,
844844
"metadata": {},
845845
"output_type": "execute_result"
846846
}
@@ -859,7 +859,7 @@
859859
},
860860
{
861861
"cell_type": "code",
862-
"execution_count": 115,
862+
"execution_count": null,
863863
"metadata": {},
864864
"outputs": [
865865
{
@@ -873,7 +873,7 @@
873873
" [0.7446, 0.8346]])"
874874
]
875875
},
876-
"execution_count": 115,
876+
"execution_count": null,
877877
"metadata": {},
878878
"output_type": "execute_result"
879879
}
@@ -895,7 +895,7 @@
895895
},
896896
{
897897
"cell_type": "code",
898-
"execution_count": 116,
898+
"execution_count": null,
899899
"metadata": {},
900900
"outputs": [
901901
{
@@ -904,7 +904,7 @@
904904
"tensor([0.6025, 0.5021, 0.1332, 0.9966, 0.5959, 0.3661])"
905905
]
906906
},
907-
"execution_count": 116,
907+
"execution_count": null,
908908
"metadata": {},
909909
"output_type": "execute_result"
910910
}
@@ -940,7 +940,7 @@
940940
},
941941
{
942942
"cell_type": "code",
943-
"execution_count": 117,
943+
"execution_count": null,
944944
"metadata": {},
945945
"outputs": [
946946
{
@@ -954,7 +954,7 @@
954954
" [0.3661, 0.6339]])"
955955
]
956956
},
957-
"execution_count": 117,
957+
"execution_count": null,
958958
"metadata": {},
959959
"output_type": "execute_result"
960960
}
@@ -1017,7 +1017,7 @@
10171017
},
10181018
{
10191019
"cell_type": "code",
1020-
"execution_count": 118,
1020+
"execution_count": null,
10211021
"metadata": {},
10221022
"outputs": [],
10231023
"source": [
@@ -1033,7 +1033,7 @@
10331033
},
10341034
{
10351035
"cell_type": "code",
1036-
"execution_count": 119,
1036+
"execution_count": null,
10371037
"metadata": {},
10381038
"outputs": [
10391039
{
@@ -1047,7 +1047,7 @@
10471047
" [0.3661, 0.6339]])"
10481048
]
10491049
},
1050-
"execution_count": 119,
1050+
"execution_count": null,
10511051
"metadata": {},
10521052
"output_type": "execute_result"
10531053
}
@@ -1065,7 +1065,7 @@
10651065
},
10661066
{
10671067
"cell_type": "code",
1068-
"execution_count": 120,
1068+
"execution_count": null,
10691069
"metadata": {},
10701070
"outputs": [
10711071
{
@@ -1074,7 +1074,7 @@
10741074
"tensor([0.6025, 0.4979, 0.1332, 0.0034, 0.4041, 0.3661])"
10751075
]
10761076
},
1077-
"execution_count": 120,
1077+
"execution_count": null,
10781078
"metadata": {},
10791079
"output_type": "execute_result"
10801080
}
@@ -1093,7 +1093,7 @@
10931093
},
10941094
{
10951095
"cell_type": "code",
1096-
"execution_count": 136,
1096+
"execution_count": null,
10971097
"metadata": {},
10981098
"outputs": [
10991099
{
@@ -1194,7 +1194,7 @@
11941194
},
11951195
{
11961196
"cell_type": "code",
1197-
"execution_count": 13,
1197+
"execution_count": null,
11981198
"metadata": {},
11991199
"outputs": [
12001200
{
@@ -1203,7 +1203,7 @@
12031203
"tensor([-0.6025, -0.4979, -0.1332, -0.0034, -0.4041, -0.3661])"
12041204
]
12051205
},
1206-
"execution_count": 13,
1206+
"execution_count": null,
12071207
"metadata": {},
12081208
"output_type": "execute_result"
12091209
}
@@ -1214,7 +1214,7 @@
12141214
},
12151215
{
12161216
"cell_type": "code",
1217-
"execution_count": 14,
1217+
"execution_count": null,
12181218
"metadata": {},
12191219
"outputs": [
12201220
{
@@ -1223,7 +1223,7 @@
12231223
"tensor([-0.6025, -0.4979, -0.1332, -0.0034, -0.4041, -0.3661])"
12241224
]
12251225
},
1226-
"execution_count": 14,
1226+
"execution_count": null,
12271227
"metadata": {},
12281228
"output_type": "execute_result"
12291229
}
@@ -1257,7 +1257,7 @@
12571257
},
12581258
{
12591259
"cell_type": "code",
1260-
"execution_count": 124,
1260+
"execution_count": null,
12611261
"metadata": {},
12621262
"outputs": [
12631263
{
@@ -1308,7 +1308,7 @@
13081308
},
13091309
{
13101310
"cell_type": "code",
1311-
"execution_count": 132,
1311+
"execution_count": null,
13121312
"metadata": {},
13131313
"outputs": [
13141314
{
@@ -1344,7 +1344,7 @@
13441344
},
13451345
{
13461346
"cell_type": "code",
1347-
"execution_count": 137,
1347+
"execution_count": null,
13481348
"metadata": {},
13491349
"outputs": [
13501350
{
@@ -1472,7 +1472,7 @@
14721472
},
14731473
{
14741474
"cell_type": "code",
1475-
"execution_count": 128,
1475+
"execution_count": null,
14761476
"metadata": {},
14771477
"outputs": [],
14781478
"source": [
@@ -1488,7 +1488,7 @@
14881488
},
14891489
{
14901490
"cell_type": "code",
1491-
"execution_count": 129,
1491+
"execution_count": null,
14921492
"metadata": {},
14931493
"outputs": [
14941494
{
@@ -1497,7 +1497,7 @@
14971497
"tensor(1.8045)"
14981498
]
14991499
},
1500-
"execution_count": 129,
1500+
"execution_count": null,
15011501
"metadata": {},
15021502
"output_type": "execute_result"
15031503
}
@@ -1515,7 +1515,7 @@
15151515
},
15161516
{
15171517
"cell_type": "code",
1518-
"execution_count": 130,
1518+
"execution_count": null,
15191519
"metadata": {},
15201520
"outputs": [
15211521
{
@@ -1524,7 +1524,7 @@
15241524
"tensor(1.8045)"
15251525
]
15261526
},
1527-
"execution_count": 130,
1527+
"execution_count": null,
15281528
"metadata": {},
15291529
"output_type": "execute_result"
15301530
}
@@ -1544,7 +1544,7 @@
15441544
},
15451545
{
15461546
"cell_type": "code",
1547-
"execution_count": 131,
1547+
"execution_count": null,
15481548
"metadata": {},
15491549
"outputs": [
15501550
{
@@ -1553,7 +1553,7 @@
15531553
"tensor([0.5067, 0.6973, 2.0160, 5.6958, 0.9062, 1.0048])"
15541554
]
15551555
},
1556-
"execution_count": 131,
1556+
"execution_count": null,
15571557
"metadata": {},
15581558
"output_type": "execute_result"
15591559
}
@@ -2726,18 +2726,6 @@
27262726
"display_name": "Python 3 (ipykernel)",
27272727
"language": "python",
27282728
"name": "python3"
2729-
},
2730-
"language_info": {
2731-
"codemirror_mode": {
2732-
"name": "ipython",
2733-
"version": 3
2734-
},
2735-
"file_extension": ".py",
2736-
"mimetype": "text/x-python",
2737-
"name": "python",
2738-
"nbconvert_exporter": "python",
2739-
"pygments_lexer": "ipython3",
2740-
"version": "3.9.7"
27412729
}
27422730
},
27432731
"nbformat": 4,

0 commit comments

Comments
 (0)