Merge pull request #19 from kungfujam/master

Avoid risk of running example code
This commit is contained in:
Pawel Swietojanski 2015-10-21 12:21:51 +01:00
commit 3dac012e17

View File

@ -72,15 +72,14 @@
]
},
{
"cell_type": "code",
"execution_count": null,
"cell_type": "markdown",
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"Example code for the above\n",
"```python\n",
"# %load -s Linear mlp/layers.py\n",
"# DO NOT RUN THIS CELL (AS YOU WILL GET ERRORS), IT WAS JUST LOADED TO VISUALISE ABOVE COMMENTS\n",
"class Linear(Layer):\n",
"\n",
" def __init__(self, idim, odim,\n",
@ -193,7 +192,8 @@
" self.b = params[1]\n",
"\n",
" def get_name(self):\n",
" return 'linear'\n"
" return 'linear'\n",
"```"
]
},
{
@ -295,7 +295,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.9"
"version": "2.7.10"
}
},
"nbformat": 4,