various fixes
This commit is contained in:
parent
0724359846
commit
ca6aa31d92
@ -22,7 +22,7 @@
|
|||||||
"\n",
|
"\n",
|
||||||
"## On Synchronising repositories\n",
|
"## On Synchronising repositories\n",
|
||||||
"\n",
|
"\n",
|
||||||
"Enter the git mlp repository you set up last week (i.e. `~/mlpractical/repo-mlp`) and once you sync the repository (in one of the two below ways), start the notebook session by typing:\n",
|
"Enter the git mlp repository you set up last week (i.e. `~/mlpractical/repo-mlp`) and once you sync the repository (in one of the two below ways, or look at our short Git FAQ <a href=\"https://github.com/CSTR-Edinburgh/mlpractical/blob/master/gitFAQ.md\">here</a>), start the notebook session by typing:\n",
|
||||||
"\n",
|
"\n",
|
||||||
"```\n",
|
"```\n",
|
||||||
"ipython notebook\n",
|
"ipython notebook\n",
|
||||||
@ -35,7 +35,9 @@
|
|||||||
"1. `git stash save \"Lab1 work\"`\n",
|
"1. `git stash save \"Lab1 work\"`\n",
|
||||||
"2. `git pull`\n",
|
"2. `git pull`\n",
|
||||||
"\n",
|
"\n",
|
||||||
"Then, if you need to, you can always (temporaily) restore a desired state of the repository.\n",
|
"Then, if you need to, you can always (temporaily) restore a desired state of the repository (look <a href=\"https://github.com/CSTR-Edinburgh/mlpractical/blob/master/gitFAQ.md\">here</a>).\n",
|
||||||
|
"\n",
|
||||||
|
"**Otherwise** you may also create a branch for each lab separately (again, look at <a href=\"https://github.com/CSTR-Edinburgh/mlpractical/blob/master/gitFAQ.md\">here</a> and git tutorials we linked there), this will allow you to keep `master` branch clean, and pull changes into it every week from the central repository. At the same time branching gives you much more flexibility with changes you introduce to the code as potential conflicts will not occur until you try to make an explicit merge (which you probably .\n",
|
||||||
"\n",
|
"\n",
|
||||||
"### For advanced github users\n",
|
"### For advanced github users\n",
|
||||||
"\n",
|
"\n",
|
||||||
@ -93,7 +95,7 @@
|
|||||||
"w_{21} & w_{22} & w_{23} \\\\\n",
|
"w_{21} & w_{22} & w_{23} \\\\\n",
|
||||||
"w_{31} & w_{32} & w_{33} \\\\\n",
|
"w_{31} & w_{32} & w_{33} \\\\\n",
|
||||||
"w_{41} & w_{42} & w_{43} \\\\\n",
|
"w_{41} & w_{42} & w_{43} \\\\\n",
|
||||||
"w_{51} & w_{52} & w_{53} \\\\ \\end{array} \\right]$ (note, this picture was taken from the lecture slides and presents a transposed variant), bias vector $\\mathbf{b} = (b_1, b_2, b_3)$ and outputs $\\mathbf{y} = (y_1, y_2, y_3)$, one can write the transformation as follows:\n",
|
"w_{51} & w_{52} & w_{53} \\\\ \\end{array} \\right]$, bias vector $\\mathbf{b} = (b_1, b_2, b_3)$ and outputs $\\mathbf{y} = (y_1, y_2, y_3)$, one can write the transformation as follows:\n",
|
||||||
"\n",
|
"\n",
|
||||||
"(for the $i$-th output)\n",
|
"(for the $i$-th output)\n",
|
||||||
"\n",
|
"\n",
|
||||||
@ -103,7 +105,7 @@
|
|||||||
"\\end{equation}\n",
|
"\\end{equation}\n",
|
||||||
"$\n",
|
"$\n",
|
||||||
"\n",
|
"\n",
|
||||||
"or the equivalent vector form (where $\\mathbf w_i$ is the $i$-th column of $\\mathbf W$, but note, when we **slice** the $i$th column we will get a **vector** $\\mathbf w_i = (w_{1i}, w_{2i}, w_{3i}, w_{4i}, w_{5i})$, hence the transpose of $\\mathbf w_i$ in the below equation):\n",
|
"or the equivalent vector form (where $\\mathbf w_i$ is the $i$-th column of $\\mathbf W$, but note, when we **slice** the $i$th column we will get a **vector** $\\mathbf w_i = (w_{1i}, w_{2i}, w_{3i}, w_{4i}, w_{5i})$, hence the transpose for $\\mathbf w_i$ in the below equation):\n",
|
||||||
"\n",
|
"\n",
|
||||||
"(2) $\n",
|
"(2) $\n",
|
||||||
"\\begin{equation}\n",
|
"\\begin{equation}\n",
|
||||||
@ -490,7 +492,7 @@
|
|||||||
"source": [
|
"source": [
|
||||||
"from mlp.dataset import MetOfficeDataProvider\n",
|
"from mlp.dataset import MetOfficeDataProvider\n",
|
||||||
"\n",
|
"\n",
|
||||||
"modp = MetOfficeDataProvider(10, batch_size=10, max_num_batches=3, randomize=False)\n",
|
"modp = MetOfficeDataProvider(10, batch_size=10, max_num_batches=2, randomize=False)\n",
|
||||||
"\n",
|
"\n",
|
||||||
"%precision 2\n",
|
"%precision 2\n",
|
||||||
"for x, t in modp:\n",
|
"for x, t in modp:\n",
|
||||||
@ -668,7 +670,7 @@
|
|||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython2",
|
"pygments_lexer": "ipython2",
|
||||||
"version": "2.7.10"
|
"version": "2.7.9"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
|
Loading…
Reference in New Issue
Block a user