Skip to content

Commit

Permalink
Added index
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhw committed May 13, 2017
1 parent 2aad839 commit ac4f3c2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 118 deletions.
11 changes: 10 additions & 1 deletion index.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,23 @@
" * [Gesture recogntion notes](ml/gesture_recognition.pdf)\n",
" * [Simple Classification](ml/simple_classification.ipynb)\n",
" * [Feature Visualization](ml/feature_visualization.ipynb)\n",
" * [Hyperparamer tuning](ml/cv_hyperparmeter_tuning.ipynb)\n",
" * [Hyperparamer tuning](ml/cv_hyperparameter_tuning.ipynb)\n",
"* [Robust motion-based interfaces using probabilistic state tracking](probabilisticfiltering/probabilisticfiltering.ipynb)\n",
"* [Probabilistic decoding for intelligent text entry](statisticaldecoding/statisticaldecoding.ipynb)\n",
"\n",
"----\n",
"\n",
"**New to Jupyter? [Quickstart tutorial](jupyterbasics/JupyterBasics.ipynb).**"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
129 changes: 12 additions & 117 deletions optimization/layout_optimization.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": null,
"metadata": {
"collapsed": false,
"nbpresent": {
Expand Down Expand Up @@ -352,35 +352,14 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": null,
"metadata": {
"collapsed": false,
"nbpresent": {
"id": "3531538e-a779-418b-ae61-52e8a807d11a"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Objective value (expected selection time): 1.96\n"
]
},
{
"data": {
"image/svg+xml": [
"<svg height=\"685\" version=\"1.1\" width=\"115\" xmlns=\"http://www.w3.org/2000/svg\"><polygon fill=\"white\" points=\"0,0 110,0 110,680 0,680\" stroke=\"black\"/><polygon fill=\"white\" points=\"5,5 105,5 105,75 5,75\" stroke=\"black\"/><polygon fill=\"white\" points=\"5,80 105,80 105,150 5,150\" stroke=\"black\"/><polygon fill=\"white\" points=\"5,155 105,155 105,225 5,225\" stroke=\"black\"/><polygon fill=\"white\" points=\"5,230 105,230 105,300 5,300\" stroke=\"black\"/><polygon fill=\"white\" points=\"5,305 105,305 105,375 5,375\" stroke=\"black\"/><polygon fill=\"white\" points=\"5,380 105,380 105,450 5,450\" stroke=\"black\"/><polygon fill=\"white\" points=\"5,455 105,455 105,525 5,525\" stroke=\"black\"/><polygon fill=\"white\" points=\"5,530 105,530 105,600 5,600\" stroke=\"black\"/><polygon fill=\"white\" points=\"5,605 105,605 105,675 5,675\" stroke=\"black\"/><text font-size=\"25\" x=\"55\" y=\"46\"/><text font-size=\"25\" x=\"23\" y=\"51\">Quit</text><text font-size=\"25\" x=\"20\" y=\"126\">About</text><text font-size=\"25\" x=\"18\" y=\"201\">Delete</text><text font-size=\"25\" x=\"23\" y=\"276\">Save</text><text font-size=\"25\" x=\"23\" y=\"351\">Open</text><text font-size=\"25\" x=\"18\" y=\"426\">Insert</text><text font-size=\"25\" x=\"23\" y=\"501\">Edit</text><text font-size=\"25\" x=\"20\" y=\"576\">Close</text><text font-size=\"25\" x=\"23\" y=\"651\">Help</text></svg>"
],
"text/plain": [
"<IPython.core.display.SVG object>"
]
},
"execution_count": 15,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"# We also need to define the particular task we want to solve, \n",
"# including definition of elements and their 'importance'\n",
Expand Down Expand Up @@ -540,32 +519,11 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Objective value: 3.23601459504\n"
]
},
{
"data": {
"image/svg+xml": [
"<svg height=\"180\" version=\"1.1\" width=\"680\" xmlns=\"http://www.w3.org/2000/svg\"><polygon fill=\"white\" points=\"0,0 670,0 670,170 0,170\" stroke=\"black\"/><polygon fill=\"white\" points=\"10,10 110,10 110,80 10,80\" stroke=\"black\"/><polygon fill=\"steelblue\" points=\"120,10 220,10 220,80 120,80\" stroke=\"black\"/><polygon fill=\"white\" points=\"230,10 330,10 330,80 230,80\" stroke=\"black\"/><polygon fill=\"white\" points=\"340,10 440,10 440,80 340,80\" stroke=\"black\"/><polygon fill=\"dimgrey\" points=\"450,10 550,10 550,80 450,80\" stroke=\"black\"/><polygon fill=\"dimgrey\" points=\"560,10 660,10 660,80 560,80\" stroke=\"black\"/><polygon fill=\"white\" points=\"10,90 110,90 110,160 10,160\" stroke=\"black\"/><polygon fill=\"steelblue\" points=\"120,90 220,90 220,160 120,160\" stroke=\"black\"/><polygon fill=\"steelblue\" points=\"230,90 330,90 330,160 230,160\" stroke=\"black\"/><polygon fill=\"steelblue\" points=\"340,90 440,90 440,160 340,160\" stroke=\"black\"/><polygon fill=\"white\" points=\"450,90 550,90 550,160 450,160\" stroke=\"black\"/><polygon fill=\"white\" points=\"560,90 660,90 660,160 560,160\" stroke=\"black\"/><text font-size=\"25\" x=\"335\" y=\"46\"/><text font-size=\"25\" x=\"28\" y=\"56\">Mail</text><text font-size=\"25\" x=\"141\" y=\"56\">Ppl</text><text font-size=\"25\" x=\"248\" y=\"56\">News</text><text font-size=\"25\" x=\"355\" y=\"56\">Sites</text><text font-size=\"25\" x=\"471\" y=\"56\">PPT</text><text font-size=\"25\" x=\"578\" y=\"56\">Word</text><text font-size=\"25\" x=\"25\" y=\"136\">Drive</text><text font-size=\"25\" x=\"141\" y=\"136\">Cal</text><text font-size=\"25\" x=\"245\" y=\"136\">Tasks</text><text font-size=\"25\" x=\"355\" y=\"136\">Notes</text><text font-size=\"25\" x=\"465\" y=\"136\">Excel</text><text font-size=\"25\" x=\"575\" y=\"136\">Admin</text></svg>"
],
"text/plain": [
"<IPython.core.display.SVG object>"
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"# A new objective function that considers two objectives: selection time and incoherence\n",
"def ST_and_I (layout, columns, o_inputs):\n",
Expand Down Expand Up @@ -619,32 +577,11 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Objective value: 3.06807181685\n"
]
},
{
"data": {
"image/svg+xml": [
"<svg height=\"180\" version=\"1.1\" width=\"680\" xmlns=\"http://www.w3.org/2000/svg\"><polygon fill=\"white\" points=\"0,0 670,0 670,170 0,170\" stroke=\"black\"/><polygon fill=\"white\" points=\"10,10 110,10 110,80 10,80\" stroke=\"black\"/><polygon fill=\"steelblue\" points=\"120,10 220,10 220,80 120,80\" stroke=\"black\"/><polygon fill=\"steelblue\" points=\"230,10 330,10 330,80 230,80\" stroke=\"black\"/><polygon fill=\"steelblue\" points=\"340,10 440,10 440,80 340,80\" stroke=\"black\"/><polygon fill=\"white\" points=\"450,10 550,10 550,80 450,80\" stroke=\"black\"/><polygon fill=\"white\" points=\"560,10 660,10 660,80 560,80\" stroke=\"black\"/><polygon fill=\"dimgrey\" points=\"10,90 110,90 110,160 10,160\" stroke=\"black\"/><polygon fill=\"dimgrey\" points=\"120,90 220,90 220,160 120,160\" stroke=\"black\"/><polygon fill=\"dimgrey\" points=\"230,90 330,90 330,160 230,160\" stroke=\"black\"/><polygon fill=\"lavender\" points=\"340,90 440,90 440,160 340,160\" stroke=\"black\"/><polygon fill=\"lavender\" points=\"450,90 550,90 550,160 450,160\" stroke=\"black\"/><polygon fill=\"white\" points=\"560,90 660,90 660,160 560,160\" stroke=\"black\"/><text font-size=\"25\" x=\"335\" y=\"46\"/><text font-size=\"25\" x=\"28\" y=\"56\">News</text><text font-size=\"25\" x=\"138\" y=\"56\">Mail</text><text font-size=\"25\" x=\"251\" y=\"56\">Cal</text><text font-size=\"25\" x=\"361\" y=\"56\">Ppl</text><text font-size=\"25\" x=\"465\" y=\"56\">Drive</text><text font-size=\"25\" x=\"575\" y=\"56\">Admin</text><text font-size=\"25\" x=\"31\" y=\"136\">PPT</text><text font-size=\"25\" x=\"138\" y=\"136\">Word</text><text font-size=\"25\" x=\"245\" y=\"136\">Excel</text><text font-size=\"25\" x=\"355\" y=\"136\">Tasks</text><text font-size=\"25\" x=\"465\" y=\"136\">Notes</text><text font-size=\"25\" x=\"575\" y=\"136\">Sites</text></svg>"
],
"text/plain": [
"<IPython.core.display.SVG object>"
]
},
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"# Swaps two random elements of a layout n times \n",
"def swap(layout, n=1):\n",
Expand Down Expand Up @@ -707,33 +644,12 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": null,
"metadata": {
"collapsed": false,
"scrolled": true
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Objective value: 2.61915666582\n"
]
},
{
"data": {
"image/svg+xml": [
"<svg height=\"280\" version=\"1.1\" width=\"200\" xmlns=\"http://www.w3.org/2000/svg\"><polygon fill=\"white\" points=\"0,0 200,0 200,280 0,280\" stroke=\"black\"/><polygon fill=\"steelblue\" points=\"0,0 100,0 100,70 0,70\" stroke=\"black\"/><polygon fill=\"steelblue\" points=\"100,0 200,0 200,70 100,70\" stroke=\"black\"/><polygon fill=\"dimgrey\" points=\"0,70 100,70 100,140 0,140\" stroke=\"black\"/><polygon fill=\"dimgrey\" points=\"100,70 200,70 200,140 100,140\" stroke=\"black\"/><polygon fill=\"lavender\" points=\"0,140 100,140 100,210 0,210\" stroke=\"black\"/><polygon fill=\"lavender\" points=\"100,140 200,140 200,210 100,210\" stroke=\"black\"/><polygon fill=\"lightblue\" points=\"0,210 100,210 100,280 0,280\" stroke=\"black\"/><polygon fill=\"lightblue\" points=\"100,210 200,210 200,280 100,280\" stroke=\"black\"/><text font-size=\"25\" x=\"100\" y=\"46\"/><text font-size=\"25\" x=\"15\" y=\"46\">LName</text><text font-size=\"25\" x=\"115\" y=\"46\">EName</text><text font-size=\"25\" x=\"18\" y=\"116\">LPWD</text><text font-size=\"25\" x=\"118\" y=\"116\">EPWD</text><text font-size=\"25\" x=\"18\" y=\"186\">LDom</text><text font-size=\"25\" x=\"118\" y=\"186\">EDom</text><text font-size=\"25\" x=\"26\" y=\"256\">OK</text><text font-size=\"25\" x=\"113\" y=\"256\">Cancel</text></svg>"
],
"text/plain": [
"<IPython.core.display.SVG object>"
]
},
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"seed_layout = ['LName','EName','LPWD','EPWD','LDom','EDom','OK','Cancel']\n",
"e_weights = {'LName':0.6,'EName':0.5,'LPWD':0.3,'EPWD':0.2,'LDom':0.1,'EDom':0.05,'OK':0.03,'Cancel':0.02}\n",
Expand Down Expand Up @@ -783,32 +699,11 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"16.854260137\n"
]
},
{
"data": {
"image/svg+xml": [
"<svg height=\"420\" version=\"1.1\" width=\"600\" xmlns=\"http://www.w3.org/2000/svg\"><polygon fill=\"white\" points=\"0,0 600,0 600,420 0,420\" stroke=\"black\"/><polygon fill=\"white\" points=\"0,0 100,0 100,70 0,70\" stroke=\"black\"/><polygon fill=\"white\" points=\"100,0 200,0 200,70 100,70\" stroke=\"black\"/><polygon fill=\"white\" points=\"200,0 300,0 300,70 200,70\" stroke=\"black\"/><polygon fill=\"white\" points=\"300,0 400,0 400,70 300,70\" stroke=\"black\"/><polygon fill=\"white\" points=\"400,0 500,0 500,70 400,70\" stroke=\"black\"/><polygon fill=\"white\" points=\"500,0 600,0 600,70 500,70\" stroke=\"black\"/><polygon fill=\"white\" points=\"0,70 100,70 100,140 0,140\" stroke=\"black\"/><polygon fill=\"steelblue\" points=\"100,70 200,70 200,140 100,140\" stroke=\"black\"/><polygon fill=\"white\" points=\"200,70 300,70 300,140 200,140\" stroke=\"black\"/><polygon fill=\"white\" points=\"300,70 400,70 400,140 300,140\" stroke=\"black\"/><polygon fill=\"white\" points=\"400,70 500,70 500,140 400,140\" stroke=\"black\"/><polygon fill=\"white\" points=\"500,70 600,70 600,140 500,140\" stroke=\"black\"/><polygon fill=\"dimgrey\" points=\"0,140 100,140 100,210 0,210\" stroke=\"black\"/><polygon fill=\"steelblue\" points=\"100,140 200,140 200,210 100,210\" stroke=\"black\"/><polygon fill=\"white\" points=\"200,140 300,140 300,210 200,210\" stroke=\"black\"/><polygon fill=\"white\" points=\"300,140 400,140 400,210 300,210\" stroke=\"black\"/><polygon fill=\"white\" points=\"400,140 500,140 500,210 400,210\" stroke=\"black\"/><polygon fill=\"white\" points=\"500,140 600,140 600,210 500,210\" stroke=\"black\"/><polygon fill=\"dimgrey\" points=\"0,210 100,210 100,280 0,280\" stroke=\"black\"/><polygon fill=\"white\" points=\"100,210 200,210 200,280 100,280\" stroke=\"black\"/><polygon fill=\"white\" points=\"200,210 300,210 300,280 200,280\" stroke=\"black\"/><polygon fill=\"white\" points=\"300,210 400,210 400,280 300,280\" stroke=\"black\"/><polygon fill=\"white\" points=\"400,210 500,210 500,280 400,280\" stroke=\"black\"/><polygon fill=\"white\" points=\"500,210 600,210 600,280 500,280\" stroke=\"black\"/><polygon fill=\"white\" points=\"0,280 100,280 100,350 0,350\" stroke=\"black\"/><polygon fill=\"white\" points=\"100,280 200,280 200,350 100,350\" stroke=\"black\"/><polygon fill=\"white\" points=\"200,280 300,280 300,350 200,350\" stroke=\"black\"/><polygon fill=\"white\" points=\"300,280 400,280 400,350 300,350\" stroke=\"black\"/><polygon fill=\"white\" points=\"400,280 500,280 500,350 400,350\" stroke=\"black\"/><polygon fill=\"white\" points=\"500,280 600,280 600,350 500,350\" stroke=\"black\"/><polygon fill=\"white\" points=\"0,350 100,350 100,420 0,420\" stroke=\"black\"/><polygon fill=\"white\" points=\"100,350 200,350 200,420 100,420\" stroke=\"black\"/><polygon fill=\"white\" points=\"200,350 300,350 300,420 200,420\" stroke=\"black\"/><polygon fill=\"white\" points=\"300,350 400,350 400,420 300,420\" stroke=\"black\"/><polygon fill=\"white\" points=\"400,350 500,350 500,420 400,420\" stroke=\"black\"/><polygon fill=\"white\" points=\"500,350 600,350 600,420 500,420\" stroke=\"black\"/><text font-size=\"25\" x=\"300\" y=\"46\"/><text font-size=\"25\" x=\"26\" y=\"46\">H6</text><text font-size=\"25\" x=\"126\" y=\"46\">H1</text><text font-size=\"25\" x=\"221\" y=\"46\">C13</text><text font-size=\"25\" x=\"326\" y=\"46\">H5</text><text font-size=\"25\" x=\"426\" y=\"46\">L2</text><text font-size=\"25\" x=\"526\" y=\"46\">H3</text><text font-size=\"25\" x=\"18\" y=\"116\">MHom</text><text font-size=\"25\" x=\"118\" y=\"116\">MExh</text><text font-size=\"25\" x=\"221\" y=\"116\">C12</text><text font-size=\"25\" x=\"326\" y=\"116\">L1</text><text font-size=\"25\" x=\"426\" y=\"116\">C1</text><text font-size=\"25\" x=\"521\" y=\"116\">C18</text><text font-size=\"25\" x=\"15\" y=\"186\">MProg</text><text font-size=\"25\" x=\"118\" y=\"186\">MOrg</text><text font-size=\"25\" x=\"226\" y=\"186\">C2</text><text font-size=\"25\" x=\"326\" y=\"186\">C9</text><text font-size=\"25\" x=\"426\" y=\"186\">C3</text><text font-size=\"25\" x=\"526\" y=\"186\">C5</text><text font-size=\"25\" x=\"15\" y=\"256\">MAuth</text><text font-size=\"25\" x=\"121\" y=\"256\">C14</text><text font-size=\"25\" x=\"221\" y=\"256\">C17</text><text font-size=\"25\" x=\"326\" y=\"256\">L4</text><text font-size=\"25\" x=\"421\" y=\"256\">C16</text><text font-size=\"25\" x=\"515\" y=\"256\">MSpon</text><text font-size=\"25\" x=\"21\" y=\"326\">C15</text><text font-size=\"25\" x=\"126\" y=\"326\">C6</text><text font-size=\"25\" x=\"221\" y=\"326\">C19</text><text font-size=\"25\" x=\"321\" y=\"326\">C20</text><text font-size=\"25\" x=\"426\" y=\"326\">C7</text><text font-size=\"25\" x=\"521\" y=\"326\">C10</text><text font-size=\"25\" x=\"26\" y=\"396\">C8</text><text font-size=\"25\" x=\"126\" y=\"396\">H4</text><text font-size=\"25\" x=\"226\" y=\"396\">H2</text><text font-size=\"25\" x=\"326\" y=\"396\">C4</text><text font-size=\"25\" x=\"421\" y=\"396\">C11</text><text font-size=\"25\" x=\"526\" y=\"396\">L3</text></svg>"
],
"text/plain": [
"<IPython.core.display.SVG object>"
]
},
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"# A tri-objective function: selection time (ST) and incoherence (I) and misalignment (M)\n",
"def ST_and_I_and_M (layout, columns, o_inputs):\n",
Expand Down Expand Up @@ -973,7 +868,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
"collapsed": false
},
"outputs": [],
"source": []
Expand Down

0 comments on commit ac4f3c2

Please sign in to comment.