Skip to content

Commit 9bb4e85

Browse files
committed
添加了新的部分11.04-06,新的参考资料,添加了小部分内容
Former-commit-id: a8aef6b Former-commit-id: aecf763ed500068791c6ef717a80df7082689b11 [formerly b890c44a59d8139f7b7ac07a6ed9e92895b6ead9] [formerly 0389a0464d0fec70953ba428b2248a226b00536e [formerly 20c77c77003f0efe9c06d17fb28626ae46fbcf77]] [formerly d83c5bf8b79a628e7e90c0d04ec90843e1ccb3fd [formerly fc97437d2b135bca9b80d6bfeb5ca67183896b24] [formerly d1ba9f2d78079bdc372ea9432dbec1f65838d9a0 [formerly c221c43f4b8de1bfd20e9ab30b41c9908db38005]]] [formerly 017e739573df7e98dafe804e8e229333000b4c5e [formerly 4fb47603f649eeead5833b560773b29b21b739ec] [formerly 09f99a9f61668baae9ddfb7065b926231dd7bbce [formerly 015b8b2bdc6135c0be0c1873dd6e9e82d9181edd]] [formerly 2d69db058a77c47ccb911bd013868a68e99910ff [formerly c4bb0475ab35426b81b76c43c4c2dc0365b35147] [formerly 3c5cf6a51c564dddf4993d2a42e8e04bef428ab7 [formerly 9e440fb]]]] Former-commit-id: 26323ac95732acc6b8a50ae37e657daf94dab641 [formerly 3f3b67a6f9ed5045b08ed20249311fce48d832b1] [formerly a01edbe177af8ca27034342108e75d1eb52cb860 [formerly 06a51f08e5084758f7f9c07f6a99ca3a2abdea59]] [formerly 5c92ff318df581242d33873c2def48b343c7e3e6 [formerly f48eba62007e4e48efec964eca7b94451bc8426e] [formerly dba8289deb025490c9cfb9f23b2dbd1ec44ebd6e [formerly cb2e2ff8cfd9521a6b54afb6f5025f1e0225c315]]] Former-commit-id: 2ce9a18710f9521144945a7d3ea686700fdadff7 [formerly 0adcb5af2219b8f005a840377670590b2b2161be] [formerly 32e7600e0952c70fc6fb328b2617f9695113b8cc [formerly cc8d1ca956b7f47637ea7cdff0479069cc0efafd]] Former-commit-id: 8ca849160ce0fbe2a2a78f46059039d973341144 [formerly 5a104a10ee4c35a5829f67236c21d086d5f07b6e] Former-commit-id: ac34be9dab1d8da15e29eb8c4a5ea09b6c96ccc1
1 parent 08a9ae4 commit 9bb4e85

10 files changed

+174
-7
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
408400751b46252aee4fc9f68be9ca6f1b9aaa6f
1+
908deadf7d8612286c198732392e81432e4804b5
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5400b52566a54130b1ac589ca404c17aea6d70ea
1+
91753498fba9a2bc81946fd08695440aa8d4e9aa

09. theano/09.15 tensor module.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"# Theano 张量 tensor 模块 "
7+
"# Theano tensor 模块 "
88
]
99
},
1010
{

11. useful tools/11.04 glob.ipynb

Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"# glob 模块:文件模式匹配"
8+
]
9+
},
10+
{
11+
"cell_type": "code",
12+
"execution_count": 1,
13+
"metadata": {
14+
"collapsed": false
15+
},
16+
"outputs": [],
17+
"source": [
18+
"import glob"
19+
]
20+
},
21+
{
22+
"cell_type": "markdown",
23+
"metadata": {},
24+
"source": [
25+
"`glob` 模块提供了方便的文件模式匹配方法。\n",
26+
"\n",
27+
"例如,找到所有以 `.ipynb` 结尾的文件名:"
28+
]
29+
},
30+
{
31+
"cell_type": "code",
32+
"execution_count": 2,
33+
"metadata": {
34+
"collapsed": false
35+
},
36+
"outputs": [
37+
{
38+
"data": {
39+
"text/plain": [
40+
"['11.03 json.ipynb',\n",
41+
" '11.01 pprint.ipynb',\n",
42+
" '11.02 pickle and cpickle.ipynb',\n",
43+
" '11.04 glob.ipynb']"
44+
]
45+
},
46+
"execution_count": 2,
47+
"metadata": {},
48+
"output_type": "execute_result"
49+
}
50+
],
51+
"source": [
52+
"glob.glob(\"*.ipynb\")"
53+
]
54+
},
55+
{
56+
"cell_type": "markdown",
57+
"metadata": {},
58+
"source": [
59+
"`glob` 函数支持三种格式的语法:\n",
60+
"\n",
61+
"- `*` 匹配单个或多个字符\n",
62+
"- `?` 匹配任意单个字符\n",
63+
"- `[]` 匹配指定范围内的字符,如:[0-9]匹配数字。\n",
64+
"\n",
65+
"假设我们要匹配第 09 节所有的 `.ipynb` 文件:"
66+
]
67+
},
68+
{
69+
"cell_type": "code",
70+
"execution_count": 3,
71+
"metadata": {
72+
"collapsed": false
73+
},
74+
"outputs": [
75+
{
76+
"data": {
77+
"text/plain": [
78+
"['../09. theano/09.05 configuration settings and compiling modes.ipynb',\n",
79+
" '../09. theano/09.03 gpu on windows.ipynb',\n",
80+
" '../09. theano/09.07 loop with scan.ipynb',\n",
81+
" '../09. theano/09.13 modern net on mnist.ipynb',\n",
82+
" '../09. theano/09.11 net on mnist.ipynb',\n",
83+
" '../09. theano/09.09 logistic regression .ipynb',\n",
84+
" '../09. theano/09.10 softmax on mnist.ipynb',\n",
85+
" '../09. theano/09.01 introduction and installation.ipynb',\n",
86+
" '../09. theano/09.02 theano basics.ipynb',\n",
87+
" '../09. theano/09.12 random streams.ipynb',\n",
88+
" '../09. theano/09.04 graph structures.ipynb',\n",
89+
" '../09. theano/09.14 convolutional net on mnist.ipynb',\n",
90+
" '../09. theano/09.08 linear regression.ipynb',\n",
91+
" '../09. theano/09.15 tensor module.ipynb',\n",
92+
" '../09. theano/09.06 conditions in theano.ipynb']"
93+
]
94+
},
95+
"execution_count": 3,
96+
"metadata": {},
97+
"output_type": "execute_result"
98+
}
99+
],
100+
"source": [
101+
"glob.glob(\"../09*/*.ipynb\")"
102+
]
103+
},
104+
{
105+
"cell_type": "markdown",
106+
"metadata": {},
107+
"source": [
108+
"匹配数字开头的文件夹名:"
109+
]
110+
},
111+
{
112+
"cell_type": "code",
113+
"execution_count": 4,
114+
"metadata": {
115+
"collapsed": false
116+
},
117+
"outputs": [
118+
{
119+
"data": {
120+
"text/plain": [
121+
"['../04. scipy',\n",
122+
" '../02. python essentials',\n",
123+
" '../07. interfacing with other languages',\n",
124+
" '../11. useful tools',\n",
125+
" '../05. advanced python',\n",
126+
" '../10. something interesting',\n",
127+
" '../03. numpy',\n",
128+
" '../06. matplotlib',\n",
129+
" '../08. object-oriented programming',\n",
130+
" '../01. python tools',\n",
131+
" '../09. theano']"
132+
]
133+
},
134+
"execution_count": 4,
135+
"metadata": {},
136+
"output_type": "execute_result"
137+
}
138+
],
139+
"source": [
140+
"glob.glob(\"../[0-9]*\")"
141+
]
142+
}
143+
],
144+
"metadata": {
145+
"kernelspec": {
146+
"display_name": "Python 2",
147+
"language": "python",
148+
"name": "python2"
149+
},
150+
"language_info": {
151+
"codemirror_mode": {
152+
"name": "ipython",
153+
"version": 2
154+
},
155+
"file_extension": ".py",
156+
"mimetype": "text/x-python",
157+
"name": "python",
158+
"nbconvert_exporter": "python",
159+
"pygments_lexer": "ipython2",
160+
"version": "2.7.6"
161+
}
162+
},
163+
"nbformat": 4,
164+
"nbformat_minor": 0
165+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3d78c6a5f15ad683fd6c74054aaa63b035a4e0de
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2a4244b255c657138a5ba9021e58872c5d780ec6

README.md.REMOVED.git-id

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8c8aa4468970c5e549cbc22a24585ceea830212f
1+
eb6dc17eb588f5f4f9f4987a17aa897af89887f8

generate index.ipynb.REMOVED.git-id

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3f674cfeac27bb31b83766eb6f544f9a94d1e024
1+
373f07ef4fddeea3b86ccdcde2be27b3e335b7a0

index.ipynb.REMOVED.git-id

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e89e21a13ba8b979f3656ba8cbe1d3b35ceeff11
1+
dd0d8f09f08502f881e4f2534838545ea5687246

index.md.REMOVED.git-id

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1892b211c9632f0fbbde03280f22f1824abbf479
1+
930fffdc7091b8399b7a96020e1a1594a5029289

0 commit comments

Comments
 (0)