Skip to content

Instantly share code, notes, and snippets.

@lan496
Created October 21, 2023 03:23
Show Gist options
  • Save lan496/5c76e628e134b5710c470ead186f80c9 to your computer and use it in GitHub Desktop.
Save lan496/5c76e628e134b5710c470ead186f80c9 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"import pandas as pd\n",
"import plotly.express as px"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Gradient check"
]
},
{
"cell_type": "code",
"execution_count": 25,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>filter</th>\n",
" <th>eps</th>\n",
" <th>diff</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>51</th>\n",
" <td>ExpCellFilterNew</td>\n",
" <td>0.001953</td>\n",
" <td>7.160000e-08</td>\n",
" </tr>\n",
" <tr>\n",
" <th>59</th>\n",
" <td>ExpCellFilterNew</td>\n",
" <td>0.500000</td>\n",
" <td>3.416465e+02</td>\n",
" </tr>\n",
" <tr>\n",
" <th>13</th>\n",
" <td>UnitCellFilter</td>\n",
" <td>0.007812</td>\n",
" <td>3.000000e-10</td>\n",
" </tr>\n",
" <tr>\n",
" <th>55</th>\n",
" <td>ExpCellFilterNew</td>\n",
" <td>0.031250</td>\n",
" <td>1.157502e-01</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" filter eps diff\n",
"51 ExpCellFilterNew 0.001953 7.160000e-08\n",
"59 ExpCellFilterNew 0.500000 3.416465e+02\n",
"13 UnitCellFilter 0.007812 3.000000e-10\n",
"55 ExpCellFilterNew 0.031250 1.157502e-01"
]
},
"execution_count": 25,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df = pd.read_json(\"filters.json\")\n",
"df.loc[df['filter'] == 'ExpCellFilter', 'filter'] = 'ExpCellFilterNew'\n",
"df.sample(4)"
]
},
{
"cell_type": "code",
"execution_count": 26,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"hovertemplate": "filter=UnitCellFilter<br>eps=%{x}<br>diff=%{y}<extra></extra>",
"legendgroup": "UnitCellFilter",
"marker": {
"color": "#636efa",
"symbol": "circle"
},
"mode": "markers",
"name": "UnitCellFilter",
"orientation": "v",
"showlegend": true,
"type": "scatter",
"x": [
9.537e-7,
0.0000019073000000000001,
0.0000038147,
0.0000076294,
0.0000152588,
0.0000305176,
0.0000610352,
0.00012207030000000001,
0.00024414060000000002,
0.00048828120000000004,
0.0009765625,
0.001953125,
0.00390625,
0.0078125,
0.015625,
0.03125,
0.0625,
0.125,
0.25,
0.5
],
"xaxis": "x",
"y": [
5.116729262e-17,
2.6108456220000003e-17,
3.665644764e-18,
5.6341754e-19,
9.86192945e-20,
6.124305891e-20,
3.701633023e-19,
1.220388278e-17,
3.801413599e-16,
0,
0,
0,
1e-10,
3e-10,
6.3e-9,
9.52e-8,
8.544e-7,
0.0000044063000000000005,
0.0000089446,
0.0015943232
],
"yaxis": "y"
},
{
"hovertemplate": "filter=ExpCellFilterOld<br>eps=%{x}<br>diff=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterOld",
"marker": {
"color": "#EF553B",
"symbol": "circle"
},
"mode": "markers",
"name": "ExpCellFilterOld",
"orientation": "v",
"showlegend": true,
"type": "scatter",
"x": [
9.537e-7,
0.0000019073000000000001,
0.0000038147,
0.0000076294,
0.0000152588,
0.0000305176,
0.0000610352,
0.00012207030000000001,
0.00024414060000000002,
0.00048828120000000004,
0.0009765625,
0.001953125,
0.00390625,
0.0078125,
0.015625,
0.03125,
0.0625,
0.125,
0.25,
0.5
],
"xaxis": "x",
"y": [
0.000231756,
0.0005046533,
0.0002306814,
0.00026972460000000004,
0.0002730322,
0.0002753875,
0.0002791327,
0.0008412303,
0.0003043359,
0.0009494158000000001,
0.0003335837,
0.000326407,
0.0003207888,
0.0013882821,
0.0037780137,
0.0067744394,
0.0196660668,
0.044592362100000005,
0.6713828626,
9.3207368303
],
"yaxis": "y"
},
{
"hovertemplate": "filter=ExpCellFilterNew<br>eps=%{x}<br>diff=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterNew",
"marker": {
"color": "#00cc96",
"symbol": "circle"
},
"mode": "markers",
"name": "ExpCellFilterNew",
"orientation": "v",
"showlegend": true,
"type": "scatter",
"x": [
9.537e-7,
0.0000019073000000000001,
0.0000038147,
0.0000076294,
0.0000152588,
0.0000305176,
0.0000610352,
0.00012207030000000001,
0.00024414060000000002,
0.00048828120000000004,
0.0009765625,
0.001953125,
0.00390625,
0.0078125,
0.015625,
0.03125,
0.0625,
0.125,
0.25,
0.5
],
"xaxis": "x",
"y": [
0,
0,
0,
0,
0,
0,
0,
0,
8e-10,
1.46e-8,
1.5280000000000002e-7,
7.16e-8,
0.0000123492,
0.0005189711,
0.0118754553,
0.11575021840000001,
0.1105040986,
0.3607178386,
8.7889767505,
341.6464746598
],
"yaxis": "y"
}
],
"layout": {
"height": 512,
"legend": {
"title": {
"text": "filter"
},
"tracegroupgap": 0
},
"margin": {
"t": 60
},
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"sequentialminus": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"width": 1024,
"xaxis": {
"anchor": "y",
"domain": [
0,
1
],
"title": {
"text": "eps"
},
"type": "log"
},
"yaxis": {
"anchor": "x",
"domain": [
0,
1
],
"title": {
"text": "diff"
},
"type": "log"
}
}
}
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig = px.scatter(\n",
" df,\n",
" x='eps', y='diff', color='filter',\n",
" log_x=True, log_y=True,\n",
")\n",
"fig.update_layout({\n",
" \"width\": 1024,\n",
" \"height\": 512,\n",
"})\n",
"fig.write_image(\"filter_diff_check.png\")\n",
"fig"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Opt convergence"
]
},
{
"cell_type": "code",
"execution_count": 30,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>optimizer</th>\n",
" <th>filter</th>\n",
" <th>fmax</th>\n",
" <th>steps</th>\n",
" <th>force_calls</th>\n",
" <th>elapsed_time_s</th>\n",
" <th>elapsed_time_s_per_force_calls</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>15</th>\n",
" <td>BFGSLineSearch</td>\n",
" <td>UnitCellFilter</td>\n",
" <td>0.000001</td>\n",
" <td>13</td>\n",
" <td>21</td>\n",
" <td>0.433302</td>\n",
" <td>0.020633</td>\n",
" </tr>\n",
" <tr>\n",
" <th>85</th>\n",
" <td>SciPyFminCG</td>\n",
" <td>ExpCellFilterNew</td>\n",
" <td>0.000001</td>\n",
" <td>16</td>\n",
" <td>16</td>\n",
" <td>0.498827</td>\n",
" <td>0.031177</td>\n",
" </tr>\n",
" <tr>\n",
" <th>24</th>\n",
" <td>BFGSLineSearch</td>\n",
" <td>ExpCellFilterOld</td>\n",
" <td>0.010000</td>\n",
" <td>6</td>\n",
" <td>8</td>\n",
" <td>0.310646</td>\n",
" <td>0.038831</td>\n",
" </tr>\n",
" <tr>\n",
" <th>53</th>\n",
" <td>LBFGSLineSearch</td>\n",
" <td>ExpCellFilterOld</td>\n",
" <td>0.001000</td>\n",
" <td>9</td>\n",
" <td>17</td>\n",
" <td>0.568866</td>\n",
" <td>0.033463</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" optimizer filter fmax steps force_calls \\\n",
"15 BFGSLineSearch UnitCellFilter 0.000001 13 21 \n",
"85 SciPyFminCG ExpCellFilterNew 0.000001 16 16 \n",
"24 BFGSLineSearch ExpCellFilterOld 0.010000 6 8 \n",
"53 LBFGSLineSearch ExpCellFilterOld 0.001000 9 17 \n",
"\n",
" elapsed_time_s elapsed_time_s_per_force_calls \n",
"15 0.433302 0.020633 \n",
"85 0.498827 0.031177 \n",
"24 0.310646 0.038831 \n",
"53 0.568866 0.033463 "
]
},
"execution_count": 30,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df_opt = pd.read_json(\"opt.json\")\n",
"df_opt.loc[df_opt['filter'] == 'ExpCellFilter', 'filter'] = 'ExpCellFilterNew'\n",
"df_opt['elapsed_time_s_per_force_calls'] = df_opt['elapsed_time_s'] / df_opt['force_calls']\n",
"df_opt.sample(4)"
]
},
{
"cell_type": "code",
"execution_count": 31,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"alignmentgroup": "True",
"hovertemplate": "filter=UnitCellFilter<br>fmax=1e-06<br>optimizer=%{x}<br>force_calls=%{y}<extra></extra>",
"legendgroup": "UnitCellFilter",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "UnitCellFilter",
"offsetgroup": "UnitCellFilter",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x",
"y": [
35,
21,
35,
32,
37,
15
],
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=UnitCellFilter<br>fmax=1e-05<br>optimizer=%{x}<br>force_calls=%{y}<extra></extra>",
"legendgroup": "UnitCellFilter",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "UnitCellFilter",
"offsetgroup": "UnitCellFilter",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x2",
"y": [
32,
19,
32,
32,
34,
12
],
"yaxis": "y2"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=UnitCellFilter<br>fmax=0.0001<br>optimizer=%{x}<br>force_calls=%{y}<extra></extra>",
"legendgroup": "UnitCellFilter",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "UnitCellFilter",
"offsetgroup": "UnitCellFilter",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x3",
"y": [
27,
17,
27,
25,
28,
9
],
"yaxis": "y3"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=UnitCellFilter<br>fmax=0.001<br>optimizer=%{x}<br>force_calls=%{y}<extra></extra>",
"legendgroup": "UnitCellFilter",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "UnitCellFilter",
"offsetgroup": "UnitCellFilter",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x4",
"y": [
12,
9,
12,
15,
12,
4
],
"yaxis": "y4"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=UnitCellFilter<br>fmax=0.01<br>optimizer=%{x}<br>force_calls=%{y}<extra></extra>",
"legendgroup": "UnitCellFilter",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "UnitCellFilter",
"offsetgroup": "UnitCellFilter",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x5",
"y": [
5,
5,
5,
8,
5,
3
],
"yaxis": "y5"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=ExpCellFilterOld<br>fmax=1e-06<br>optimizer=%{x}<br>force_calls=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterOld",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "ExpCellFilterOld",
"offsetgroup": "ExpCellFilterOld",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x",
"y": [
28,
20,
28,
25,
29,
14
],
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=ExpCellFilterOld<br>fmax=1e-05<br>optimizer=%{x}<br>force_calls=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterOld",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "ExpCellFilterOld",
"offsetgroup": "ExpCellFilterOld",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x2",
"y": [
24,
18,
24,
25,
25,
14
],
"yaxis": "y2"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=ExpCellFilterOld<br>fmax=0.0001<br>optimizer=%{x}<br>force_calls=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterOld",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "ExpCellFilterOld",
"offsetgroup": "ExpCellFilterOld",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x3",
"y": [
22,
12,
22,
21,
21,
13
],
"yaxis": "y3"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=ExpCellFilterOld<br>fmax=0.001<br>optimizer=%{x}<br>force_calls=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterOld",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "ExpCellFilterOld",
"offsetgroup": "ExpCellFilterOld",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x4",
"y": [
17,
11,
17,
17,
17,
10
],
"yaxis": "y4"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=ExpCellFilterOld<br>fmax=0.01<br>optimizer=%{x}<br>force_calls=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterOld",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "ExpCellFilterOld",
"offsetgroup": "ExpCellFilterOld",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x5",
"y": [
11,
8,
11,
11,
12,
8
],
"yaxis": "y5"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=ExpCellFilterNew<br>fmax=1e-06<br>optimizer=%{x}<br>force_calls=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterNew",
"marker": {
"color": "#00cc96",
"pattern": {
"shape": ""
}
},
"name": "ExpCellFilterNew",
"offsetgroup": "ExpCellFilterNew",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x",
"y": [
28,
20,
28,
25,
29,
16
],
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=ExpCellFilterNew<br>fmax=1e-05<br>optimizer=%{x}<br>force_calls=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterNew",
"marker": {
"color": "#00cc96",
"pattern": {
"shape": ""
}
},
"name": "ExpCellFilterNew",
"offsetgroup": "ExpCellFilterNew",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x2",
"y": [
24,
18,
24,
25,
25,
14
],
"yaxis": "y2"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=ExpCellFilterNew<br>fmax=0.0001<br>optimizer=%{x}<br>force_calls=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterNew",
"marker": {
"color": "#00cc96",
"pattern": {
"shape": ""
}
},
"name": "ExpCellFilterNew",
"offsetgroup": "ExpCellFilterNew",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x3",
"y": [
22,
12,
22,
21,
21,
13
],
"yaxis": "y3"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=ExpCellFilterNew<br>fmax=0.001<br>optimizer=%{x}<br>force_calls=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterNew",
"marker": {
"color": "#00cc96",
"pattern": {
"shape": ""
}
},
"name": "ExpCellFilterNew",
"offsetgroup": "ExpCellFilterNew",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x4",
"y": [
17,
11,
17,
17,
17,
10
],
"yaxis": "y4"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=ExpCellFilterNew<br>fmax=0.01<br>optimizer=%{x}<br>force_calls=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterNew",
"marker": {
"color": "#00cc96",
"pattern": {
"shape": ""
}
},
"name": "ExpCellFilterNew",
"offsetgroup": "ExpCellFilterNew",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x5",
"y": [
11,
8,
11,
11,
12,
8
],
"yaxis": "y5"
}
],
"layout": {
"annotations": [
{
"font": {},
"showarrow": false,
"text": "fmax=1e-06",
"x": 0.09200000000000001,
"xanchor": "center",
"xref": "paper",
"y": 1,
"yanchor": "bottom",
"yref": "paper"
},
{
"font": {},
"showarrow": false,
"text": "fmax=1e-05",
"x": 0.29600000000000004,
"xanchor": "center",
"xref": "paper",
"y": 1,
"yanchor": "bottom",
"yref": "paper"
},
{
"font": {},
"showarrow": false,
"text": "fmax=0.0001",
"x": 0.5,
"xanchor": "center",
"xref": "paper",
"y": 1,
"yanchor": "bottom",
"yref": "paper"
},
{
"font": {},
"showarrow": false,
"text": "fmax=0.001",
"x": 0.7040000000000002,
"xanchor": "center",
"xref": "paper",
"y": 1,
"yanchor": "bottom",
"yref": "paper"
},
{
"font": {},
"showarrow": false,
"text": "fmax=0.01",
"x": 0.908,
"xanchor": "center",
"xref": "paper",
"y": 1,
"yanchor": "bottom",
"yref": "paper"
}
],
"barmode": "group",
"height": 512,
"legend": {
"title": {
"text": "filter"
},
"tracegroupgap": 0
},
"margin": {
"t": 60
},
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"sequentialminus": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"width": 1024,
"xaxis": {
"anchor": "y",
"domain": [
0,
0.18400000000000002
],
"title": {
"text": "optimizer"
}
},
"xaxis2": {
"anchor": "y2",
"domain": [
0.20400000000000001,
0.388
],
"matches": "x",
"title": {
"text": "optimizer"
}
},
"xaxis3": {
"anchor": "y3",
"domain": [
0.40800000000000003,
0.5920000000000001
],
"matches": "x",
"title": {
"text": "optimizer"
}
},
"xaxis4": {
"anchor": "y4",
"domain": [
0.6120000000000001,
0.7960000000000002
],
"matches": "x",
"title": {
"text": "optimizer"
}
},
"xaxis5": {
"anchor": "y5",
"domain": [
0.8160000000000001,
1
],
"matches": "x",
"title": {
"text": "optimizer"
}
},
"yaxis": {
"anchor": "x",
"domain": [
0,
1
],
"title": {
"text": "force_calls"
}
},
"yaxis2": {
"anchor": "x2",
"domain": [
0,
1
],
"matches": "y",
"showticklabels": false
},
"yaxis3": {
"anchor": "x3",
"domain": [
0,
1
],
"matches": "y",
"showticklabels": false
},
"yaxis4": {
"anchor": "x4",
"domain": [
0,
1
],
"matches": "y",
"showticklabels": false
},
"yaxis5": {
"anchor": "x5",
"domain": [
0,
1
],
"matches": "y",
"showticklabels": false
}
}
}
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig = px.bar(df_opt, x='optimizer', y='force_calls', facet_col='fmax', color='filter', barmode='group')\n",
"fig.update_layout({\n",
" \"width\": 1024,\n",
" \"height\": 512,\n",
"})\n",
"fig.write_image(\"filter_force_calls.png\")\n",
"fig"
]
},
{
"cell_type": "code",
"execution_count": 32,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"alignmentgroup": "True",
"hovertemplate": "filter=UnitCellFilter<br>fmax=1e-06<br>optimizer=%{x}<br>elapsed_time_s=%{y}<extra></extra>",
"legendgroup": "UnitCellFilter",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "UnitCellFilter",
"offsetgroup": "UnitCellFilter",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x",
"y": [
0.2182312501,
0.433302334,
0.24152616740000002,
0.2585167503,
0.2889475832,
0.33201595910000004
],
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=UnitCellFilter<br>fmax=1e-05<br>optimizer=%{x}<br>elapsed_time_s=%{y}<extra></extra>",
"legendgroup": "UnitCellFilter",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "UnitCellFilter",
"offsetgroup": "UnitCellFilter",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x2",
"y": [
0.1770765409,
0.1423109588,
0.1787091661,
0.22550141580000002,
0.24511420820000002,
0.2470164998
],
"yaxis": "y2"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=UnitCellFilter<br>fmax=0.0001<br>optimizer=%{x}<br>elapsed_time_s=%{y}<extra></extra>",
"legendgroup": "UnitCellFilter",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "UnitCellFilter",
"offsetgroup": "UnitCellFilter",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x3",
"y": [
0.1708580828,
0.1287034168,
0.15048300010000001,
0.1750769173,
0.2039694171,
0.1871970003
],
"yaxis": "y3"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=UnitCellFilter<br>fmax=0.001<br>optimizer=%{x}<br>elapsed_time_s=%{y}<extra></extra>",
"legendgroup": "UnitCellFilter",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "UnitCellFilter",
"offsetgroup": "UnitCellFilter",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x4",
"y": [
0.07082670790000001,
0.07138516710000001,
0.067995708,
0.1072113328,
0.09601850020000001,
0.079930583
],
"yaxis": "y4"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=UnitCellFilter<br>fmax=0.01<br>optimizer=%{x}<br>elapsed_time_s=%{y}<extra></extra>",
"legendgroup": "UnitCellFilter",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "UnitCellFilter",
"offsetgroup": "UnitCellFilter",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x5",
"y": [
0.0327767907,
0.0414188341,
0.0304362909,
0.058295459,
0.049627416300000005,
0.0609010407
],
"yaxis": "y5"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=ExpCellFilterOld<br>fmax=1e-06<br>optimizer=%{x}<br>elapsed_time_s=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterOld",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "ExpCellFilterOld",
"offsetgroup": "ExpCellFilterOld",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x",
"y": [
0.8982228753,
0.8330686251,
0.7700202498000001,
0.8958251248,
0.8037501248000001,
0.7367871250000001
],
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=ExpCellFilterOld<br>fmax=1e-05<br>optimizer=%{x}<br>elapsed_time_s=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterOld",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "ExpCellFilterOld",
"offsetgroup": "ExpCellFilterOld",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x2",
"y": [
0.6908981674,
0.7518318333,
0.6763966661,
0.8846301669000001,
0.6518897093,
0.7480337503000001
],
"yaxis": "y2"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=ExpCellFilterOld<br>fmax=0.0001<br>optimizer=%{x}<br>elapsed_time_s=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterOld",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "ExpCellFilterOld",
"offsetgroup": "ExpCellFilterOld",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x3",
"y": [
0.6660713339000001,
0.4952562498,
0.6274253749,
0.7300626249000001,
0.5815694998000001,
0.6801779172
],
"yaxis": "y3"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=ExpCellFilterOld<br>fmax=0.001<br>optimizer=%{x}<br>elapsed_time_s=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterOld",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "ExpCellFilterOld",
"offsetgroup": "ExpCellFilterOld",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x4",
"y": [
0.5004757503,
0.4457800831,
0.5043688342,
0.5688663749,
0.43570604220000003,
0.5593897081
],
"yaxis": "y4"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=ExpCellFilterOld<br>fmax=0.01<br>optimizer=%{x}<br>elapsed_time_s=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterOld",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "ExpCellFilterOld",
"offsetgroup": "ExpCellFilterOld",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x5",
"y": [
0.3940447094,
0.310645917,
0.3194445828,
0.3609148753,
0.3254791251,
0.4149854169
],
"yaxis": "y5"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=ExpCellFilterNew<br>fmax=1e-06<br>optimizer=%{x}<br>elapsed_time_s=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterNew",
"marker": {
"color": "#00cc96",
"pattern": {
"shape": ""
}
},
"name": "ExpCellFilterNew",
"offsetgroup": "ExpCellFilterNew",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x",
"y": [
0.49397449990000003,
0.47754691730000004,
0.48195712500000004,
0.5174588752,
0.4684677501,
0.49882683390000004
],
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=ExpCellFilterNew<br>fmax=1e-05<br>optimizer=%{x}<br>elapsed_time_s=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterNew",
"marker": {
"color": "#00cc96",
"pattern": {
"shape": ""
}
},
"name": "ExpCellFilterNew",
"offsetgroup": "ExpCellFilterNew",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x2",
"y": [
0.2664979999,
0.2777389577,
0.2686387906,
0.3656995418,
0.25412770830000003,
0.2707595411
],
"yaxis": "y2"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=ExpCellFilterNew<br>fmax=0.0001<br>optimizer=%{x}<br>elapsed_time_s=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterNew",
"marker": {
"color": "#00cc96",
"pattern": {
"shape": ""
}
},
"name": "ExpCellFilterNew",
"offsetgroup": "ExpCellFilterNew",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x3",
"y": [
0.258524708,
0.2011765423,
0.2537821252,
0.28416875,
0.2137912503,
0.24466649999999998
],
"yaxis": "y3"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=ExpCellFilterNew<br>fmax=0.001<br>optimizer=%{x}<br>elapsed_time_s=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterNew",
"marker": {
"color": "#00cc96",
"pattern": {
"shape": ""
}
},
"name": "ExpCellFilterNew",
"offsetgroup": "ExpCellFilterNew",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x4",
"y": [
0.1878869589,
0.1730288332,
0.1922969576,
0.2177187917,
0.1717155827,
0.1906933328
],
"yaxis": "y4"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=ExpCellFilterNew<br>fmax=0.01<br>optimizer=%{x}<br>elapsed_time_s=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterNew",
"marker": {
"color": "#00cc96",
"pattern": {
"shape": ""
}
},
"name": "ExpCellFilterNew",
"offsetgroup": "ExpCellFilterNew",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x5",
"y": [
0.1244635419,
0.1311428328,
0.1421806253,
0.1464793752,
0.1235618331,
0.1569450423
],
"yaxis": "y5"
}
],
"layout": {
"annotations": [
{
"font": {},
"showarrow": false,
"text": "fmax=1e-06",
"x": 0.09200000000000001,
"xanchor": "center",
"xref": "paper",
"y": 1,
"yanchor": "bottom",
"yref": "paper"
},
{
"font": {},
"showarrow": false,
"text": "fmax=1e-05",
"x": 0.29600000000000004,
"xanchor": "center",
"xref": "paper",
"y": 1,
"yanchor": "bottom",
"yref": "paper"
},
{
"font": {},
"showarrow": false,
"text": "fmax=0.0001",
"x": 0.5,
"xanchor": "center",
"xref": "paper",
"y": 1,
"yanchor": "bottom",
"yref": "paper"
},
{
"font": {},
"showarrow": false,
"text": "fmax=0.001",
"x": 0.7040000000000002,
"xanchor": "center",
"xref": "paper",
"y": 1,
"yanchor": "bottom",
"yref": "paper"
},
{
"font": {},
"showarrow": false,
"text": "fmax=0.01",
"x": 0.908,
"xanchor": "center",
"xref": "paper",
"y": 1,
"yanchor": "bottom",
"yref": "paper"
}
],
"barmode": "group",
"height": 512,
"legend": {
"title": {
"text": "filter"
},
"tracegroupgap": 0
},
"margin": {
"t": 60
},
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"sequentialminus": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"width": 1024,
"xaxis": {
"anchor": "y",
"domain": [
0,
0.18400000000000002
],
"title": {
"text": "optimizer"
}
},
"xaxis2": {
"anchor": "y2",
"domain": [
0.20400000000000001,
0.388
],
"matches": "x",
"title": {
"text": "optimizer"
}
},
"xaxis3": {
"anchor": "y3",
"domain": [
0.40800000000000003,
0.5920000000000001
],
"matches": "x",
"title": {
"text": "optimizer"
}
},
"xaxis4": {
"anchor": "y4",
"domain": [
0.6120000000000001,
0.7960000000000002
],
"matches": "x",
"title": {
"text": "optimizer"
}
},
"xaxis5": {
"anchor": "y5",
"domain": [
0.8160000000000001,
1
],
"matches": "x",
"title": {
"text": "optimizer"
}
},
"yaxis": {
"anchor": "x",
"domain": [
0,
1
],
"title": {
"text": "elapsed_time_s"
}
},
"yaxis2": {
"anchor": "x2",
"domain": [
0,
1
],
"matches": "y",
"showticklabels": false
},
"yaxis3": {
"anchor": "x3",
"domain": [
0,
1
],
"matches": "y",
"showticklabels": false
},
"yaxis4": {
"anchor": "x4",
"domain": [
0,
1
],
"matches": "y",
"showticklabels": false
},
"yaxis5": {
"anchor": "x5",
"domain": [
0,
1
],
"matches": "y",
"showticklabels": false
}
}
}
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig = px.bar(df_opt, x='optimizer', y='elapsed_time_s', facet_col='fmax', color='filter', barmode='group')\n",
"fig.update_layout({\n",
" \"width\": 1024,\n",
" \"height\": 512,\n",
"})\n",
"fig.write_image(\"filter_elapsed_time.png\")\n",
"fig"
]
},
{
"cell_type": "code",
"execution_count": 33,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"alignmentgroup": "True",
"hovertemplate": "filter=UnitCellFilter<br>fmax=1e-06<br>optimizer=%{x}<br>elapsed_time_s_per_force_calls=%{y}<extra></extra>",
"legendgroup": "UnitCellFilter",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "UnitCellFilter",
"offsetgroup": "UnitCellFilter",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x",
"y": [
0.0062351785742857145,
0.020633444476190477,
0.0069007476400000005,
0.008078648446875,
0.007809394140540541,
0.022134397273333335
],
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=UnitCellFilter<br>fmax=1e-05<br>optimizer=%{x}<br>elapsed_time_s_per_force_calls=%{y}<extra></extra>",
"legendgroup": "UnitCellFilter",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "UnitCellFilter",
"offsetgroup": "UnitCellFilter",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x2",
"y": [
0.005533641903125,
0.007490050463157895,
0.005584661440625,
0.007046919243750001,
0.007209241417647059,
0.02058470831666667
],
"yaxis": "y2"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=UnitCellFilter<br>fmax=0.0001<br>optimizer=%{x}<br>elapsed_time_s_per_force_calls=%{y}<extra></extra>",
"legendgroup": "UnitCellFilter",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "UnitCellFilter",
"offsetgroup": "UnitCellFilter",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x3",
"y": [
0.006328077140740741,
0.007570789223529412,
0.005573444448148148,
0.007003076691999999,
0.007284622039285714,
0.0207996667
],
"yaxis": "y3"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=UnitCellFilter<br>fmax=0.001<br>optimizer=%{x}<br>elapsed_time_s_per_force_calls=%{y}<extra></extra>",
"legendgroup": "UnitCellFilter",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "UnitCellFilter",
"offsetgroup": "UnitCellFilter",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x4",
"y": [
0.005902225658333334,
0.007931685233333334,
0.0056663090000000004,
0.007147422186666667,
0.008001541683333334,
0.01998264575
],
"yaxis": "y4"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=UnitCellFilter<br>fmax=0.01<br>optimizer=%{x}<br>elapsed_time_s_per_force_calls=%{y}<extra></extra>",
"legendgroup": "UnitCellFilter",
"marker": {
"color": "#636efa",
"pattern": {
"shape": ""
}
},
"name": "UnitCellFilter",
"offsetgroup": "UnitCellFilter",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x5",
"y": [
0.00655535814,
0.00828376682,
0.00608725818,
0.007286932375,
0.009925483260000001,
0.0203003469
],
"yaxis": "y5"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=ExpCellFilterOld<br>fmax=1e-06<br>optimizer=%{x}<br>elapsed_time_s_per_force_calls=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterOld",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "ExpCellFilterOld",
"offsetgroup": "ExpCellFilterOld",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x",
"y": [
0.03207938840357143,
0.041653431255,
0.02750072320714286,
0.035833004992,
0.02771552154482759,
0.05262765178571429
],
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=ExpCellFilterOld<br>fmax=1e-05<br>optimizer=%{x}<br>elapsed_time_s_per_force_calls=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterOld",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "ExpCellFilterOld",
"offsetgroup": "ExpCellFilterOld",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x2",
"y": [
0.028787423641666667,
0.041768435183333334,
0.028183194420833335,
0.035385206676,
0.026075588372,
0.05343098216428572
],
"yaxis": "y2"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=ExpCellFilterOld<br>fmax=0.0001<br>optimizer=%{x}<br>elapsed_time_s_per_force_calls=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterOld",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "ExpCellFilterOld",
"offsetgroup": "ExpCellFilterOld",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x3",
"y": [
0.030275969722727277,
0.04127135415,
0.028519335222727274,
0.0347648869,
0.027693785704761907,
0.05232137824615384
],
"yaxis": "y3"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=ExpCellFilterOld<br>fmax=0.001<br>optimizer=%{x}<br>elapsed_time_s_per_force_calls=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterOld",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "ExpCellFilterOld",
"offsetgroup": "ExpCellFilterOld",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x4",
"y": [
0.02943975001764706,
0.0405254621,
0.029668754952941176,
0.03346272793529412,
0.025629767188235297,
0.05593897081
],
"yaxis": "y4"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=ExpCellFilterOld<br>fmax=0.01<br>optimizer=%{x}<br>elapsed_time_s_per_force_calls=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterOld",
"marker": {
"color": "#EF553B",
"pattern": {
"shape": ""
}
},
"name": "ExpCellFilterOld",
"offsetgroup": "ExpCellFilterOld",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x5",
"y": [
0.035822246309090915,
0.038830739625,
0.029040416618181818,
0.032810443209090906,
0.027123260425,
0.0518731771125
],
"yaxis": "y5"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=ExpCellFilterNew<br>fmax=1e-06<br>optimizer=%{x}<br>elapsed_time_s_per_force_calls=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterNew",
"marker": {
"color": "#00cc96",
"pattern": {
"shape": ""
}
},
"name": "ExpCellFilterNew",
"offsetgroup": "ExpCellFilterNew",
"orientation": "v",
"showlegend": true,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x",
"y": [
0.017641946425000003,
0.023877345865000003,
0.017212754464285714,
0.020698355008,
0.016154060348275864,
0.031176677118750003
],
"yaxis": "y"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=ExpCellFilterNew<br>fmax=1e-05<br>optimizer=%{x}<br>elapsed_time_s_per_force_calls=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterNew",
"marker": {
"color": "#00cc96",
"pattern": {
"shape": ""
}
},
"name": "ExpCellFilterNew",
"offsetgroup": "ExpCellFilterNew",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x2",
"y": [
0.011104083329166667,
0.015429942094444446,
0.011193282941666667,
0.014627981672,
0.010165108332000001,
0.019339967221428573
],
"yaxis": "y2"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=ExpCellFilterNew<br>fmax=0.0001<br>optimizer=%{x}<br>elapsed_time_s_per_force_calls=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterNew",
"marker": {
"color": "#00cc96",
"pattern": {
"shape": ""
}
},
"name": "ExpCellFilterNew",
"offsetgroup": "ExpCellFilterNew",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x3",
"y": [
0.01175112309090909,
0.016764711858333333,
0.011535551145454544,
0.013531845238095239,
0.01018053572857143,
0.018820499999999997
],
"yaxis": "y3"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=ExpCellFilterNew<br>fmax=0.001<br>optimizer=%{x}<br>elapsed_time_s_per_force_calls=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterNew",
"marker": {
"color": "#00cc96",
"pattern": {
"shape": ""
}
},
"name": "ExpCellFilterNew",
"offsetgroup": "ExpCellFilterNew",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x4",
"y": [
0.011052174052941177,
0.01572989392727273,
0.011311585741176472,
0.012806987747058823,
0.010100916629411765,
0.01906933328
],
"yaxis": "y4"
},
{
"alignmentgroup": "True",
"hovertemplate": "filter=ExpCellFilterNew<br>fmax=0.01<br>optimizer=%{x}<br>elapsed_time_s_per_force_calls=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterNew",
"marker": {
"color": "#00cc96",
"pattern": {
"shape": ""
}
},
"name": "ExpCellFilterNew",
"offsetgroup": "ExpCellFilterNew",
"orientation": "v",
"showlegend": false,
"textposition": "auto",
"type": "bar",
"x": [
"BFGS",
"BFGSLineSearch",
"LBFGS",
"LBFGSLineSearch",
"SciPyFminBFGS",
"SciPyFminCG"
],
"xaxis": "x5",
"y": [
0.011314867445454546,
0.0163928541,
0.01292551139090909,
0.013316306836363638,
0.010296819425000001,
0.0196181302875
],
"yaxis": "y5"
}
],
"layout": {
"annotations": [
{
"font": {},
"showarrow": false,
"text": "fmax=1e-06",
"x": 0.09200000000000001,
"xanchor": "center",
"xref": "paper",
"y": 1,
"yanchor": "bottom",
"yref": "paper"
},
{
"font": {},
"showarrow": false,
"text": "fmax=1e-05",
"x": 0.29600000000000004,
"xanchor": "center",
"xref": "paper",
"y": 1,
"yanchor": "bottom",
"yref": "paper"
},
{
"font": {},
"showarrow": false,
"text": "fmax=0.0001",
"x": 0.5,
"xanchor": "center",
"xref": "paper",
"y": 1,
"yanchor": "bottom",
"yref": "paper"
},
{
"font": {},
"showarrow": false,
"text": "fmax=0.001",
"x": 0.7040000000000002,
"xanchor": "center",
"xref": "paper",
"y": 1,
"yanchor": "bottom",
"yref": "paper"
},
{
"font": {},
"showarrow": false,
"text": "fmax=0.01",
"x": 0.908,
"xanchor": "center",
"xref": "paper",
"y": 1,
"yanchor": "bottom",
"yref": "paper"
}
],
"barmode": "group",
"legend": {
"title": {
"text": "filter"
},
"tracegroupgap": 0
},
"margin": {
"t": 60
},
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"sequentialminus": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"xaxis": {
"anchor": "y",
"domain": [
0,
0.18400000000000002
],
"title": {
"text": "optimizer"
}
},
"xaxis2": {
"anchor": "y2",
"domain": [
0.20400000000000001,
0.388
],
"matches": "x",
"title": {
"text": "optimizer"
}
},
"xaxis3": {
"anchor": "y3",
"domain": [
0.40800000000000003,
0.5920000000000001
],
"matches": "x",
"title": {
"text": "optimizer"
}
},
"xaxis4": {
"anchor": "y4",
"domain": [
0.6120000000000001,
0.7960000000000002
],
"matches": "x",
"title": {
"text": "optimizer"
}
},
"xaxis5": {
"anchor": "y5",
"domain": [
0.8160000000000001,
1
],
"matches": "x",
"title": {
"text": "optimizer"
}
},
"yaxis": {
"anchor": "x",
"domain": [
0,
1
],
"title": {
"text": "elapsed_time_s_per_force_calls"
}
},
"yaxis2": {
"anchor": "x2",
"domain": [
0,
1
],
"matches": "y",
"showticklabels": false
},
"yaxis3": {
"anchor": "x3",
"domain": [
0,
1
],
"matches": "y",
"showticklabels": false
},
"yaxis4": {
"anchor": "x4",
"domain": [
0,
1
],
"matches": "y",
"showticklabels": false
},
"yaxis5": {
"anchor": "x5",
"domain": [
0,
1
],
"matches": "y",
"showticklabels": false
}
}
}
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig = px.bar(df_opt, x='optimizer', y='elapsed_time_s_per_force_calls', facet_col='fmax', color='filter', barmode='group')\n",
"fig"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Size dependency"
]
},
{
"cell_type": "code",
"execution_count": 34,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>optimizer</th>\n",
" <th>filter</th>\n",
" <th>fmax</th>\n",
" <th>natoms</th>\n",
" <th>steps</th>\n",
" <th>force_calls</th>\n",
" <th>elapsed_time_s</th>\n",
" <th>elapsed_time_s_per_force_calls</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>7</th>\n",
" <td>LBFGSLineSearch</td>\n",
" <td>ExpCellFilterOld</td>\n",
" <td>0.010</td>\n",
" <td>256</td>\n",
" <td>12</td>\n",
" <td>21</td>\n",
" <td>8.716559</td>\n",
" <td>0.415074</td>\n",
" </tr>\n",
" <tr>\n",
" <th>10</th>\n",
" <td>LBFGSLineSearch</td>\n",
" <td>ExpCellFilterNew</td>\n",
" <td>0.001</td>\n",
" <td>108</td>\n",
" <td>16</td>\n",
" <td>27</td>\n",
" <td>3.885512</td>\n",
" <td>0.143908</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>LBFGSLineSearch</td>\n",
" <td>ExpCellFilterOld</td>\n",
" <td>0.001</td>\n",
" <td>32</td>\n",
" <td>10</td>\n",
" <td>17</td>\n",
" <td>1.927791</td>\n",
" <td>0.113399</td>\n",
" </tr>\n",
" <tr>\n",
" <th>15</th>\n",
" <td>LBFGSLineSearch</td>\n",
" <td>ExpCellFilterNew</td>\n",
" <td>0.010</td>\n",
" <td>256</td>\n",
" <td>12</td>\n",
" <td>21</td>\n",
" <td>6.900836</td>\n",
" <td>0.328611</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" optimizer filter fmax natoms steps force_calls \\\n",
"7 LBFGSLineSearch ExpCellFilterOld 0.010 256 12 21 \n",
"10 LBFGSLineSearch ExpCellFilterNew 0.001 108 16 27 \n",
"1 LBFGSLineSearch ExpCellFilterOld 0.001 32 10 17 \n",
"15 LBFGSLineSearch ExpCellFilterNew 0.010 256 12 21 \n",
"\n",
" elapsed_time_s elapsed_time_s_per_force_calls \n",
"7 8.716559 0.415074 \n",
"10 3.885512 0.143908 \n",
"1 1.927791 0.113399 \n",
"15 6.900836 0.328611 "
]
},
"execution_count": 34,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df_natoms= pd.read_json(\"opt_natoms.json\")\n",
"df_natoms.loc[df_natoms['filter'] == 'ExpCellFilter', 'filter'] = 'ExpCellFilterNew'\n",
"df_natoms['elapsed_time_s_per_force_calls'] = df_natoms['elapsed_time_s'] / df_natoms['force_calls']\n",
"df_natoms.sample(4)"
]
},
{
"cell_type": "code",
"execution_count": 35,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"hovertemplate": "filter=ExpCellFilterOld<br>fmax=0.001<br>natoms=%{x}<br>force_calls=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterOld",
"marker": {
"color": "#636efa",
"symbol": "circle"
},
"mode": "markers",
"name": "ExpCellFilterOld",
"orientation": "v",
"showlegend": true,
"type": "scatter",
"x": [
4,
32,
108,
256
],
"xaxis": "x",
"y": [
17,
17,
27,
30
],
"yaxis": "y"
},
{
"hovertemplate": "filter=ExpCellFilterOld<br>fmax=0.01<br>natoms=%{x}<br>force_calls=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterOld",
"marker": {
"color": "#636efa",
"symbol": "circle"
},
"mode": "markers",
"name": "ExpCellFilterOld",
"orientation": "v",
"showlegend": false,
"type": "scatter",
"x": [
4,
32,
108,
256
],
"xaxis": "x2",
"y": [
11,
17,
20,
21
],
"yaxis": "y2"
},
{
"hovertemplate": "filter=ExpCellFilterNew<br>fmax=0.001<br>natoms=%{x}<br>force_calls=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterNew",
"marker": {
"color": "#EF553B",
"symbol": "circle"
},
"mode": "markers",
"name": "ExpCellFilterNew",
"orientation": "v",
"showlegend": true,
"type": "scatter",
"x": [
4,
32,
108,
256
],
"xaxis": "x",
"y": [
17,
17,
27,
30
],
"yaxis": "y"
},
{
"hovertemplate": "filter=ExpCellFilterNew<br>fmax=0.01<br>natoms=%{x}<br>force_calls=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterNew",
"marker": {
"color": "#EF553B",
"symbol": "circle"
},
"mode": "markers",
"name": "ExpCellFilterNew",
"orientation": "v",
"showlegend": false,
"type": "scatter",
"x": [
4,
32,
108,
256
],
"xaxis": "x2",
"y": [
11,
17,
20,
21
],
"yaxis": "y2"
}
],
"layout": {
"annotations": [
{
"font": {},
"showarrow": false,
"text": "fmax=0.001",
"x": 0.245,
"xanchor": "center",
"xref": "paper",
"y": 1,
"yanchor": "bottom",
"yref": "paper"
},
{
"font": {},
"showarrow": false,
"text": "fmax=0.01",
"x": 0.755,
"xanchor": "center",
"xref": "paper",
"y": 1,
"yanchor": "bottom",
"yref": "paper"
}
],
"height": 512,
"legend": {
"title": {
"text": "filter"
},
"tracegroupgap": 0
},
"margin": {
"t": 60
},
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"sequentialminus": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"width": 1024,
"xaxis": {
"anchor": "y",
"domain": [
0,
0.49
],
"title": {
"text": "natoms"
}
},
"xaxis2": {
"anchor": "y2",
"domain": [
0.51,
1
],
"matches": "x",
"title": {
"text": "natoms"
}
},
"yaxis": {
"anchor": "x",
"domain": [
0,
1
],
"title": {
"text": "force_calls"
}
},
"yaxis2": {
"anchor": "x2",
"domain": [
0,
1
],
"matches": "y",
"showticklabels": false
}
}
}
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig = px.scatter(df_natoms, x='natoms', y='force_calls', color='filter', facet_col='fmax')\n",
"fig.update_layout({\n",
" \"width\": 1024,\n",
" \"height\": 512,\n",
"})\n",
"fig.write_image(\"filter_natoms_force_calls.png\")\n",
"fig"
]
},
{
"cell_type": "code",
"execution_count": 36,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"hovertemplate": "filter=ExpCellFilterOld<br>fmax=0.001<br>natoms=%{x}<br>elapsed_time_s=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterOld",
"marker": {
"color": "#636efa",
"symbol": "circle"
},
"mode": "markers",
"name": "ExpCellFilterOld",
"orientation": "v",
"showlegend": true,
"type": "scatter",
"x": [
4,
32,
108,
256
],
"xaxis": "x",
"y": [
0.6976763327000001,
1.9277911666,
6.2121572504,
12.3333787918
],
"yaxis": "y"
},
{
"hovertemplate": "filter=ExpCellFilterOld<br>fmax=0.01<br>natoms=%{x}<br>elapsed_time_s=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterOld",
"marker": {
"color": "#636efa",
"symbol": "circle"
},
"mode": "markers",
"name": "ExpCellFilterOld",
"orientation": "v",
"showlegend": false,
"type": "scatter",
"x": [
4,
32,
108,
256
],
"xaxis": "x2",
"y": [
0.4940905841,
1.5170766669,
4.165226541,
8.716559208
],
"yaxis": "y2"
},
{
"hovertemplate": "filter=ExpCellFilterNew<br>fmax=0.001<br>natoms=%{x}<br>elapsed_time_s=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterNew",
"marker": {
"color": "#EF553B",
"symbol": "circle"
},
"mode": "markers",
"name": "ExpCellFilterNew",
"orientation": "v",
"showlegend": true,
"type": "scatter",
"x": [
4,
32,
108,
256
],
"xaxis": "x",
"y": [
0.39196729100000005,
0.8178420411,
3.8855120833,
9.5296571669
],
"yaxis": "y"
},
{
"hovertemplate": "filter=ExpCellFilterNew<br>fmax=0.01<br>natoms=%{x}<br>elapsed_time_s=%{y}<extra></extra>",
"legendgroup": "ExpCellFilterNew",
"marker": {
"color": "#EF553B",
"symbol": "circle"
},
"mode": "markers",
"name": "ExpCellFilterNew",
"orientation": "v",
"showlegend": false,
"type": "scatter",
"x": [
4,
32,
108,
256
],
"xaxis": "x2",
"y": [
0.1495835837,
0.8162234589,
2.8439603751,
6.9008359998
],
"yaxis": "y2"
}
],
"layout": {
"annotations": [
{
"font": {},
"showarrow": false,
"text": "fmax=0.001",
"x": 0.245,
"xanchor": "center",
"xref": "paper",
"y": 1,
"yanchor": "bottom",
"yref": "paper"
},
{
"font": {},
"showarrow": false,
"text": "fmax=0.01",
"x": 0.755,
"xanchor": "center",
"xref": "paper",
"y": 1,
"yanchor": "bottom",
"yref": "paper"
}
],
"height": 512,
"legend": {
"title": {
"text": "filter"
},
"tracegroupgap": 0
},
"margin": {
"t": 60
},
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"sequentialminus": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"width": 1024,
"xaxis": {
"anchor": "y",
"domain": [
0,
0.49
],
"title": {
"text": "natoms"
}
},
"xaxis2": {
"anchor": "y2",
"domain": [
0.51,
1
],
"matches": "x",
"title": {
"text": "natoms"
}
},
"yaxis": {
"anchor": "x",
"domain": [
0,
1
],
"title": {
"text": "elapsed_time_s"
}
},
"yaxis2": {
"anchor": "x2",
"domain": [
0,
1
],
"matches": "y",
"showticklabels": false
}
}
}
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig = px.scatter(df_natoms, x='natoms', y='elapsed_time_s', color='filter', facet_col='fmax')\n",
"fig.update_layout({\n",
" \"width\": 1024,\n",
" \"height\": 512,\n",
"})\n",
"fig.write_image(\"filter_natoms_elapsed_time.png\")\n",
"fig"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "base",
"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.10.12"
},
"orig_nbformat": 4
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment