Skip to content

Commit

Permalink
Merge pull request #17 from AutoResearch/16-fix-tutorials
Browse files Browse the repository at this point in the history
docs: make tutorials work with newest version of autora
  • Loading branch information
younesStrittmatter authored Jul 26, 2024
2 parents 79bd66c + 65e691b commit e7a7fda
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1,123 deletions.
344 changes: 4 additions & 340 deletions docs/Basic Usage.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -116,91 +116,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "043e427f334d4dfdae25ba43b07c8e37",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
" 0%| | 0/300 [00:00<?, ?it/s]"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"image/svg+xml": [
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n",
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
"<!-- Generated by graphviz version 7.1.0 (20230121.1956)\n",
" -->\n",
"<!-- Pages: 1 -->\n",
"<svg width=\"506pt\" height=\"98pt\"\n",
" viewBox=\"0.00 0.00 506.00 98.00\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n",
"<g id=\"graph0\" class=\"graph\" transform=\"scale(1 1) rotate(0) translate(4 94)\">\n",
"<polygon fill=\"white\" stroke=\"none\" points=\"-4,4 -4,-94 502,-94 502,4 -4,4\"/>\n",
"<!-- x1 -->\n",
"<g id=\"node1\" class=\"node\">\n",
"<title>x1</title>\n",
"<polygon fill=\"#f1edb9\" stroke=\"black\" stroke-width=\"2\" points=\"38,-90 0,-90 0,-54 38,-54 38,-90\"/>\n",
"<text text-anchor=\"middle\" x=\"19\" y=\"-67\" font-family=\"times\" font-size=\"20.00\">x1</text>\n",
"</g>\n",
"<!-- k1 -->\n",
"<g id=\"node3\" class=\"node\">\n",
"<title>k1</title>\n",
"<polygon fill=\"#bbccf9\" stroke=\"black\" stroke-width=\"2\" points=\"168,-63 130,-63 130,-27 168,-27 168,-63\"/>\n",
"<text text-anchor=\"middle\" x=\"149\" y=\"-40\" font-family=\"times\" font-size=\"20.00\">k1</text>\n",
"</g>\n",
"<!-- x1&#45;&gt;k1 -->\n",
"<g id=\"edge1\" class=\"edge\">\n",
"<title>x1&#45;&gt;k1</title>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M38.89,-68.02C59.68,-63.63 93.41,-56.51 117.87,-51.36\"/>\n",
"<polygon fill=\"gray\" stroke=\"black\" points=\"118.49,-54.8 127.55,-49.31 117.05,-47.95 118.49,-54.8\"/>\n",
"<text text-anchor=\"middle\" x=\"84\" y=\"-70\" font-family=\"times\" font-size=\"20.00\">exp(x)</text>\n",
"</g>\n",
"<!-- x2 -->\n",
"<g id=\"node2\" class=\"node\">\n",
"<title>x2</title>\n",
"<polygon fill=\"#f1edb9\" stroke=\"black\" stroke-width=\"2\" points=\"38,-36 0,-36 0,0 38,0 38,-36\"/>\n",
"<text text-anchor=\"middle\" x=\"19\" y=\"-13\" font-family=\"times\" font-size=\"20.00\">x2</text>\n",
"</g>\n",
"<!-- x2&#45;&gt;k1 -->\n",
"<g id=\"edge2\" class=\"edge\">\n",
"<title>x2&#45;&gt;k1</title>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M38.73,-17.48C57.61,-17.44 87.39,-18.76 112,-26 114.28,-26.67 116.58,-27.49 118.85,-28.41\"/>\n",
"<polygon fill=\"gray\" stroke=\"black\" points=\"117.26,-31.53 127.8,-32.62 120.24,-25.2 117.26,-31.53\"/>\n",
"<text text-anchor=\"middle\" x=\"84\" y=\"-32\" font-family=\"times\" font-size=\"20.00\">exp(x)</text>\n",
"</g>\n",
"<!-- P(detected) = (x + 0.00) -->\n",
"<g id=\"node4\" class=\"node\">\n",
"<title>P(detected) = (x + 0.00)</title>\n",
"<polygon fill=\"#cbe7c7\" stroke=\"black\" stroke-width=\"2\" points=\"498,-63 271,-63 271,-27 498,-27 498,-63\"/>\n",
"<text text-anchor=\"middle\" x=\"384.5\" y=\"-40\" font-family=\"times\" font-size=\"20.00\">P(detected) = (x + 0.00)</text>\n",
"</g>\n",
"<!-- k1&#45;&gt;P(detected) = (x + 0.00) -->\n",
"<g id=\"edge3\" class=\"edge\">\n",
"<title>k1&#45;&gt;P(detected) = (x + 0.00)</title>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M168.71,-45C189.03,-45 223.31,-45 258.59,-45\"/>\n",
"<polygon fill=\"gray\" stroke=\"black\" points=\"258.55,-48.5 268.55,-45 258.55,-41.5 258.55,-48.5\"/>\n",
"<text text-anchor=\"middle\" x=\"219.5\" y=\"-51\" font-family=\"times\" font-size=\"20.00\">1.00 * x</text>\n",
"</g>\n",
"</g>\n",
"</svg>\n"
],
"text/plain": [
"<graphviz.graphs.Digraph at 0x288b726d0>"
]
},
"execution_count": null,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"darts_estimator.fit(X, y)\n",
"darts_estimator.visualize_model()"
Expand All @@ -217,91 +133,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "bece0e3dc61b41cca6eae1d70d0af091",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"0it [00:00, ?it/s]"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"image/svg+xml": [
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n",
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
"<!-- Generated by graphviz version 7.1.0 (20230121.1956)\n",
" -->\n",
"<!-- Pages: 1 -->\n",
"<svg width=\"506pt\" height=\"98pt\"\n",
" viewBox=\"0.00 0.00 506.00 98.00\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n",
"<g id=\"graph0\" class=\"graph\" transform=\"scale(1 1) rotate(0) translate(4 94)\">\n",
"<polygon fill=\"white\" stroke=\"none\" points=\"-4,4 -4,-94 502,-94 502,4 -4,4\"/>\n",
"<!-- x1 -->\n",
"<g id=\"node1\" class=\"node\">\n",
"<title>x1</title>\n",
"<polygon fill=\"#f1edb9\" stroke=\"black\" stroke-width=\"2\" points=\"38,-90 0,-90 0,-54 38,-54 38,-90\"/>\n",
"<text text-anchor=\"middle\" x=\"19\" y=\"-67\" font-family=\"times\" font-size=\"20.00\">x1</text>\n",
"</g>\n",
"<!-- k1 -->\n",
"<g id=\"node3\" class=\"node\">\n",
"<title>k1</title>\n",
"<polygon fill=\"#bbccf9\" stroke=\"black\" stroke-width=\"2\" points=\"168,-63 130,-63 130,-27 168,-27 168,-63\"/>\n",
"<text text-anchor=\"middle\" x=\"149\" y=\"-40\" font-family=\"times\" font-size=\"20.00\">k1</text>\n",
"</g>\n",
"<!-- x1&#45;&gt;k1 -->\n",
"<g id=\"edge1\" class=\"edge\">\n",
"<title>x1&#45;&gt;k1</title>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M38.89,-68.02C59.68,-63.63 93.41,-56.51 117.87,-51.36\"/>\n",
"<polygon fill=\"gray\" stroke=\"black\" points=\"118.49,-54.8 127.55,-49.31 117.05,-47.95 118.49,-54.8\"/>\n",
"<text text-anchor=\"middle\" x=\"84\" y=\"-70\" font-family=\"times\" font-size=\"20.00\">exp(x)</text>\n",
"</g>\n",
"<!-- x2 -->\n",
"<g id=\"node2\" class=\"node\">\n",
"<title>x2</title>\n",
"<polygon fill=\"#f1edb9\" stroke=\"black\" stroke-width=\"2\" points=\"38,-36 0,-36 0,0 38,0 38,-36\"/>\n",
"<text text-anchor=\"middle\" x=\"19\" y=\"-13\" font-family=\"times\" font-size=\"20.00\">x2</text>\n",
"</g>\n",
"<!-- x2&#45;&gt;k1 -->\n",
"<g id=\"edge2\" class=\"edge\">\n",
"<title>x2&#45;&gt;k1</title>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M38.73,-17.48C57.61,-17.44 87.39,-18.76 112,-26 114.28,-26.67 116.58,-27.49 118.85,-28.41\"/>\n",
"<polygon fill=\"gray\" stroke=\"black\" points=\"117.26,-31.53 127.8,-32.62 120.24,-25.2 117.26,-31.53\"/>\n",
"<text text-anchor=\"middle\" x=\"84\" y=\"-32\" font-family=\"times\" font-size=\"20.00\">exp(x)</text>\n",
"</g>\n",
"<!-- P(detected) = (x + 0.00) -->\n",
"<g id=\"node4\" class=\"node\">\n",
"<title>P(detected) = (x + 0.00)</title>\n",
"<polygon fill=\"#cbe7c7\" stroke=\"black\" stroke-width=\"2\" points=\"498,-63 271,-63 271,-27 498,-27 498,-63\"/>\n",
"<text text-anchor=\"middle\" x=\"384.5\" y=\"-40\" font-family=\"times\" font-size=\"20.00\">P(detected) = (x + 0.00)</text>\n",
"</g>\n",
"<!-- k1&#45;&gt;P(detected) = (x + 0.00) -->\n",
"<g id=\"edge3\" class=\"edge\">\n",
"<title>k1&#45;&gt;P(detected) = (x + 0.00)</title>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M168.71,-45C189.03,-45 223.31,-45 258.59,-45\"/>\n",
"<polygon fill=\"gray\" stroke=\"black\" points=\"258.55,-48.5 268.55,-45 258.55,-41.5 258.55,-48.5\"/>\n",
"<text text-anchor=\"middle\" x=\"219.5\" y=\"-51\" font-family=\"times\" font-size=\"20.00\">1.00 * x</text>\n",
"</g>\n",
"</g>\n",
"</svg>\n"
],
"text/plain": [
"<graphviz.graphs.Digraph at 0x174355df0>"
]
},
"execution_count": null,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"darts_estimator.set_params(\n",
" max_epochs=0, # no epochs of architecture fitting\n",
Expand All @@ -322,91 +154,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "c7be110e32954ed092c008d024a309b3",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"0it [00:00, ?it/s]"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"image/svg+xml": [
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n",
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
"<!-- Generated by graphviz version 7.1.0 (20230121.1956)\n",
" -->\n",
"<!-- Pages: 1 -->\n",
"<svg width=\"529pt\" height=\"98pt\"\n",
" viewBox=\"0.00 0.00 529.00 98.00\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n",
"<g id=\"graph0\" class=\"graph\" transform=\"scale(1 1) rotate(0) translate(4 94)\">\n",
"<polygon fill=\"white\" stroke=\"none\" points=\"-4,4 -4,-94 525,-94 525,4 -4,4\"/>\n",
"<!-- x1 -->\n",
"<g id=\"node1\" class=\"node\">\n",
"<title>x1</title>\n",
"<polygon fill=\"#f1edb9\" stroke=\"black\" stroke-width=\"2\" points=\"38,-90 0,-90 0,-54 38,-54 38,-90\"/>\n",
"<text text-anchor=\"middle\" x=\"19\" y=\"-67\" font-family=\"times\" font-size=\"20.00\">x1</text>\n",
"</g>\n",
"<!-- k1 -->\n",
"<g id=\"node3\" class=\"node\">\n",
"<title>k1</title>\n",
"<polygon fill=\"#bbccf9\" stroke=\"black\" stroke-width=\"2\" points=\"191,-63 153,-63 153,-27 191,-27 191,-63\"/>\n",
"<text text-anchor=\"middle\" x=\"172\" y=\"-40\" font-family=\"times\" font-size=\"20.00\">k1</text>\n",
"</g>\n",
"<!-- x1&#45;&gt;k1 -->\n",
"<g id=\"edge1\" class=\"edge\">\n",
"<title>x1&#45;&gt;k1</title>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M38.82,-68.64C64.5,-64.04 110.81,-55.76 141.23,-50.32\"/>\n",
"<polygon fill=\"gray\" stroke=\"black\" points=\"141.7,-53.79 150.93,-48.59 140.47,-46.9 141.7,-53.79\"/>\n",
"<text text-anchor=\"middle\" x=\"95.5\" y=\"-71\" font-family=\"times\" font-size=\"20.00\">47.75 * x</text>\n",
"</g>\n",
"<!-- x2 -->\n",
"<g id=\"node2\" class=\"node\">\n",
"<title>x2</title>\n",
"<polygon fill=\"#f1edb9\" stroke=\"black\" stroke-width=\"2\" points=\"38,-36 0,-36 0,0 38,0 38,-36\"/>\n",
"<text text-anchor=\"middle\" x=\"19\" y=\"-13\" font-family=\"times\" font-size=\"20.00\">x2</text>\n",
"</g>\n",
"<!-- x2&#45;&gt;k1 -->\n",
"<g id=\"edge2\" class=\"edge\">\n",
"<title>x2&#45;&gt;k1</title>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M38.76,-16.63C61.89,-15.51 102.17,-15.42 135,-25 137.4,-25.7 139.81,-26.58 142.19,-27.58\"/>\n",
"<polygon fill=\"gray\" stroke=\"black\" points=\"140.39,-30.6 150.91,-31.87 143.48,-24.31 140.39,-30.6\"/>\n",
"<text text-anchor=\"middle\" x=\"95.5\" y=\"-31\" font-family=\"times\" font-size=\"20.00\">ReLU(x)</text>\n",
"</g>\n",
"<!-- P(detected) = (x + 0.00) -->\n",
"<g id=\"node4\" class=\"node\">\n",
"<title>P(detected) = (x + 0.00)</title>\n",
"<polygon fill=\"#cbe7c7\" stroke=\"black\" stroke-width=\"2\" points=\"521,-63 294,-63 294,-27 521,-27 521,-63\"/>\n",
"<text text-anchor=\"middle\" x=\"407.5\" y=\"-40\" font-family=\"times\" font-size=\"20.00\">P(detected) = (x + 0.00)</text>\n",
"</g>\n",
"<!-- k1&#45;&gt;P(detected) = (x + 0.00) -->\n",
"<g id=\"edge3\" class=\"edge\">\n",
"<title>k1&#45;&gt;P(detected) = (x + 0.00)</title>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M191.71,-45C212.03,-45 246.31,-45 281.59,-45\"/>\n",
"<polygon fill=\"gray\" stroke=\"black\" points=\"281.55,-48.5 291.55,-45 281.55,-41.5 281.55,-48.5\"/>\n",
"<text text-anchor=\"middle\" x=\"242.5\" y=\"-51\" font-family=\"times\" font-size=\"20.00\">1.00 * x</text>\n",
"</g>\n",
"</g>\n",
"</svg>\n"
],
"text/plain": [
"<graphviz.graphs.Digraph at 0x1746b7dc0>"
]
},
"execution_count": null,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"darts_estimator.set_params(\n",
" max_epochs=0, # no epochs of architecture fitting\n",
Expand All @@ -428,91 +176,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "4f4026df6f5e4934905010e90bc42fc8",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"0it [00:00, ?it/s]"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"image/svg+xml": [
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n",
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
"<!-- Generated by graphviz version 7.1.0 (20230121.1956)\n",
" -->\n",
"<!-- Pages: 1 -->\n",
"<svg width=\"506pt\" height=\"98pt\"\n",
" viewBox=\"0.00 0.00 506.00 98.00\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n",
"<g id=\"graph0\" class=\"graph\" transform=\"scale(1 1) rotate(0) translate(4 94)\">\n",
"<polygon fill=\"white\" stroke=\"none\" points=\"-4,4 -4,-94 502,-94 502,4 -4,4\"/>\n",
"<!-- x1 -->\n",
"<g id=\"node1\" class=\"node\">\n",
"<title>x1</title>\n",
"<polygon fill=\"#f1edb9\" stroke=\"black\" stroke-width=\"2\" points=\"38,-90 0,-90 0,-54 38,-54 38,-90\"/>\n",
"<text text-anchor=\"middle\" x=\"19\" y=\"-67\" font-family=\"times\" font-size=\"20.00\">x1</text>\n",
"</g>\n",
"<!-- k1 -->\n",
"<g id=\"node3\" class=\"node\">\n",
"<title>k1</title>\n",
"<polygon fill=\"#bbccf9\" stroke=\"black\" stroke-width=\"2\" points=\"168,-63 130,-63 130,-27 168,-27 168,-63\"/>\n",
"<text text-anchor=\"middle\" x=\"149\" y=\"-40\" font-family=\"times\" font-size=\"20.00\">k1</text>\n",
"</g>\n",
"<!-- x1&#45;&gt;k1 -->\n",
"<g id=\"edge1\" class=\"edge\">\n",
"<title>x1&#45;&gt;k1</title>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M38.89,-68.02C59.68,-63.63 93.41,-56.51 117.87,-51.36\"/>\n",
"<polygon fill=\"gray\" stroke=\"black\" points=\"118.49,-54.8 127.55,-49.31 117.05,-47.95 118.49,-54.8\"/>\n",
"<text text-anchor=\"middle\" x=\"84\" y=\"-70\" font-family=\"times\" font-size=\"20.00\">exp(x)</text>\n",
"</g>\n",
"<!-- x2 -->\n",
"<g id=\"node2\" class=\"node\">\n",
"<title>x2</title>\n",
"<polygon fill=\"#f1edb9\" stroke=\"black\" stroke-width=\"2\" points=\"38,-36 0,-36 0,0 38,0 38,-36\"/>\n",
"<text text-anchor=\"middle\" x=\"19\" y=\"-13\" font-family=\"times\" font-size=\"20.00\">x2</text>\n",
"</g>\n",
"<!-- x2&#45;&gt;k1 -->\n",
"<g id=\"edge2\" class=\"edge\">\n",
"<title>x2&#45;&gt;k1</title>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M38.73,-17.48C57.61,-17.44 87.39,-18.76 112,-26 114.28,-26.67 116.58,-27.49 118.85,-28.41\"/>\n",
"<polygon fill=\"gray\" stroke=\"black\" points=\"117.26,-31.53 127.8,-32.62 120.24,-25.2 117.26,-31.53\"/>\n",
"<text text-anchor=\"middle\" x=\"84\" y=\"-32\" font-family=\"times\" font-size=\"20.00\">exp(x)</text>\n",
"</g>\n",
"<!-- P(detected) = (x + 0.00) -->\n",
"<g id=\"node4\" class=\"node\">\n",
"<title>P(detected) = (x + 0.00)</title>\n",
"<polygon fill=\"#cbe7c7\" stroke=\"black\" stroke-width=\"2\" points=\"498,-63 271,-63 271,-27 498,-27 498,-63\"/>\n",
"<text text-anchor=\"middle\" x=\"384.5\" y=\"-40\" font-family=\"times\" font-size=\"20.00\">P(detected) = (x + 0.00)</text>\n",
"</g>\n",
"<!-- k1&#45;&gt;P(detected) = (x + 0.00) -->\n",
"<g id=\"edge3\" class=\"edge\">\n",
"<title>k1&#45;&gt;P(detected) = (x + 0.00)</title>\n",
"<path fill=\"none\" stroke=\"black\" d=\"M168.71,-45C189.03,-45 223.31,-45 258.59,-45\"/>\n",
"<polygon fill=\"gray\" stroke=\"black\" points=\"258.55,-48.5 268.55,-45 258.55,-41.5 258.55,-48.5\"/>\n",
"<text text-anchor=\"middle\" x=\"219.5\" y=\"-51\" font-family=\"times\" font-size=\"20.00\">1.00 * x</text>\n",
"</g>\n",
"</g>\n",
"</svg>\n"
],
"text/plain": [
"<graphviz.graphs.Digraph at 0x119bba670>"
]
},
"execution_count": null,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"darts_estimator.set_params(\n",
" max_epochs=0, # no epochs of architecture fitting\n",
Expand Down
Loading

0 comments on commit e7a7fda

Please sign in to comment.