This repository has been archived by the owner on Jan 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update notebooks deep leanring + classical learning
- Loading branch information
Showing
8 changed files
with
1,707 additions
and
38 deletions.
There are no files selected for viewing
1,192 changes: 1,167 additions & 25 deletions
1,192
_doc/notebooks/td2a_ml/ml_c_machine_learning_problems.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,244 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"# Deep learning" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": { | ||
"collapsed": false | ||
}, | ||
"outputs": [ | ||
{ | ||
"data": { | ||
"text/html": [ | ||
"<div id=\"my_id_menu_nb\">run previous cell, wait for 2 seconds</div>\n", | ||
"<script>\n", | ||
"function repeat_indent_string(n){\n", | ||
" var a = \"\" ;\n", | ||
" for ( ; n > 0 ; --n) {\n", | ||
" a += \" \";\n", | ||
" }\n", | ||
" return a;\n", | ||
"}\n", | ||
"var update_menu_string = function(begin, lfirst, llast, sformat, send, keep_item) {\n", | ||
" var anchors = document.getElementsByClassName(\"section\");\n", | ||
" if (anchors.length == 0) {\n", | ||
" anchors = document.getElementsByClassName(\"text_cell_render rendered_html\");\n", | ||
" }\n", | ||
" var i,t;\n", | ||
" var text_menu = begin;\n", | ||
" var text_memo = \"<pre>\\nlength:\" + anchors.length + \"\\n\";\n", | ||
" var ind = \"\";\n", | ||
" var memo_level = 1;\n", | ||
" var href;\n", | ||
" var tags = [];\n", | ||
" var main_item = 0;\n", | ||
" for (i = 0; i <= llast; i++) {\n", | ||
" tags.push(\"h\" + i);\n", | ||
" }\n", | ||
"\n", | ||
" for (i = 0; i < anchors.length; i++) {\n", | ||
" text_memo += \"**\" + anchors[i].id + \"--\\n\";\n", | ||
"\n", | ||
" var child = null;\n", | ||
" for(t = 0; t < tags.length; t++) {\n", | ||
" var r = anchors[i].getElementsByTagName(tags[t]);\n", | ||
" if (r.length > 0) {\n", | ||
"child = r[0];\n", | ||
"break;\n", | ||
" }\n", | ||
" }\n", | ||
" if (child == null){\n", | ||
" text_memo += \"null\\n\";\n", | ||
" continue;\n", | ||
" }\n", | ||
" if (anchors[i].hasAttribute(\"id\")) {\n", | ||
" // when converted in RST\n", | ||
" href = anchors[i].id;\n", | ||
" text_memo += \"#1-\" + href;\n", | ||
" // passer \u00e0 child suivant (le chercher)\n", | ||
" }\n", | ||
" else if (child.hasAttribute(\"id\")) {\n", | ||
" // in a notebook\n", | ||
" href = child.id;\n", | ||
" text_memo += \"#2-\" + href;\n", | ||
" }\n", | ||
" else {\n", | ||
" text_memo += \"#3-\" + \"*\" + \"\\n\";\n", | ||
" continue;\n", | ||
" }\n", | ||
" var title = child.textContent;\n", | ||
" var level = parseInt(child.tagName.substring(1,2));\n", | ||
"\n", | ||
" text_memo += \"--\" + level + \"?\" + lfirst + \"--\" + title + \"\\n\";\n", | ||
"\n", | ||
" if ((level < lfirst) || (level > llast)) {\n", | ||
" continue ;\n", | ||
" }\n", | ||
" if (title.endsWith('\u00b6')) {\n", | ||
" title = title.substring(0,title.length-1).replace(\"<\", \"<\").replace(\">\", \">\").replace(\"&\", \"&\")\n", | ||
" }\n", | ||
"\n", | ||
" if (title.length == 0) {\n", | ||
" continue;\n", | ||
" }\n", | ||
"\n", | ||
" while (level < memo_level) {\n", | ||
" text_menu += \"</ul>\\n\";\n", | ||
" memo_level -= 1;\n", | ||
" }\n", | ||
" if (level == lfirst) {\n", | ||
" main_item += 1;\n", | ||
" }\n", | ||
" if (keep_item != -1 && main_item != keep_item + 1) {\n", | ||
" // alert(main_item + \" - \" + level + \" - \" + keep_item);\n", | ||
" continue;\n", | ||
" }\n", | ||
" while (level > memo_level) {\n", | ||
" text_menu += \"<ul>\\n\";\n", | ||
" memo_level += 1;\n", | ||
" }\n", | ||
" text_menu += repeat_indent_string(level-2) + sformat.replace(\"__HREF__\", href).replace(\"__TITLE__\", title);\n", | ||
" }\n", | ||
" while (1 < memo_level) {\n", | ||
" text_menu += \"</ul>\\n\";\n", | ||
" memo_level -= 1;\n", | ||
" }\n", | ||
" text_menu += send;\n", | ||
" //text_menu += \"\\n\" + text_memo;\n", | ||
" return text_menu;\n", | ||
"};\n", | ||
"var update_menu = function() {\n", | ||
" var sbegin = \"\";\n", | ||
" var sformat = '<li><a href=\"#__HREF__\">__TITLE__</a></li>';\n", | ||
" var send = \"\";\n", | ||
" var keep_item = -1;\n", | ||
" var text_menu = update_menu_string(sbegin, 2, 4, sformat, send, keep_item);\n", | ||
" var menu = document.getElementById(\"my_id_menu_nb\");\n", | ||
" menu.innerHTML=text_menu;\n", | ||
"};\n", | ||
"window.setTimeout(update_menu,2000);\n", | ||
" </script>" | ||
], | ||
"text/plain": [ | ||
"<IPython.core.display.HTML object>" | ||
] | ||
}, | ||
"execution_count": null, | ||
"metadata": {}, | ||
"output_type": "execute_result" | ||
} | ||
], | ||
"source": [ | ||
"from jyquickhelper import add_notebook_menu\n", | ||
"add_notebook_menu()" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": { | ||
"collapsed": false | ||
}, | ||
"outputs": [], | ||
"source": [ | ||
"%matplotlib inline" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": { | ||
"collapsed": true | ||
}, | ||
"source": [ | ||
"## MNIST" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": { | ||
"collapsed": true | ||
}, | ||
"outputs": [], | ||
"source": [] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"## Architectures" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": { | ||
"collapsed": true | ||
}, | ||
"outputs": [], | ||
"source": [] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"## Librairies" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": { | ||
"collapsed": true | ||
}, | ||
"outputs": [], | ||
"source": [] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"## Transfert learning\n", | ||
"\n", | ||
"mod\u00e8les d\u00e9j\u00e0 appris" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": { | ||
"collapsed": true | ||
}, | ||
"outputs": [], | ||
"source": [] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "Python 3", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.5.0" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 1 | ||
} |
Oops, something went wrong.