\n",
+ " "
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ },
+ {
+ "data": {
+ "application/vnd.plotly.v1+json": {
+ "config": {
+ "plotlyServerURL": "https://plot.ly"
+ },
+ "data": [
+ {
+ "fill": "toself",
+ "line": {
+ "color": "#00857C"
+ },
+ "name": "95% Pred Band",
+ "opacity": 0.3,
+ "showlegend": true,
+ "type": "scatter",
+ "x": [
+ 10,
+ 11.414141414141413,
+ 12.828282828282825,
+ 14.242424242424239,
+ 15.65656565656565,
+ 17.070707070707066,
+ 18.484848484848477,
+ 19.89898989898989,
+ 21.3131313131313,
+ 22.727272727272716,
+ 24.141414141414128,
+ 25.555555555555543,
+ 26.969696969696955,
+ 28.383838383838366,
+ 29.797979797979778,
+ 31.212121212121193,
+ 32.6262626262626,
+ 34.04040404040401,
+ 35.45454545454543,
+ 36.868686868686844,
+ 38.282828282828255,
+ 39.696969696969674,
+ 41.111111111111086,
+ 42.52525252525249,
+ 43.93939393939391,
+ 45.353535353535314,
+ 46.76767676767673,
+ 48.181818181818144,
+ 49.595959595959556,
+ 51.01010101010097,
+ 52.42424242424239,
+ 53.83838383838379,
+ 55.25252525252521,
+ 56.66666666666663,
+ 58.08080808080803,
+ 59.494949494949445,
+ 60.909090909090864,
+ 62.32323232323227,
+ 63.73737373737369,
+ 65.1515151515151,
+ 66.56565656565651,
+ 67.97979797979792,
+ 69.39393939393935,
+ 70.80808080808075,
+ 72.22222222222217,
+ 73.63636363636358,
+ 75.05050505050498,
+ 76.4646464646464,
+ 77.87878787878782,
+ 79.29292929292923,
+ 80.70707070707063,
+ 82.12121212121205,
+ 83.53535353535347,
+ 84.94949494949488,
+ 86.36363636363629,
+ 87.7777777777777,
+ 89.19191919191911,
+ 90.60606060606054,
+ 92.02020202020194,
+ 93.43434343434335,
+ 94.84848484848477,
+ 96.26262626262618,
+ 97.67676767676758,
+ 99.09090909090901,
+ 100.50505050505042,
+ 101.91919191919183,
+ 103.33333333333326,
+ 104.74747474747466,
+ 106.16161616161607,
+ 107.57575757575749,
+ 108.98989898989889,
+ 110.4040404040403,
+ 111.81818181818173,
+ 113.23232323232314,
+ 114.64646464646454,
+ 116.06060606060596,
+ 117.47474747474737,
+ 118.88888888888879,
+ 120.3030303030302,
+ 121.71717171717161,
+ 123.13131313131302,
+ 124.54545454545445,
+ 125.95959595959584,
+ 127.37373737373726,
+ 128.7878787878787,
+ 130.2020202020201,
+ 131.6161616161615,
+ 133.03030303030292,
+ 134.44444444444434,
+ 135.85858585858574,
+ 137.27272727272717,
+ 138.68686868686856,
+ 140.10101010100996,
+ 141.5151515151514,
+ 142.9292929292928,
+ 144.3434343434342,
+ 145.75757575757564,
+ 147.17171717171703,
+ 148.58585858585846,
+ 149.99999999999986,
+ 149.99999999999986,
+ 148.58585858585846,
+ 147.17171717171703,
+ 145.75757575757564,
+ 144.3434343434342,
+ 142.9292929292928,
+ 141.5151515151514,
+ 140.10101010100996,
+ 138.68686868686856,
+ 137.27272727272717,
+ 135.85858585858574,
+ 134.44444444444434,
+ 133.03030303030292,
+ 131.6161616161615,
+ 130.2020202020201,
+ 128.7878787878787,
+ 127.37373737373726,
+ 125.95959595959584,
+ 124.54545454545445,
+ 123.13131313131302,
+ 121.71717171717161,
+ 120.3030303030302,
+ 118.88888888888879,
+ 117.47474747474737,
+ 116.06060606060596,
+ 114.64646464646454,
+ 113.23232323232314,
+ 111.81818181818173,
+ 110.4040404040403,
+ 108.98989898989889,
+ 107.57575757575749,
+ 106.16161616161607,
+ 104.74747474747466,
+ 103.33333333333326,
+ 101.91919191919183,
+ 100.50505050505042,
+ 99.09090909090901,
+ 97.67676767676758,
+ 96.26262626262618,
+ 94.84848484848477,
+ 93.43434343434335,
+ 92.02020202020194,
+ 90.60606060606054,
+ 89.19191919191911,
+ 87.7777777777777,
+ 86.36363636363629,
+ 84.94949494949488,
+ 83.53535353535347,
+ 82.12121212121205,
+ 80.70707070707063,
+ 79.29292929292923,
+ 77.87878787878782,
+ 76.4646464646464,
+ 75.05050505050498,
+ 73.63636363636358,
+ 72.22222222222217,
+ 70.80808080808075,
+ 69.39393939393935,
+ 67.97979797979792,
+ 66.56565656565651,
+ 65.1515151515151,
+ 63.73737373737369,
+ 62.32323232323227,
+ 60.909090909090864,
+ 59.494949494949445,
+ 58.08080808080803,
+ 56.66666666666663,
+ 55.25252525252521,
+ 53.83838383838379,
+ 52.42424242424239,
+ 51.01010101010097,
+ 49.595959595959556,
+ 48.181818181818144,
+ 46.76767676767673,
+ 45.353535353535314,
+ 43.93939393939391,
+ 42.52525252525249,
+ 41.111111111111086,
+ 39.696969696969674,
+ 38.282828282828255,
+ 36.868686868686844,
+ 35.45454545454543,
+ 34.04040404040401,
+ 32.6262626262626,
+ 31.212121212121193,
+ 29.797979797979778,
+ 28.383838383838366,
+ 26.969696969696955,
+ 25.555555555555543,
+ 24.141414141414128,
+ 22.727272727272716,
+ 21.3131313131313,
+ 19.89898989898989,
+ 18.484848484848477,
+ 17.070707070707066,
+ 15.65656565656565,
+ 14.242424242424239,
+ 12.828282828282825,
+ 11.414141414141413,
+ 10
+ ],
+ "y": [
+ 75.91547712539727,
+ 74.93654367398881,
+ 74.02189785395134,
+ 73.17397561060321,
+ 72.3940365078906,
+ 71.68206182645756,
+ 71.03670271491046,
+ 70.45528484258708,
+ 69.93387077018227,
+ 69.46737569513706,
+ 69.04972729168168,
+ 68.6740568535102,
+ 68.33290731653742,
+ 68.01844402028928,
+ 67.72265591747737,
+ 67.43753779625996,
+ 67.15524732310504,
+ 66.86823382263606,
+ 66.56933833050053,
+ 66.25186641508387,
+ 65.90963654403734,
+ 65.53700745258317,
+ 65.12888818232207,
+ 64.68073434195605,
+ 64.18853382076665,
+ 63.64878476190882,
+ 63.05846814744654,
+ 62.41501690725669,
+ 61.71628306614554,
+ 60.960504100048745,
+ 60.14626938573918,
+ 59.27248739607537,
+ 58.338354108502195,
+ 57.34332295113223,
+ 56.28707650110797,
+ 55.1695000674466,
+ 53.99065722945813,
+ 52.750767357263975,
+ 51.4501851090203,
+ 50.08938187705001,
+ 48.668929139777255,
+ 47.189483666297555,
+ 45.651774514191594,
+ 44.056591757792496,
+ 42.40477688277267,
+ 40.69721478313543,
+ 38.9348272980824,
+ 37.11856822858912,
+ 35.249419776693976,
+ 33.3283903544534,
+ 31.35651371421786,
+ 29.334849357400145,
+ 27.264484185297825,
+ 25.146535362932823,
+ 22.98215437541382,
+ 20.77253226620784,
+ 18.518906058153185,
+ 16.222566371338637,
+ 13.88486626744887,
+ 11.507231368260669,
+ 9.091171317157112,
+ 6.6382926774169775,
+ 4.150313390344088,
+ 1.629078950850193,
+ -0.9234195011526509,
+ -3.505024927238747,
+ -6.113391672268019,
+ -8.745959913389857,
+ -11.399926832571541,
+ -14.07221398322078,
+ -16.759430226558006,
+ -19.4578295123209,
+ -22.163262677609946,
+ -24.871122349196398,
+ -27.576279979213396,
+ -30.273014056170783,
+ -32.95492866727976,
+ -35.61486192807671,
+ -38.244784465776526,
+ -40.835689320637485,
+ -43.377476552632054,
+ -45.85883880217896,
+ -48.267158364799414,
+ -50.58843222741681,
+ -52.80724891210001,
+ -54.90684916425528,
+ -56.8693096470514,
+ -58.67589139282414,
+ -60.30758772279147,
+ -61.74588412556804,
+ -62.97370217601387,
+ -63.97644502712561,
+ -64.74300791736174,
+ -65.26658669754465,
+ -65.54513209986311,
+ -65.58136244536286,
+ -65.38234335096413,
+ -64.95873376179742,
+ -64.32385076365706,
+ -63.49270919923052,
+ -134.35118964736247,
+ -132.6433140913189,
+ -131.03366724088275,
+ -129.53657885225593,
+ -128.1648952715463,
+ -126.92902429453707,
+ -125.83600284501128,
+ -124.8887433731432,
+ -124.08561141935908,
+ -123.42043377739313,
+ -122.88294603450103,
+ -122.45959249130013,
+ -122.13452655127222,
+ -121.89064498211272,
+ -121.7105198902907,
+ -121.57714631659994,
+ -121.47447786714238,
+ -121.38776314971042,
+ -121.30371794798555,
+ -121.21057504713042,
+ -121.09805098089686,
+ -120.95726179723664,
+ -120.78061170721224,
+ -120.56167105075832,
+ -120.29505409946012,
+ -119.97630288699798,
+ -119.60178028433592,
+ -119.16857360702127,
+ -118.67440886187018,
+ -118.11757507114808,
+ -117.49685777630131,
+ -116.81148069509072,
+ -116.06105450101705,
+ -115.24553175706674,
+ -114.36516713223733,
+ -113.42048213790756,
+ -112.41223372960593,
+ -111.34138622151428,
+ -110.20908605294025,
+ -109.01663902695981,
+ -107.76548971156691,
+ -106.45720275371573,
+ -105.09344590761941,
+ -103.675974621694,
+ -102.20661806467993,
+ -100.68726650174176,
+ -99.11985995662081,
+ -97.5063781169745,
+ -95.84883145753739,
+ -94.14925357025757,
+ -92.40969470255843,
+ -90.63221651478156,
+ -88.81888807599752,
+ -86.97178312404728,
+ -85.09297862112714,
+ -83.18455464068668,
+ -81.24859562503352,
+ -79.28719305598595,
+ -77.30244958327799,
+ -75.29648465726004,
+ -73.27144171374003,
+ -71.22949695948753,
+ -69.17286980679026,
+ -67.10383500417132,
+ -65.0247365074496,
+ -62.93800313001654,
+ -60.84616600247186,
+ -58.75187785822136,
+ -56.65793414138797,
+ -54.56729590400032,
+ -52.483114417722255,
+ -50.40875736743855,
+ -48.34783641492515,
+ -46.30423581483453,
+ -44.282141625642545,
+ -42.286070877828024,
+ -40.32089983323004,
+ -38.391890187258035,
+ -36.504711726436874,
+ -34.66545956038479,
+ -32.88066361204647,
+ -31.157287599526825,
+ -29.502714323879374,
+ -27.924713761520135,
+ -26.4313903475278,
+ -25.031106052650543,
+ -23.732376542283475,
+ -22.543738989642215,
+ -21.473592077909252,
+ -20.53001134704193,
+ -19.720546148616407,
+ -19.052007712182455,
+ -18.530260675292027,
+ -18.16003227091072,
+ -17.944753634396417,
+ -17.88644604620109,
+ -17.985661396818323,
+ -18.241481204437953,
+ -18.651572937080438,
+ -19.21229714074586
+ ]
+ },
+ {
+ "line": {
+ "color": "#00857C"
+ },
+ "mode": "lines",
+ "name": "Mean",
+ "type": "scatter",
+ "x": [
+ 10,
+ 11.414141414141413,
+ 12.828282828282825,
+ 14.242424242424239,
+ 15.65656565656565,
+ 17.070707070707066,
+ 18.484848484848477,
+ 19.89898989898989,
+ 21.3131313131313,
+ 22.727272727272716,
+ 24.141414141414128,
+ 25.555555555555543,
+ 26.969696969696955,
+ 28.383838383838366,
+ 29.797979797979778,
+ 31.212121212121193,
+ 32.6262626262626,
+ 34.04040404040401,
+ 35.45454545454543,
+ 36.868686868686844,
+ 38.282828282828255,
+ 39.696969696969674,
+ 41.111111111111086,
+ 42.52525252525249,
+ 43.93939393939391,
+ 45.353535353535314,
+ 46.76767676767673,
+ 48.181818181818144,
+ 49.595959595959556,
+ 51.01010101010097,
+ 52.42424242424239,
+ 53.83838383838379,
+ 55.25252525252521,
+ 56.66666666666663,
+ 58.08080808080803,
+ 59.494949494949445,
+ 60.909090909090864,
+ 62.32323232323227,
+ 63.73737373737369,
+ 65.1515151515151,
+ 66.56565656565651,
+ 67.97979797979792,
+ 69.39393939393935,
+ 70.80808080808075,
+ 72.22222222222217,
+ 73.63636363636358,
+ 75.05050505050498,
+ 76.4646464646464,
+ 77.87878787878782,
+ 79.29292929292923,
+ 80.70707070707063,
+ 82.12121212121205,
+ 83.53535353535347,
+ 84.94949494949488,
+ 86.36363636363629,
+ 87.7777777777777,
+ 89.19191919191911,
+ 90.60606060606054,
+ 92.02020202020194,
+ 93.43434343434335,
+ 94.84848484848477,
+ 96.26262626262618,
+ 97.67676767676758,
+ 99.09090909090901,
+ 100.50505050505042,
+ 101.91919191919183,
+ 103.33333333333326,
+ 104.74747474747466,
+ 106.16161616161607,
+ 107.57575757575749,
+ 108.98989898989889,
+ 110.4040404040403,
+ 111.81818181818173,
+ 113.23232323232314,
+ 114.64646464646454,
+ 116.06060606060596,
+ 117.47474747474737,
+ 118.88888888888879,
+ 120.3030303030302,
+ 121.71717171717161,
+ 123.13131313131302,
+ 124.54545454545445,
+ 125.95959595959584,
+ 127.37373737373726,
+ 128.7878787878787,
+ 130.2020202020201,
+ 131.6161616161615,
+ 133.03030303030292,
+ 134.44444444444434,
+ 135.85858585858574,
+ 137.27272727272717,
+ 138.68686868686856,
+ 140.10101010100996,
+ 141.5151515151514,
+ 142.9292929292928,
+ 144.3434343434342,
+ 145.75757575757564,
+ 147.17171717171703,
+ 148.58585858585846,
+ 149.99999999999986
+ ],
+ "y": [
+ 28.351583855474644,
+ 28.142479330929,
+ 27.890202372692535,
+ 27.594151226032515,
+ 27.253789406700555,
+ 26.86864831405552,
+ 26.438329467770018,
+ 25.96250634304186,
+ 25.440925788372766,
+ 24.873409019599045,
+ 24.259852193381832,
+ 23.60022657222558,
+ 22.894578300843882,
+ 22.14302782000474,
+ 21.345768948713832,
+ 20.503067668725272,
+ 19.615260647025913,
+ 18.682753532328064,
+ 17.706019060979543,
+ 16.685595006314166,
+ 15.622082003559427,
+ 14.516141280191988,
+ 13.368492319234285,
+ 12.179910480532811,
+ 10.951224602615333,
+ 9.683314605329414,
+ 8.377109111135937,
+ 7.033583100669738,
+ 5.653755615980501,
+ 4.238687522726586,
+ 2.7894793405063822,
+ 1.3072691484792358,
+ -0.20676942854534275,
+ -1.7514291502704822,
+ -3.325471005862635,
+ -4.927625973931772,
+ -6.556596699363855,
+ -8.211059090259916,
+ -9.889663839504117,
+ -11.591037876557078,
+ -13.313785755956584,
+ -15.056490989672053,
+ -16.81771733091794,
+ -18.59601001726672,
+ -20.38989698093383,
+ -22.197890033930616,
+ -24.01848603542745,
+ -25.850168048139142,
+ -27.691406489877693,
+ -29.54066028562567,
+ -31.396378024605813,
+ -33.25699912587624,
+ -35.12095501501436,
+ -36.98667031347601,
+ -38.85256404128416,
+ -40.717050832825734,
+ -42.57854216476555,
+ -44.43544759443828,
+ -46.28617600660062,
+ -48.1291368661349,
+ -49.96274147423279,
+ -51.78540422578055,
+ -53.59554386614688,
+ -55.391584746372786,
+ -57.17195807690287,
+ -58.93510318151036,
+ -60.679468754963395,
+ -62.403514130278836,
+ -64.10571056410593,
+ -65.78454255185697,
+ -67.43850918763567,
+ -69.06612558772224,
+ -70.66592440028968,
+ -72.23645742799857,
+ -73.77629739398498,
+ -75.28403988528709,
+ -76.75830551067583,
+ -78.19774231182876,
+ -79.60102846742618,
+ -80.96687532862572,
+ -82.29403082102397,
+ -83.58128324215699,
+ -84.82746547438684,
+ -86.0314596202564,
+ -87.19220205081052,
+ -88.30868883688899,
+ -89.37998150921663,
+ -90.40521306587037,
+ -91.38359411657508,
+ -92.31441902408815,
+ -93.19707187622276,
+ -94.03103210098473,
+ -94.81587952535398,
+ -95.55129867871182,
+ -96.23708215717716,
+ -96.87313289582245,
+ -97.45946524030654,
+ -97.99620476394402,
+ -98.48358683489027,
+ -98.92195399449503
+ ]
+ }
+ ],
+ "layout": {
+ "autosize": false,
+ "height": 400,
+ "template": {
+ "data": {
+ "bar": [
+ {
+ "error_x": {
+ "color": "rgb(51,51,51)"
+ },
+ "error_y": {
+ "color": "rgb(51,51,51)"
+ },
+ "marker": {
+ "line": {
+ "color": "rgb(237,237,237)",
+ "width": 0.5
+ },
+ "pattern": {
+ "fillmode": "overlay",
+ "size": 10,
+ "solidity": 0.2
+ }
+ },
+ "type": "bar"
+ }
+ ],
+ "barpolar": [
+ {
+ "marker": {
+ "line": {
+ "color": "rgb(237,237,237)",
+ "width": 0.5
+ },
+ "pattern": {
+ "fillmode": "overlay",
+ "size": 10,
+ "solidity": 0.2
+ }
+ },
+ "type": "barpolar"
+ }
+ ],
+ "carpet": [
+ {
+ "aaxis": {
+ "endlinecolor": "rgb(51,51,51)",
+ "gridcolor": "white",
+ "linecolor": "white",
+ "minorgridcolor": "white",
+ "startlinecolor": "rgb(51,51,51)"
+ },
+ "baxis": {
+ "endlinecolor": "rgb(51,51,51)",
+ "gridcolor": "white",
+ "linecolor": "white",
+ "minorgridcolor": "white",
+ "startlinecolor": "rgb(51,51,51)"
+ },
+ "type": "carpet"
+ }
+ ],
+ "choropleth": [
+ {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ },
+ "type": "choropleth"
+ }
+ ],
+ "contour": [
+ {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ },
+ "colorscale": [
+ [
+ 0,
+ "rgb(20,44,66)"
+ ],
+ [
+ 1,
+ "rgb(90,179,244)"
+ ]
+ ],
+ "type": "contour"
+ }
+ ],
+ "contourcarpet": [
+ {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ },
+ "type": "contourcarpet"
+ }
+ ],
+ "heatmap": [
+ {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ },
+ "colorscale": [
+ [
+ 0,
+ "rgb(20,44,66)"
+ ],
+ [
+ 1,
+ "rgb(90,179,244)"
+ ]
+ ],
+ "type": "heatmap"
+ }
+ ],
+ "heatmapgl": [
+ {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ },
+ "colorscale": [
+ [
+ 0,
+ "rgb(20,44,66)"
+ ],
+ [
+ 1,
+ "rgb(90,179,244)"
+ ]
+ ],
+ "type": "heatmapgl"
+ }
+ ],
+ "histogram": [
+ {
+ "marker": {
+ "pattern": {
+ "fillmode": "overlay",
+ "size": 10,
+ "solidity": 0.2
+ }
+ },
+ "type": "histogram"
+ }
+ ],
+ "histogram2d": [
+ {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ },
+ "colorscale": [
+ [
+ 0,
+ "rgb(20,44,66)"
+ ],
+ [
+ 1,
+ "rgb(90,179,244)"
+ ]
+ ],
+ "type": "histogram2d"
+ }
+ ],
+ "histogram2dcontour": [
+ {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ },
+ "colorscale": [
+ [
+ 0,
+ "rgb(20,44,66)"
+ ],
+ [
+ 1,
+ "rgb(90,179,244)"
+ ]
+ ],
+ "type": "histogram2dcontour"
+ }
+ ],
+ "mesh3d": [
+ {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ },
+ "type": "mesh3d"
+ }
+ ],
+ "parcoords": [
+ {
+ "line": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "type": "parcoords"
+ }
+ ],
+ "pie": [
+ {
+ "automargin": true,
+ "type": "pie"
+ }
+ ],
+ "scatter": [
+ {
+ "fillpattern": {
+ "fillmode": "overlay",
+ "size": 10,
+ "solidity": 0.2
+ },
+ "type": "scatter"
+ }
+ ],
+ "scatter3d": [
+ {
+ "line": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "marker": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "type": "scatter3d"
+ }
+ ],
+ "scattercarpet": [
+ {
+ "marker": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "type": "scattercarpet"
+ }
+ ],
+ "scattergeo": [
+ {
+ "marker": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "type": "scattergeo"
+ }
+ ],
+ "scattergl": [
+ {
+ "marker": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "type": "scattergl"
+ }
+ ],
+ "scattermapbox": [
+ {
+ "marker": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "type": "scattermapbox"
+ }
+ ],
+ "scatterpolar": [
+ {
+ "marker": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "type": "scatterpolar"
+ }
+ ],
+ "scatterpolargl": [
+ {
+ "marker": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "type": "scatterpolargl"
+ }
+ ],
+ "scatterternary": [
+ {
+ "marker": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "type": "scatterternary"
+ }
+ ],
+ "surface": [
+ {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ },
+ "colorscale": [
+ [
+ 0,
+ "rgb(20,44,66)"
+ ],
+ [
+ 1,
+ "rgb(90,179,244)"
+ ]
+ ],
+ "type": "surface"
+ }
+ ],
+ "table": [
+ {
+ "cells": {
+ "fill": {
+ "color": "rgb(237,237,237)"
+ },
+ "line": {
+ "color": "white"
+ }
+ },
+ "header": {
+ "fill": {
+ "color": "rgb(217,217,217)"
+ },
+ "line": {
+ "color": "white"
+ }
+ },
+ "type": "table"
+ }
+ ]
+ },
+ "layout": {
+ "annotationdefaults": {
+ "arrowhead": 0,
+ "arrowwidth": 1
+ },
+ "autotypenumbers": "strict",
+ "coloraxis": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "colorscale": {
+ "sequential": [
+ [
+ 0,
+ "rgb(20,44,66)"
+ ],
+ [
+ 1,
+ "rgb(90,179,244)"
+ ]
+ ],
+ "sequentialminus": [
+ [
+ 0,
+ "rgb(20,44,66)"
+ ],
+ [
+ 1,
+ "rgb(90,179,244)"
+ ]
+ ]
+ },
+ "colorway": [
+ "#F8766D",
+ "#A3A500",
+ "#00BF7D",
+ "#00B0F6",
+ "#E76BF3"
+ ],
+ "font": {
+ "color": "rgb(51,51,51)"
+ },
+ "geo": {
+ "bgcolor": "white",
+ "lakecolor": "white",
+ "landcolor": "rgb(237,237,237)",
+ "showlakes": true,
+ "showland": true,
+ "subunitcolor": "white"
+ },
+ "hoverlabel": {
+ "align": "left"
+ },
+ "hovermode": "closest",
+ "paper_bgcolor": "white",
+ "plot_bgcolor": "rgb(237,237,237)",
+ "polar": {
+ "angularaxis": {
+ "gridcolor": "white",
+ "linecolor": "white",
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside"
+ },
+ "bgcolor": "rgb(237,237,237)",
+ "radialaxis": {
+ "gridcolor": "white",
+ "linecolor": "white",
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside"
+ }
+ },
+ "scene": {
+ "xaxis": {
+ "backgroundcolor": "rgb(237,237,237)",
+ "gridcolor": "white",
+ "gridwidth": 2,
+ "linecolor": "white",
+ "showbackground": true,
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside",
+ "zerolinecolor": "white"
+ },
+ "yaxis": {
+ "backgroundcolor": "rgb(237,237,237)",
+ "gridcolor": "white",
+ "gridwidth": 2,
+ "linecolor": "white",
+ "showbackground": true,
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside",
+ "zerolinecolor": "white"
+ },
+ "zaxis": {
+ "backgroundcolor": "rgb(237,237,237)",
+ "gridcolor": "white",
+ "gridwidth": 2,
+ "linecolor": "white",
+ "showbackground": true,
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside",
+ "zerolinecolor": "white"
+ }
+ },
+ "shapedefaults": {
+ "fillcolor": "black",
+ "line": {
+ "width": 0
+ },
+ "opacity": 0.3
+ },
+ "ternary": {
+ "aaxis": {
+ "gridcolor": "white",
+ "linecolor": "white",
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside"
+ },
+ "baxis": {
+ "gridcolor": "white",
+ "linecolor": "white",
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside"
+ },
+ "bgcolor": "rgb(237,237,237)",
+ "caxis": {
+ "gridcolor": "white",
+ "linecolor": "white",
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside"
+ }
+ },
+ "xaxis": {
+ "automargin": true,
+ "gridcolor": "white",
+ "linecolor": "white",
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside",
+ "title": {
+ "standoff": 15
+ },
+ "zerolinecolor": "white"
+ },
+ "yaxis": {
+ "automargin": true,
+ "gridcolor": "white",
+ "linecolor": "white",
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside",
+ "title": {
+ "standoff": 15
+ },
+ "zerolinecolor": "white"
+ }
+ }
+ },
+ "title": {
+ "text": "Factor Effect Plot for Concentration"
+ },
+ "width": 600,
+ "xaxis": {
+ "title": {
+ "text": "Concentration"
+ }
+ },
+ "yaxis": {
+ "title": {
+ "text": "Product"
+ }
+ }
+ }
+ },
+ "text/html": [
+ "
"
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ }
+ ],
+ "source": [
+ "factor_plot(campaign.optimizer, feature_id=1)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Optimize new experiment suggestions"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 8,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "from obsidian.objectives import Objective_Sequence, Feature_Objective, Scalar_WeightedSum"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Note: Objectives can be passed directly to an `Optimizer`, or set using `campaign.set_objective()` after which the `Campaign` will automatically use the objective durign `campaign.suggest()`. At any time, the objective can be re-set to a new objective, or deleted using `campaign.clear_objective()`."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 9,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "penalize_enz_loading = Feature_Objective(X_space, indices=[2], coeff=[-5])\n",
+ "add_objectives = Scalar_WeightedSum(1)\n",
+ "\n",
+ "campaign.set_objective(objective=Objective_Sequence([penalize_enz_loading, add_objectives]))"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 10,
+ "metadata": {},
+ "outputs": [
+ {
+ "name": "stderr",
+ "output_type": "stream",
+ "text": [
+ "c:\\Users\\kevin\\miniconda3\\envs\\obsidian-dev\\lib\\site-packages\\botorch\\optim\\optimize.py:564: RuntimeWarning:\n",
+ "\n",
+ "Optimization failed in `gen_candidates_scipy` with the following warning(s):\n",
+ "[OptimizationWarning('Optimization failed within `scipy.optimize.minimize` with status 2 and message ABNORMAL_TERMINATION_IN_LNSRCH.')]\n",
+ "Trying again with a new set of initial conditions.\n",
+ "\n",
+ "c:\\Users\\kevin\\miniconda3\\envs\\obsidian-dev\\lib\\site-packages\\botorch\\optim\\optimize.py:564: RuntimeWarning:\n",
+ "\n",
+ "Optimization failed on the second try, after generating a new set of initial conditions.\n",
+ "\n"
+ ]
+ }
+ ],
+ "source": [
+ "X_suggest, eval_suggest = campaign.suggest(m_batch = 3, optim_sequential = False)"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 11,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/html": [
+ "
\n",
+ "\n",
+ "
\n",
+ " \n",
+ " \n",
+ " | \n",
+ " Temperature | \n",
+ " Concentration | \n",
+ " Enzyme | \n",
+ " Product (pred) | \n",
+ " Product lb | \n",
+ " Product ub | \n",
+ " f(Product) | \n",
+ " Objective 1 | \n",
+ " aq Value | \n",
+ " aq Value (joint) | \n",
+ " aq Method | \n",
+ "
\n",
+ " \n",
+ " \n",
+ " \n",
+ " 0 | \n",
+ " -1.366459 | \n",
+ " 23.701565 | \n",
+ " 0.027559 | \n",
+ " 82.545038 | \n",
+ " 52.602369 | \n",
+ " 112.487712 | \n",
+ " 1.704477 | \n",
+ " 1.566681 | \n",
+ " -1.214936 | \n",
+ " -0.977403 | \n",
+ " NEI | \n",
+ "
\n",
+ " \n",
+ " 1 | \n",
+ " 0.748942 | \n",
+ " 100.907522 | \n",
+ " 0.276121 | \n",
+ " -70.506235 | \n",
+ " -99.886332 | \n",
+ " -41.126134 | \n",
+ " -0.532599 | \n",
+ " -1.913204 | \n",
+ " -46.057986 | \n",
+ " -0.977403 | \n",
+ " NEI | \n",
+ "
\n",
+ " \n",
+ " 2 | \n",
+ " -10.000000 | \n",
+ " 53.696260 | \n",
+ " 0.060275 | \n",
+ " 76.435947 | \n",
+ " 46.268528 | \n",
+ " 106.603372 | \n",
+ " 1.615183 | \n",
+ " 1.313808 | \n",
+ " -1.893481 | \n",
+ " -0.977403 | \n",
+ " NEI | \n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
"
+ ],
+ "text/plain": [
+ " Temperature Concentration Enzyme Product (pred) Product lb \\\n",
+ "0 -1.366459 23.701565 0.027559 82.545038 52.602369 \n",
+ "1 0.748942 100.907522 0.276121 -70.506235 -99.886332 \n",
+ "2 -10.000000 53.696260 0.060275 76.435947 46.268528 \n",
+ "\n",
+ " Product ub f(Product) Objective 1 aq Value aq Value (joint) aq Method \n",
+ "0 112.487712 1.704477 1.566681 -1.214936 -0.977403 NEI \n",
+ "1 -41.126134 -0.532599 -1.913204 -46.057986 -0.977403 NEI \n",
+ "2 106.603372 1.615183 1.313808 -1.893481 -0.977403 NEI "
+ ]
+ },
+ "execution_count": 11,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "df_suggest = pd.concat([X_suggest, eval_suggest], axis=1)\n",
+ "df_suggest"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Note: We can examine the output of various objectives within the sequence by passing them directly to `optimizer.evaluate`. Here, we can explicitly see the balance of Objective 1 (product response) and Objective 2 (cost penalty) before they are combined in the weighted sum."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 12,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/html": [
+ "
\n",
+ "\n",
+ "
\n",
+ " \n",
+ " \n",
+ " | \n",
+ " Product (pred) | \n",
+ " Product lb | \n",
+ " Product ub | \n",
+ " f(Product) | \n",
+ " Objective 1 | \n",
+ " Objective 2 | \n",
+ " Expected Hypervolume (joint) | \n",
+ " Expected Pareto | \n",
+ "
\n",
+ " \n",
+ " \n",
+ " \n",
+ " 0 | \n",
+ " 82.545038 | \n",
+ " 52.602369 | \n",
+ " 112.487712 | \n",
+ " 1.704477 | \n",
+ " 1.704477 | \n",
+ " -0.137796 | \n",
+ " 4.775616 | \n",
+ " False | \n",
+ "
\n",
+ " \n",
+ " 1 | \n",
+ " -70.506235 | \n",
+ " -99.886332 | \n",
+ " -41.126134 | \n",
+ " -0.532599 | \n",
+ " -0.532599 | \n",
+ " -1.380605 | \n",
+ " 4.775616 | \n",
+ " False | \n",
+ "
\n",
+ " \n",
+ " 2 | \n",
+ " 76.435947 | \n",
+ " 46.268528 | \n",
+ " 106.603372 | \n",
+ " 1.615183 | \n",
+ " 1.615183 | \n",
+ " -0.301376 | \n",
+ " 4.775616 | \n",
+ " True | \n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
"
+ ],
+ "text/plain": [
+ " Product (pred) Product lb Product ub f(Product) Objective 1 \\\n",
+ "0 82.545038 52.602369 112.487712 1.704477 1.704477 \n",
+ "1 -70.506235 -99.886332 -41.126134 -0.532599 -0.532599 \n",
+ "2 76.435947 46.268528 106.603372 1.615183 1.615183 \n",
+ "\n",
+ " Objective 2 Expected Hypervolume (joint) Expected Pareto \n",
+ "0 -0.137796 4.775616 False \n",
+ "1 -1.380605 4.775616 False \n",
+ "2 -0.301376 4.775616 True "
+ ]
+ },
+ "execution_count": 12,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "campaign.optimizer.evaluate(X_suggest, objective=penalize_enz_loading)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Collect data at new suggestions"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 13,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/html": [
+ "
\n",
+ "\n",
+ "
\n",
+ " \n",
+ " \n",
+ " | \n",
+ " Temperature | \n",
+ " Concentration | \n",
+ " Enzyme | \n",
+ " Product | \n",
+ " Iteration | \n",
+ " Objective 1 | \n",
+ " Product (pred) | \n",
+ " Product lb | \n",
+ " Product ub | \n",
+ " f(Product) | \n",
+ " aq Value | \n",
+ " aq Value (joint) | \n",
+ " aq Method | \n",
+ " Objective 1 (max) (iter) | \n",
+ "
\n",
+ " \n",
+ " Observation ID | \n",
+ " | \n",
+ " | \n",
+ " | \n",
+ " | \n",
+ " | \n",
+ " | \n",
+ " | \n",
+ " | \n",
+ " | \n",
+ " | \n",
+ " | \n",
+ " | \n",
+ " | \n",
+ " | \n",
+ "
\n",
+ " \n",
+ " \n",
+ " \n",
+ " 8 | \n",
+ " 24.000000 | \n",
+ " 115.000000 | \n",
+ " 0.256500 | \n",
+ " -166.801349 | \n",
+ " 0 | \n",
+ " -3.222598 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " 1.363311 | \n",
+ "
\n",
+ " \n",
+ " 9 | \n",
+ " -4.000000 | \n",
+ " 31.000000 | \n",
+ " 0.082500 | \n",
+ " 87.425397 | \n",
+ " 0 | \n",
+ " 1.363311 | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " NaN | \n",
+ " 1.363311 | \n",
+ "
\n",
+ " \n",
+ " 10 | \n",
+ " -1.366459 | \n",
+ " 23.701565 | \n",
+ " 0.027559 | \n",
+ " 100.139209 | \n",
+ " 1 | \n",
+ " 1.823846 | \n",
+ " 82.545038 | \n",
+ " 52.602369 | \n",
+ " 112.487712 | \n",
+ " 1.704477 | \n",
+ " -1.214936 | \n",
+ " -0.977403 | \n",
+ " NEI | \n",
+ " 1.823846 | \n",
+ "
\n",
+ " \n",
+ " 11 | \n",
+ " 0.748942 | \n",
+ " 100.907522 | \n",
+ " 0.276121 | \n",
+ " -79.689998 | \n",
+ " 1 | \n",
+ " -2.047438 | \n",
+ " -70.506235 | \n",
+ " -99.886332 | \n",
+ " -41.126134 | \n",
+ " -0.532599 | \n",
+ " -46.057986 | \n",
+ " -0.977403 | \n",
+ " NEI | \n",
+ " 1.823846 | \n",
+ "
\n",
+ " \n",
+ " 12 | \n",
+ " -10.000000 | \n",
+ " 53.696260 | \n",
+ " 0.060275 | \n",
+ " 87.065807 | \n",
+ " 1 | \n",
+ " 1.469179 | \n",
+ " 76.435947 | \n",
+ " 46.268528 | \n",
+ " 106.603372 | \n",
+ " 1.615183 | \n",
+ " -1.893481 | \n",
+ " -0.977403 | \n",
+ " NEI | \n",
+ " 1.823846 | \n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
"
+ ],
+ "text/plain": [
+ " Temperature Concentration Enzyme Product Iteration \\\n",
+ "Observation ID \n",
+ "8 24.000000 115.000000 0.256500 -166.801349 0 \n",
+ "9 -4.000000 31.000000 0.082500 87.425397 0 \n",
+ "10 -1.366459 23.701565 0.027559 100.139209 1 \n",
+ "11 0.748942 100.907522 0.276121 -79.689998 1 \n",
+ "12 -10.000000 53.696260 0.060275 87.065807 1 \n",
+ "\n",
+ " Objective 1 Product (pred) Product lb Product ub \\\n",
+ "Observation ID \n",
+ "8 -3.222598 NaN NaN NaN \n",
+ "9 1.363311 NaN NaN NaN \n",
+ "10 1.823846 82.545038 52.602369 112.487712 \n",
+ "11 -2.047438 -70.506235 -99.886332 -41.126134 \n",
+ "12 1.469179 76.435947 46.268528 106.603372 \n",
+ "\n",
+ " f(Product) aq Value aq Value (joint) aq Method \\\n",
+ "Observation ID \n",
+ "8 NaN NaN NaN NaN \n",
+ "9 NaN NaN NaN NaN \n",
+ "10 1.704477 -1.214936 -0.977403 NEI \n",
+ "11 -0.532599 -46.057986 -0.977403 NEI \n",
+ "12 1.615183 -1.893481 -0.977403 NEI \n",
+ "\n",
+ " Objective 1 (max) (iter) \n",
+ "Observation ID \n",
+ "8 1.363311 \n",
+ "9 1.363311 \n",
+ "10 1.823846 \n",
+ "11 1.823846 \n",
+ "12 1.823846 "
+ ]
+ },
+ "execution_count": 13,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "y_iter1 = pd.DataFrame(simulator.simulate(X_suggest), columns = ['Product'])\n",
+ "Z_iter1 = pd.concat([X_suggest, y_iter1, eval_suggest], axis=1)\n",
+ "campaign.add_data(Z_iter1)\n",
+ "campaign.data.tail()"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Repeat as desired"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 14,
+ "metadata": {},
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "GP model has been fit to data with a train-score of: 1 for response: Product\n",
+ "GP model has been fit to data with a train-score of: 1 for response: Product\n",
+ "GP model has been fit to data with a train-score of: 1 for response: Product\n"
+ ]
+ }
+ ],
+ "source": [
+ "for iter in range(3):\n",
+ " campaign.fit()\n",
+ " X_suggest, eval_suggest = campaign.suggest(m_batch=3)\n",
+ " y_iter = pd.DataFrame(simulator.simulate(X_suggest))\n",
+ " Z_iter = pd.concat([X_suggest, y_iter, eval_suggest], axis=1)\n",
+ " campaign.add_data(Z_iter)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Examine the optimization progress from the context of different elements of the compositve objective function\n",
+ "\n",
+ "First, the final objective - a weighted sum of product yield and a cost-penalized input."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 15,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "application/vnd.plotly.v1+json": {
+ "config": {
+ "plotlyServerURL": "https://plot.ly"
+ },
+ "data": [
+ {
+ "customdata": [
+ [
+ 16,
+ 17,
+ 0.1985
+ ],
+ [
+ 0,
+ 129,
+ 0.1695
+ ],
+ [
+ 8,
+ 59,
+ 0.2855
+ ],
+ [
+ 12,
+ 143,
+ 0.11149999999999999
+ ],
+ [
+ -8,
+ 87,
+ 0.22749999999999998
+ ],
+ [
+ 20,
+ 73,
+ 0.0535
+ ],
+ [
+ 4,
+ 101,
+ 0.0245
+ ],
+ [
+ 28,
+ 45,
+ 0.1405
+ ],
+ [
+ 24,
+ 115,
+ 0.25649999999999995
+ ],
+ [
+ -4,
+ 31,
+ 0.08249999999999999
+ ],
+ [
+ -1.3664591211884574,
+ 23.701565198152267,
+ 0.027559246753660803
+ ],
+ [
+ 0.7489422280527407,
+ 100.90752207071628,
+ 0.27612099185375494
+ ],
+ [
+ -10,
+ 53.69626037949452,
+ 0.06027515490291318
+ ],
+ [
+ -9.884284602635885,
+ 12.56932955572526,
+ 0.01
+ ],
+ [
+ -2.4201706792597815,
+ 35.28138623326379,
+ 0.01
+ ],
+ [
+ 5.163747567854349,
+ 10,
+ 0.01
+ ],
+ [
+ -10,
+ 10,
+ 0.010000000000000633
+ ],
+ [
+ -10,
+ 150,
+ 0.01
+ ],
+ [
+ 4.000327329371169,
+ 100.99715275317062,
+ 0.024501386042708045
+ ],
+ [
+ -8.554406718721287,
+ 11.952295649778815,
+ 0.012068813124359354
+ ],
+ [
+ -4.320745462543664,
+ 14.994429360903585,
+ 0.04345828472841849
+ ],
+ [
+ -2.234654091253856,
+ 21.80951451897183,
+ 0.024727325215798936
+ ]
+ ],
+ "hovertemplate": "
Temperature: %{customdata[0]:.3G}Concentration: %{customdata[1]:.3G}Enzyme: %{customdata[2]:.3G}Experiment: %{x:.3G}
Objective 1: %{y:.3G}
",
+ "marker": {
+ "color": [
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ -1.214936486425679,
+ -46.05798556097491,
+ -1.8934809161165003,
+ -1.9425153609733758,
+ -2.304711901139429,
+ -2.916211679852649,
+ -5.041349531173079,
+ -8.741279211535392,
+ -43.809336066433794,
+ -6.034952600890604,
+ -40.35409791551022,
+ -40.05001848731589
+ ],
+ "colorbar": {
+ "title": {
+ "text": "aq Value"
+ }
+ },
+ "colorscale": [
+ [
+ 0,
+ "#5450E4"
+ ],
+ [
+ 0.5,
+ "#00857C"
+ ],
+ [
+ 1,
+ "#FFF063"
+ ]
+ ],
+ "showscale": true
+ },
+ "mode": "markers",
+ "name": "Data",
+ "type": "scatter",
+ "x": [
+ 0,
+ 1,
+ 2,
+ 3,
+ 4,
+ 5,
+ 6,
+ 7,
+ 8,
+ 9,
+ 10,
+ 11,
+ 12,
+ 13,
+ 14,
+ 15,
+ 16,
+ 17,
+ 18,
+ 19,
+ 20,
+ 21
+ ],
+ "y": [
+ -1.2689883542009865,
+ -1.5164747686539908,
+ -2.3545826863573023,
+ -1.7175146007463096,
+ -1.4508586347599788,
+ -0.4279130817285641,
+ 0.12545116629902575,
+ -1.4869824781899614,
+ -3.4458508119080062,
+ 0.5664753400428056,
+ 0.9983260042719415,
+ -2.467230843839267,
+ 0.6731549192467852,
+ 1.1928038591083265,
+ 0.9939515532788208,
+ 0.8964550702837024,
+ 1.193422902696105,
+ -0.5718857230263402,
+ 0.1259572704180073,
+ 1.1802964735973038,
+ 0.8834379335752423,
+ 0.9893428567715883
+ ]
+ }
+ ],
+ "layout": {
+ "coloraxis": {
+ "colorbar": {
+ "ticks": "outside",
+ "x": 0,
+ "y": 1,
+ "yanchor": "top"
+ }
+ },
+ "height": 400,
+ "legend": {
+ "x": 0.95,
+ "xanchor": "right",
+ "y": 0.05,
+ "yanchor": "bottom"
+ },
+ "template": {
+ "data": {
+ "bar": [
+ {
+ "error_x": {
+ "color": "rgb(51,51,51)"
+ },
+ "error_y": {
+ "color": "rgb(51,51,51)"
+ },
+ "marker": {
+ "line": {
+ "color": "rgb(237,237,237)",
+ "width": 0.5
+ },
+ "pattern": {
+ "fillmode": "overlay",
+ "size": 10,
+ "solidity": 0.2
+ }
+ },
+ "type": "bar"
+ }
+ ],
+ "barpolar": [
+ {
+ "marker": {
+ "line": {
+ "color": "rgb(237,237,237)",
+ "width": 0.5
+ },
+ "pattern": {
+ "fillmode": "overlay",
+ "size": 10,
+ "solidity": 0.2
+ }
+ },
+ "type": "barpolar"
+ }
+ ],
+ "carpet": [
+ {
+ "aaxis": {
+ "endlinecolor": "rgb(51,51,51)",
+ "gridcolor": "white",
+ "linecolor": "white",
+ "minorgridcolor": "white",
+ "startlinecolor": "rgb(51,51,51)"
+ },
+ "baxis": {
+ "endlinecolor": "rgb(51,51,51)",
+ "gridcolor": "white",
+ "linecolor": "white",
+ "minorgridcolor": "white",
+ "startlinecolor": "rgb(51,51,51)"
+ },
+ "type": "carpet"
+ }
+ ],
+ "choropleth": [
+ {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ },
+ "type": "choropleth"
+ }
+ ],
+ "contour": [
+ {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ },
+ "colorscale": [
+ [
+ 0,
+ "rgb(20,44,66)"
+ ],
+ [
+ 1,
+ "rgb(90,179,244)"
+ ]
+ ],
+ "type": "contour"
+ }
+ ],
+ "contourcarpet": [
+ {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ },
+ "type": "contourcarpet"
+ }
+ ],
+ "heatmap": [
+ {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ },
+ "colorscale": [
+ [
+ 0,
+ "rgb(20,44,66)"
+ ],
+ [
+ 1,
+ "rgb(90,179,244)"
+ ]
+ ],
+ "type": "heatmap"
+ }
+ ],
+ "heatmapgl": [
+ {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ },
+ "colorscale": [
+ [
+ 0,
+ "rgb(20,44,66)"
+ ],
+ [
+ 1,
+ "rgb(90,179,244)"
+ ]
+ ],
+ "type": "heatmapgl"
+ }
+ ],
+ "histogram": [
+ {
+ "marker": {
+ "pattern": {
+ "fillmode": "overlay",
+ "size": 10,
+ "solidity": 0.2
+ }
+ },
+ "type": "histogram"
+ }
+ ],
+ "histogram2d": [
+ {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ },
+ "colorscale": [
+ [
+ 0,
+ "rgb(20,44,66)"
+ ],
+ [
+ 1,
+ "rgb(90,179,244)"
+ ]
+ ],
+ "type": "histogram2d"
+ }
+ ],
+ "histogram2dcontour": [
+ {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ },
+ "colorscale": [
+ [
+ 0,
+ "rgb(20,44,66)"
+ ],
+ [
+ 1,
+ "rgb(90,179,244)"
+ ]
+ ],
+ "type": "histogram2dcontour"
+ }
+ ],
+ "mesh3d": [
+ {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ },
+ "type": "mesh3d"
+ }
+ ],
+ "parcoords": [
+ {
+ "line": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "type": "parcoords"
+ }
+ ],
+ "pie": [
+ {
+ "automargin": true,
+ "type": "pie"
+ }
+ ],
+ "scatter": [
+ {
+ "fillpattern": {
+ "fillmode": "overlay",
+ "size": 10,
+ "solidity": 0.2
+ },
+ "type": "scatter"
+ }
+ ],
+ "scatter3d": [
+ {
+ "line": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "marker": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "type": "scatter3d"
+ }
+ ],
+ "scattercarpet": [
+ {
+ "marker": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "type": "scattercarpet"
+ }
+ ],
+ "scattergeo": [
+ {
+ "marker": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "type": "scattergeo"
+ }
+ ],
+ "scattergl": [
+ {
+ "marker": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "type": "scattergl"
+ }
+ ],
+ "scattermapbox": [
+ {
+ "marker": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "type": "scattermapbox"
+ }
+ ],
+ "scatterpolar": [
+ {
+ "marker": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "type": "scatterpolar"
+ }
+ ],
+ "scatterpolargl": [
+ {
+ "marker": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "type": "scatterpolargl"
+ }
+ ],
+ "scatterternary": [
+ {
+ "marker": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "type": "scatterternary"
+ }
+ ],
+ "surface": [
+ {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ },
+ "colorscale": [
+ [
+ 0,
+ "rgb(20,44,66)"
+ ],
+ [
+ 1,
+ "rgb(90,179,244)"
+ ]
+ ],
+ "type": "surface"
+ }
+ ],
+ "table": [
+ {
+ "cells": {
+ "fill": {
+ "color": "rgb(237,237,237)"
+ },
+ "line": {
+ "color": "white"
+ }
+ },
+ "header": {
+ "fill": {
+ "color": "rgb(217,217,217)"
+ },
+ "line": {
+ "color": "white"
+ }
+ },
+ "type": "table"
+ }
+ ]
+ },
+ "layout": {
+ "annotationdefaults": {
+ "arrowhead": 0,
+ "arrowwidth": 1
+ },
+ "autotypenumbers": "strict",
+ "coloraxis": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "colorscale": {
+ "sequential": [
+ [
+ 0,
+ "rgb(20,44,66)"
+ ],
+ [
+ 1,
+ "rgb(90,179,244)"
+ ]
+ ],
+ "sequentialminus": [
+ [
+ 0,
+ "rgb(20,44,66)"
+ ],
+ [
+ 1,
+ "rgb(90,179,244)"
+ ]
+ ]
+ },
+ "colorway": [
+ "#F8766D",
+ "#A3A500",
+ "#00BF7D",
+ "#00B0F6",
+ "#E76BF3"
+ ],
+ "font": {
+ "color": "rgb(51,51,51)"
+ },
+ "geo": {
+ "bgcolor": "white",
+ "lakecolor": "white",
+ "landcolor": "rgb(237,237,237)",
+ "showlakes": true,
+ "showland": true,
+ "subunitcolor": "white"
+ },
+ "hoverlabel": {
+ "align": "left"
+ },
+ "hovermode": "closest",
+ "paper_bgcolor": "white",
+ "plot_bgcolor": "rgb(237,237,237)",
+ "polar": {
+ "angularaxis": {
+ "gridcolor": "white",
+ "linecolor": "white",
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside"
+ },
+ "bgcolor": "rgb(237,237,237)",
+ "radialaxis": {
+ "gridcolor": "white",
+ "linecolor": "white",
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside"
+ }
+ },
+ "scene": {
+ "xaxis": {
+ "backgroundcolor": "rgb(237,237,237)",
+ "gridcolor": "white",
+ "gridwidth": 2,
+ "linecolor": "white",
+ "showbackground": true,
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside",
+ "zerolinecolor": "white"
+ },
+ "yaxis": {
+ "backgroundcolor": "rgb(237,237,237)",
+ "gridcolor": "white",
+ "gridwidth": 2,
+ "linecolor": "white",
+ "showbackground": true,
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside",
+ "zerolinecolor": "white"
+ },
+ "zaxis": {
+ "backgroundcolor": "rgb(237,237,237)",
+ "gridcolor": "white",
+ "gridwidth": 2,
+ "linecolor": "white",
+ "showbackground": true,
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside",
+ "zerolinecolor": "white"
+ }
+ },
+ "shapedefaults": {
+ "fillcolor": "black",
+ "line": {
+ "width": 0
+ },
+ "opacity": 0.3
+ },
+ "ternary": {
+ "aaxis": {
+ "gridcolor": "white",
+ "linecolor": "white",
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside"
+ },
+ "baxis": {
+ "gridcolor": "white",
+ "linecolor": "white",
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside"
+ },
+ "bgcolor": "rgb(237,237,237)",
+ "caxis": {
+ "gridcolor": "white",
+ "linecolor": "white",
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside"
+ }
+ },
+ "xaxis": {
+ "automargin": true,
+ "gridcolor": "white",
+ "linecolor": "white",
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside",
+ "title": {
+ "standoff": 15
+ },
+ "zerolinecolor": "white"
+ },
+ "yaxis": {
+ "automargin": true,
+ "gridcolor": "white",
+ "linecolor": "white",
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside",
+ "title": {
+ "standoff": 15
+ },
+ "zerolinecolor": "white"
+ }
+ }
+ },
+ "title": {
+ "text": "Optimization Results"
+ },
+ "width": 500,
+ "xaxis": {
+ "title": {
+ "text": "Experiment"
+ }
+ },
+ "yaxis": {
+ "title": {
+ "text": "Objective 1"
+ }
+ }
+ }
+ },
+ "text/html": [
+ "
"
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ }
+ ],
+ "source": [
+ "optim_progress(campaign, color_feature_id = 'aq Value')"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Next, we can specifically examine the context of the multi-output optimization minimizing (maximizing negative) cost (Objective 2) and maximizing product (Objective 1)."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 16,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "application/vnd.plotly.v1+json": {
+ "config": {
+ "plotlyServerURL": "https://plot.ly"
+ },
+ "data": [
+ {
+ "customdata": [
+ [
+ 16,
+ 17,
+ 0.1985
+ ],
+ [
+ 0,
+ 129,
+ 0.1695
+ ],
+ [
+ 8,
+ 59,
+ 0.2855
+ ],
+ [
+ 12,
+ 143,
+ 0.11149999999999999
+ ],
+ [
+ -8,
+ 87,
+ 0.22749999999999998
+ ],
+ [
+ 20,
+ 73,
+ 0.0535
+ ],
+ [
+ 4,
+ 101,
+ 0.0245
+ ],
+ [
+ 28,
+ 45,
+ 0.1405
+ ],
+ [
+ 24,
+ 115,
+ 0.25649999999999995
+ ],
+ [
+ -4,
+ 31,
+ 0.08249999999999999
+ ],
+ [
+ -1.3664591211884574,
+ 23.701565198152267,
+ 0.027559246753660803
+ ],
+ [
+ 0.7489422280527407,
+ 100.90752207071628,
+ 0.27612099185375494
+ ],
+ [
+ -10,
+ 53.69626037949452,
+ 0.06027515490291318
+ ],
+ [
+ -9.884284602635885,
+ 12.56932955572526,
+ 0.01
+ ],
+ [
+ -2.4201706792597815,
+ 35.28138623326379,
+ 0.01
+ ],
+ [
+ 5.163747567854349,
+ 10,
+ 0.01
+ ],
+ [
+ -10,
+ 10,
+ 0.010000000000000633
+ ],
+ [
+ -10,
+ 150,
+ 0.01
+ ],
+ [
+ 4.000327329371169,
+ 100.99715275317062,
+ 0.024501386042708045
+ ],
+ [
+ -8.554406718721287,
+ 11.952295649778815,
+ 0.012068813124359354
+ ],
+ [
+ -4.320745462543664,
+ 14.994429360903585,
+ 0.04345828472841849
+ ],
+ [
+ -2.234654091253856,
+ 21.80951451897183,
+ 0.024727325215798936
+ ]
+ ],
+ "hovertemplate": "
Temperature: %{customdata[0]:.3G}Concentration: %{customdata[1]:.3G}Enzyme: %{customdata[2]:.3G}Objective 1: %{x:.3G}
Objective 2: %{y:.3G}
",
+ "marker": {
+ "color": [
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 1,
+ 1,
+ 1,
+ 2,
+ 2,
+ 2,
+ 3,
+ 3,
+ 3,
+ 4,
+ 4,
+ 4
+ ],
+ "colorbar": {
+ "title": {
+ "text": "Iteration"
+ }
+ },
+ "colorscale": [
+ [
+ 0,
+ "#5450E4"
+ ],
+ [
+ 0.5,
+ "#00857C"
+ ],
+ [
+ 1,
+ "#FFF063"
+ ]
+ ],
+ "showscale": true
+ },
+ "mode": "markers",
+ "name": "Data",
+ "type": "scatter",
+ "x": [
+ -0.2764883542009864,
+ -0.6689747686539907,
+ -0.9270826863573025,
+ -1.1600146007463097,
+ -0.3133586347599788,
+ -0.1604130817285641,
+ 0.24795116629902575,
+ -0.7844824781899613,
+ -2.1633508119080065,
+ 0.9789753400428056,
+ 1.1361222380402456,
+ -1.0866258845704926,
+ 0.974530693761351,
+ 1.2428038591083266,
+ 1.0439515532788208,
+ 0.9464550702837025,
+ 1.2434229026961081,
+ -0.5218857230263402,
+ 0.24846420063154753,
+ 1.2406405392191007,
+ 1.1007293572173347,
+ 1.112979482850583
+ ],
+ "y": [
+ -0.9925,
+ -0.8475,
+ -1.4274999999999998,
+ -0.5574999999999999,
+ -1.1375,
+ -0.2675,
+ -0.1225,
+ -0.7025000000000001,
+ -1.2824999999999998,
+ -0.4125,
+ -0.13779623376830402,
+ -1.3806049592687746,
+ -0.3013757745145659,
+ -0.05,
+ -0.05,
+ -0.05,
+ -0.05000000000000317,
+ -0.05,
+ -0.12250693021354023,
+ -0.06034406562179677,
+ -0.21729142364209247,
+ -0.12363662607899467
+ ]
+ }
+ ],
+ "layout": {
+ "coloraxis": {
+ "colorbar": {
+ "ticks": "outside",
+ "x": 0,
+ "y": 1,
+ "yanchor": "top"
+ }
+ },
+ "height": 400,
+ "legend": {
+ "x": 0.95,
+ "xanchor": "right",
+ "y": 0.05,
+ "yanchor": "bottom"
+ },
+ "template": {
+ "data": {
+ "bar": [
+ {
+ "error_x": {
+ "color": "rgb(51,51,51)"
+ },
+ "error_y": {
+ "color": "rgb(51,51,51)"
+ },
+ "marker": {
+ "line": {
+ "color": "rgb(237,237,237)",
+ "width": 0.5
+ },
+ "pattern": {
+ "fillmode": "overlay",
+ "size": 10,
+ "solidity": 0.2
+ }
+ },
+ "type": "bar"
+ }
+ ],
+ "barpolar": [
+ {
+ "marker": {
+ "line": {
+ "color": "rgb(237,237,237)",
+ "width": 0.5
+ },
+ "pattern": {
+ "fillmode": "overlay",
+ "size": 10,
+ "solidity": 0.2
+ }
+ },
+ "type": "barpolar"
+ }
+ ],
+ "carpet": [
+ {
+ "aaxis": {
+ "endlinecolor": "rgb(51,51,51)",
+ "gridcolor": "white",
+ "linecolor": "white",
+ "minorgridcolor": "white",
+ "startlinecolor": "rgb(51,51,51)"
+ },
+ "baxis": {
+ "endlinecolor": "rgb(51,51,51)",
+ "gridcolor": "white",
+ "linecolor": "white",
+ "minorgridcolor": "white",
+ "startlinecolor": "rgb(51,51,51)"
+ },
+ "type": "carpet"
+ }
+ ],
+ "choropleth": [
+ {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ },
+ "type": "choropleth"
+ }
+ ],
+ "contour": [
+ {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ },
+ "colorscale": [
+ [
+ 0,
+ "rgb(20,44,66)"
+ ],
+ [
+ 1,
+ "rgb(90,179,244)"
+ ]
+ ],
+ "type": "contour"
+ }
+ ],
+ "contourcarpet": [
+ {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ },
+ "type": "contourcarpet"
+ }
+ ],
+ "heatmap": [
+ {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ },
+ "colorscale": [
+ [
+ 0,
+ "rgb(20,44,66)"
+ ],
+ [
+ 1,
+ "rgb(90,179,244)"
+ ]
+ ],
+ "type": "heatmap"
+ }
+ ],
+ "heatmapgl": [
+ {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ },
+ "colorscale": [
+ [
+ 0,
+ "rgb(20,44,66)"
+ ],
+ [
+ 1,
+ "rgb(90,179,244)"
+ ]
+ ],
+ "type": "heatmapgl"
+ }
+ ],
+ "histogram": [
+ {
+ "marker": {
+ "pattern": {
+ "fillmode": "overlay",
+ "size": 10,
+ "solidity": 0.2
+ }
+ },
+ "type": "histogram"
+ }
+ ],
+ "histogram2d": [
+ {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ },
+ "colorscale": [
+ [
+ 0,
+ "rgb(20,44,66)"
+ ],
+ [
+ 1,
+ "rgb(90,179,244)"
+ ]
+ ],
+ "type": "histogram2d"
+ }
+ ],
+ "histogram2dcontour": [
+ {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ },
+ "colorscale": [
+ [
+ 0,
+ "rgb(20,44,66)"
+ ],
+ [
+ 1,
+ "rgb(90,179,244)"
+ ]
+ ],
+ "type": "histogram2dcontour"
+ }
+ ],
+ "mesh3d": [
+ {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ },
+ "type": "mesh3d"
+ }
+ ],
+ "parcoords": [
+ {
+ "line": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "type": "parcoords"
+ }
+ ],
+ "pie": [
+ {
+ "automargin": true,
+ "type": "pie"
+ }
+ ],
+ "scatter": [
+ {
+ "fillpattern": {
+ "fillmode": "overlay",
+ "size": 10,
+ "solidity": 0.2
+ },
+ "type": "scatter"
+ }
+ ],
+ "scatter3d": [
+ {
+ "line": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "marker": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "type": "scatter3d"
+ }
+ ],
+ "scattercarpet": [
+ {
+ "marker": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "type": "scattercarpet"
+ }
+ ],
+ "scattergeo": [
+ {
+ "marker": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "type": "scattergeo"
+ }
+ ],
+ "scattergl": [
+ {
+ "marker": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "type": "scattergl"
+ }
+ ],
+ "scattermapbox": [
+ {
+ "marker": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "type": "scattermapbox"
+ }
+ ],
+ "scatterpolar": [
+ {
+ "marker": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "type": "scatterpolar"
+ }
+ ],
+ "scatterpolargl": [
+ {
+ "marker": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "type": "scatterpolargl"
+ }
+ ],
+ "scatterternary": [
+ {
+ "marker": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "type": "scatterternary"
+ }
+ ],
+ "surface": [
+ {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ },
+ "colorscale": [
+ [
+ 0,
+ "rgb(20,44,66)"
+ ],
+ [
+ 1,
+ "rgb(90,179,244)"
+ ]
+ ],
+ "type": "surface"
+ }
+ ],
+ "table": [
+ {
+ "cells": {
+ "fill": {
+ "color": "rgb(237,237,237)"
+ },
+ "line": {
+ "color": "white"
+ }
+ },
+ "header": {
+ "fill": {
+ "color": "rgb(217,217,217)"
+ },
+ "line": {
+ "color": "white"
+ }
+ },
+ "type": "table"
+ }
+ ]
+ },
+ "layout": {
+ "annotationdefaults": {
+ "arrowhead": 0,
+ "arrowwidth": 1
+ },
+ "autotypenumbers": "strict",
+ "coloraxis": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "colorscale": {
+ "sequential": [
+ [
+ 0,
+ "rgb(20,44,66)"
+ ],
+ [
+ 1,
+ "rgb(90,179,244)"
+ ]
+ ],
+ "sequentialminus": [
+ [
+ 0,
+ "rgb(20,44,66)"
+ ],
+ [
+ 1,
+ "rgb(90,179,244)"
+ ]
+ ]
+ },
+ "colorway": [
+ "#F8766D",
+ "#A3A500",
+ "#00BF7D",
+ "#00B0F6",
+ "#E76BF3"
+ ],
+ "font": {
+ "color": "rgb(51,51,51)"
+ },
+ "geo": {
+ "bgcolor": "white",
+ "lakecolor": "white",
+ "landcolor": "rgb(237,237,237)",
+ "showlakes": true,
+ "showland": true,
+ "subunitcolor": "white"
+ },
+ "hoverlabel": {
+ "align": "left"
+ },
+ "hovermode": "closest",
+ "paper_bgcolor": "white",
+ "plot_bgcolor": "rgb(237,237,237)",
+ "polar": {
+ "angularaxis": {
+ "gridcolor": "white",
+ "linecolor": "white",
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside"
+ },
+ "bgcolor": "rgb(237,237,237)",
+ "radialaxis": {
+ "gridcolor": "white",
+ "linecolor": "white",
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside"
+ }
+ },
+ "scene": {
+ "xaxis": {
+ "backgroundcolor": "rgb(237,237,237)",
+ "gridcolor": "white",
+ "gridwidth": 2,
+ "linecolor": "white",
+ "showbackground": true,
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside",
+ "zerolinecolor": "white"
+ },
+ "yaxis": {
+ "backgroundcolor": "rgb(237,237,237)",
+ "gridcolor": "white",
+ "gridwidth": 2,
+ "linecolor": "white",
+ "showbackground": true,
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside",
+ "zerolinecolor": "white"
+ },
+ "zaxis": {
+ "backgroundcolor": "rgb(237,237,237)",
+ "gridcolor": "white",
+ "gridwidth": 2,
+ "linecolor": "white",
+ "showbackground": true,
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside",
+ "zerolinecolor": "white"
+ }
+ },
+ "shapedefaults": {
+ "fillcolor": "black",
+ "line": {
+ "width": 0
+ },
+ "opacity": 0.3
+ },
+ "ternary": {
+ "aaxis": {
+ "gridcolor": "white",
+ "linecolor": "white",
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside"
+ },
+ "baxis": {
+ "gridcolor": "white",
+ "linecolor": "white",
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside"
+ },
+ "bgcolor": "rgb(237,237,237)",
+ "caxis": {
+ "gridcolor": "white",
+ "linecolor": "white",
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside"
+ }
+ },
+ "xaxis": {
+ "automargin": true,
+ "gridcolor": "white",
+ "linecolor": "white",
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside",
+ "title": {
+ "standoff": 15
+ },
+ "zerolinecolor": "white"
+ },
+ "yaxis": {
+ "automargin": true,
+ "gridcolor": "white",
+ "linecolor": "white",
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside",
+ "title": {
+ "standoff": 15
+ },
+ "zerolinecolor": "white"
+ }
+ }
+ },
+ "title": {
+ "text": "Optimization Results"
+ },
+ "width": 500,
+ "xaxis": {
+ "title": {
+ "text": "Objective 1"
+ }
+ },
+ "yaxis": {
+ "title": {
+ "text": "Objective 2"
+ }
+ }
+ }
+ },
+ "text/html": [
+ "
"
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ }
+ ],
+ "source": [
+ "campaign.set_objective(penalize_enz_loading)\n",
+ "optim_progress(campaign)\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Finally, we can clear the objective entirely and just examine how this optimization performed from the lens of product alone."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 17,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "application/vnd.plotly.v1+json": {
+ "config": {
+ "plotlyServerURL": "https://plot.ly"
+ },
+ "data": [
+ {
+ "customdata": [
+ [
+ 16,
+ 17,
+ 0.1985
+ ],
+ [
+ 0,
+ 129,
+ 0.1695
+ ],
+ [
+ 8,
+ 59,
+ 0.2855
+ ],
+ [
+ 12,
+ 143,
+ 0.11149999999999999
+ ],
+ [
+ -8,
+ 87,
+ 0.22749999999999998
+ ],
+ [
+ 20,
+ 73,
+ 0.0535
+ ],
+ [
+ 4,
+ 101,
+ 0.0245
+ ],
+ [
+ 28,
+ 45,
+ 0.1405
+ ],
+ [
+ 24,
+ 115,
+ 0.25649999999999995
+ ],
+ [
+ -4,
+ 31,
+ 0.08249999999999999
+ ],
+ [
+ -1.3664591211884574,
+ 23.701565198152267,
+ 0.027559246753660803
+ ],
+ [
+ 0.7489422280527407,
+ 100.90752207071628,
+ 0.27612099185375494
+ ],
+ [
+ -10,
+ 53.69626037949452,
+ 0.06027515490291318
+ ],
+ [
+ -9.884284602635885,
+ 12.56932955572526,
+ 0.01
+ ],
+ [
+ -2.4201706792597815,
+ 35.28138623326379,
+ 0.01
+ ],
+ [
+ 5.163747567854349,
+ 10,
+ 0.01
+ ],
+ [
+ -10,
+ 10,
+ 0.010000000000000633
+ ],
+ [
+ -10,
+ 150,
+ 0.01
+ ],
+ [
+ 4.000327329371169,
+ 100.99715275317062,
+ 0.024501386042708045
+ ],
+ [
+ -8.554406718721287,
+ 11.952295649778815,
+ 0.012068813124359354
+ ],
+ [
+ -4.320745462543664,
+ 14.994429360903585,
+ 0.04345828472841849
+ ],
+ [
+ -2.234654091253856,
+ 21.80951451897183,
+ 0.024727325215798936
+ ]
+ ],
+ "hovertemplate": "
Temperature: %{customdata[0]:.3G}Concentration: %{customdata[1]:.3G}Enzyme: %{customdata[2]:.3G}Experiment: %{x:.3G}
Product: %{y:.3G}
",
+ "marker": {
+ "color": [
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 1,
+ 1,
+ 1,
+ 2,
+ 2,
+ 2,
+ 3,
+ 3,
+ 3,
+ 4,
+ 4,
+ 4
+ ],
+ "colorbar": {
+ "title": {
+ "text": "Iteration"
+ }
+ },
+ "colorscale": [
+ [
+ 0,
+ "#5450E4"
+ ],
+ [
+ 0.5,
+ "#00857C"
+ ],
+ [
+ 1,
+ "#FFF063"
+ ]
+ ],
+ "showscale": true
+ },
+ "mode": "markers",
+ "name": "Data",
+ "type": "scatter",
+ "x": [
+ 0,
+ 1,
+ 2,
+ 3,
+ 4,
+ 5,
+ 6,
+ 7,
+ 8,
+ 9,
+ 10,
+ 11,
+ 12,
+ 13,
+ 14,
+ 15,
+ 16,
+ 17,
+ 18,
+ 19,
+ 20,
+ 21
+ ],
+ "y": [
+ -14.146634024879013,
+ -45.90035371882625,
+ -66.78231591606996,
+ -85.62743881692565,
+ -17.12958709228416,
+ -4.755680530030897,
+ 28.282619363659542,
+ -55.245389103571426,
+ -166.8013486257973,
+ 87.42539691663603,
+ 100.1392090793791,
+ -79.68999834425783,
+ 87.0658072672548,
+ 108.77017862927511,
+ 92.68223227677464,
+ 84.7943771098963,
+ 108.82026172983832,
+ -34.00026201394538,
+ 28.324125891754207,
+ 108.59515740346642,
+ 97.27578355577653,
+ 98.26686768314924
+ ]
+ }
+ ],
+ "layout": {
+ "coloraxis": {
+ "colorbar": {
+ "ticks": "outside",
+ "x": 0,
+ "y": 1,
+ "yanchor": "top"
+ }
+ },
+ "height": 400,
+ "legend": {
+ "x": 0.95,
+ "xanchor": "right",
+ "y": 0.05,
+ "yanchor": "bottom"
+ },
+ "template": {
+ "data": {
+ "bar": [
+ {
+ "error_x": {
+ "color": "rgb(51,51,51)"
+ },
+ "error_y": {
+ "color": "rgb(51,51,51)"
+ },
+ "marker": {
+ "line": {
+ "color": "rgb(237,237,237)",
+ "width": 0.5
+ },
+ "pattern": {
+ "fillmode": "overlay",
+ "size": 10,
+ "solidity": 0.2
+ }
+ },
+ "type": "bar"
+ }
+ ],
+ "barpolar": [
+ {
+ "marker": {
+ "line": {
+ "color": "rgb(237,237,237)",
+ "width": 0.5
+ },
+ "pattern": {
+ "fillmode": "overlay",
+ "size": 10,
+ "solidity": 0.2
+ }
+ },
+ "type": "barpolar"
+ }
+ ],
+ "carpet": [
+ {
+ "aaxis": {
+ "endlinecolor": "rgb(51,51,51)",
+ "gridcolor": "white",
+ "linecolor": "white",
+ "minorgridcolor": "white",
+ "startlinecolor": "rgb(51,51,51)"
+ },
+ "baxis": {
+ "endlinecolor": "rgb(51,51,51)",
+ "gridcolor": "white",
+ "linecolor": "white",
+ "minorgridcolor": "white",
+ "startlinecolor": "rgb(51,51,51)"
+ },
+ "type": "carpet"
+ }
+ ],
+ "choropleth": [
+ {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ },
+ "type": "choropleth"
+ }
+ ],
+ "contour": [
+ {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ },
+ "colorscale": [
+ [
+ 0,
+ "rgb(20,44,66)"
+ ],
+ [
+ 1,
+ "rgb(90,179,244)"
+ ]
+ ],
+ "type": "contour"
+ }
+ ],
+ "contourcarpet": [
+ {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ },
+ "type": "contourcarpet"
+ }
+ ],
+ "heatmap": [
+ {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ },
+ "colorscale": [
+ [
+ 0,
+ "rgb(20,44,66)"
+ ],
+ [
+ 1,
+ "rgb(90,179,244)"
+ ]
+ ],
+ "type": "heatmap"
+ }
+ ],
+ "heatmapgl": [
+ {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ },
+ "colorscale": [
+ [
+ 0,
+ "rgb(20,44,66)"
+ ],
+ [
+ 1,
+ "rgb(90,179,244)"
+ ]
+ ],
+ "type": "heatmapgl"
+ }
+ ],
+ "histogram": [
+ {
+ "marker": {
+ "pattern": {
+ "fillmode": "overlay",
+ "size": 10,
+ "solidity": 0.2
+ }
+ },
+ "type": "histogram"
+ }
+ ],
+ "histogram2d": [
+ {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ },
+ "colorscale": [
+ [
+ 0,
+ "rgb(20,44,66)"
+ ],
+ [
+ 1,
+ "rgb(90,179,244)"
+ ]
+ ],
+ "type": "histogram2d"
+ }
+ ],
+ "histogram2dcontour": [
+ {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ },
+ "colorscale": [
+ [
+ 0,
+ "rgb(20,44,66)"
+ ],
+ [
+ 1,
+ "rgb(90,179,244)"
+ ]
+ ],
+ "type": "histogram2dcontour"
+ }
+ ],
+ "mesh3d": [
+ {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ },
+ "type": "mesh3d"
+ }
+ ],
+ "parcoords": [
+ {
+ "line": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "type": "parcoords"
+ }
+ ],
+ "pie": [
+ {
+ "automargin": true,
+ "type": "pie"
+ }
+ ],
+ "scatter": [
+ {
+ "fillpattern": {
+ "fillmode": "overlay",
+ "size": 10,
+ "solidity": 0.2
+ },
+ "type": "scatter"
+ }
+ ],
+ "scatter3d": [
+ {
+ "line": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "marker": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "type": "scatter3d"
+ }
+ ],
+ "scattercarpet": [
+ {
+ "marker": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "type": "scattercarpet"
+ }
+ ],
+ "scattergeo": [
+ {
+ "marker": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "type": "scattergeo"
+ }
+ ],
+ "scattergl": [
+ {
+ "marker": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "type": "scattergl"
+ }
+ ],
+ "scattermapbox": [
+ {
+ "marker": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "type": "scattermapbox"
+ }
+ ],
+ "scatterpolar": [
+ {
+ "marker": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "type": "scatterpolar"
+ }
+ ],
+ "scatterpolargl": [
+ {
+ "marker": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "type": "scatterpolargl"
+ }
+ ],
+ "scatterternary": [
+ {
+ "marker": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "type": "scatterternary"
+ }
+ ],
+ "surface": [
+ {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ },
+ "colorscale": [
+ [
+ 0,
+ "rgb(20,44,66)"
+ ],
+ [
+ 1,
+ "rgb(90,179,244)"
+ ]
+ ],
+ "type": "surface"
+ }
+ ],
+ "table": [
+ {
+ "cells": {
+ "fill": {
+ "color": "rgb(237,237,237)"
+ },
+ "line": {
+ "color": "white"
+ }
+ },
+ "header": {
+ "fill": {
+ "color": "rgb(217,217,217)"
+ },
+ "line": {
+ "color": "white"
+ }
+ },
+ "type": "table"
+ }
+ ]
+ },
+ "layout": {
+ "annotationdefaults": {
+ "arrowhead": 0,
+ "arrowwidth": 1
+ },
+ "autotypenumbers": "strict",
+ "coloraxis": {
+ "colorbar": {
+ "outlinewidth": 0,
+ "tickcolor": "rgb(237,237,237)",
+ "ticklen": 6,
+ "ticks": "inside"
+ }
+ },
+ "colorscale": {
+ "sequential": [
+ [
+ 0,
+ "rgb(20,44,66)"
+ ],
+ [
+ 1,
+ "rgb(90,179,244)"
+ ]
+ ],
+ "sequentialminus": [
+ [
+ 0,
+ "rgb(20,44,66)"
+ ],
+ [
+ 1,
+ "rgb(90,179,244)"
+ ]
+ ]
+ },
+ "colorway": [
+ "#F8766D",
+ "#A3A500",
+ "#00BF7D",
+ "#00B0F6",
+ "#E76BF3"
+ ],
+ "font": {
+ "color": "rgb(51,51,51)"
+ },
+ "geo": {
+ "bgcolor": "white",
+ "lakecolor": "white",
+ "landcolor": "rgb(237,237,237)",
+ "showlakes": true,
+ "showland": true,
+ "subunitcolor": "white"
+ },
+ "hoverlabel": {
+ "align": "left"
+ },
+ "hovermode": "closest",
+ "paper_bgcolor": "white",
+ "plot_bgcolor": "rgb(237,237,237)",
+ "polar": {
+ "angularaxis": {
+ "gridcolor": "white",
+ "linecolor": "white",
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside"
+ },
+ "bgcolor": "rgb(237,237,237)",
+ "radialaxis": {
+ "gridcolor": "white",
+ "linecolor": "white",
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside"
+ }
+ },
+ "scene": {
+ "xaxis": {
+ "backgroundcolor": "rgb(237,237,237)",
+ "gridcolor": "white",
+ "gridwidth": 2,
+ "linecolor": "white",
+ "showbackground": true,
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside",
+ "zerolinecolor": "white"
+ },
+ "yaxis": {
+ "backgroundcolor": "rgb(237,237,237)",
+ "gridcolor": "white",
+ "gridwidth": 2,
+ "linecolor": "white",
+ "showbackground": true,
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside",
+ "zerolinecolor": "white"
+ },
+ "zaxis": {
+ "backgroundcolor": "rgb(237,237,237)",
+ "gridcolor": "white",
+ "gridwidth": 2,
+ "linecolor": "white",
+ "showbackground": true,
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside",
+ "zerolinecolor": "white"
+ }
+ },
+ "shapedefaults": {
+ "fillcolor": "black",
+ "line": {
+ "width": 0
+ },
+ "opacity": 0.3
+ },
+ "ternary": {
+ "aaxis": {
+ "gridcolor": "white",
+ "linecolor": "white",
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside"
+ },
+ "baxis": {
+ "gridcolor": "white",
+ "linecolor": "white",
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside"
+ },
+ "bgcolor": "rgb(237,237,237)",
+ "caxis": {
+ "gridcolor": "white",
+ "linecolor": "white",
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside"
+ }
+ },
+ "xaxis": {
+ "automargin": true,
+ "gridcolor": "white",
+ "linecolor": "white",
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside",
+ "title": {
+ "standoff": 15
+ },
+ "zerolinecolor": "white"
+ },
+ "yaxis": {
+ "automargin": true,
+ "gridcolor": "white",
+ "linecolor": "white",
+ "showgrid": true,
+ "tickcolor": "rgb(51,51,51)",
+ "ticks": "outside",
+ "title": {
+ "standoff": 15
+ },
+ "zerolinecolor": "white"
+ }
+ }
+ },
+ "title": {
+ "text": "Optimization Results"
+ },
+ "width": 500,
+ "xaxis": {
+ "title": {
+ "text": "Experiment"
+ }
+ },
+ "yaxis": {
+ "title": {
+ "text": "Product"
+ }
+ }
+ }
+ },
+ "text/html": [
+ "
"
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ }
+ ],
+ "source": [
+ "campaign.clear_objective()\n",
+ "optim_progress(campaign)"
+ ]
+ }
+ ],
+ "metadata": {
+ "kernelspec": {
+ "display_name": "Python 3 (ipykernel)",
+ "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.14"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 4
+}
diff --git a/demo/Joint optimization with constant param.ipynb b/demo/Joint optimization with constant param.ipynb
deleted file mode 100644
index 8174785..0000000
--- a/demo/Joint optimization with constant param.ipynb
+++ /dev/null
@@ -1,280 +0,0 @@
-{
- "cells": [
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {},
- "outputs": [],
- "source": [
- "import obsidian\n",
- "obsidian.__version__"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {},
- "outputs": [],
- "source": [
- "import pandas as pd\n",
- "import plotly.express as px"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {},
- "outputs": [],
- "source": [
- "from obsidian.parameters import ParamSpace, Param_Categorical, Param_Ordinal, Param_Continuous\n",
- "from obsidian.experiment import ExpDesigner"
- ]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "### Set up parameter space and initialize a design"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {},
- "outputs": [],
- "source": [
- "params = [\n",
- " Param_Continuous('Temperature', -10, 30),\n",
- " Param_Continuous('Concentration', 10, 150),\n",
- " Param_Continuous('Enzyme', 0.01, 0.30),\n",
- " ]\n",
- "\n",
- "X_space = ParamSpace(params)\n",
- "designer = ExpDesigner(X_space, seed=0)\n",
- "X0 = designer.initialize(10, 'LHS')\n",
- "\n",
- "X0"
- ]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "### Collect results (e.g. from a simulation)"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {},
- "outputs": [],
- "source": [
- "from obsidian.experiment import Simulator\n",
- "from obsidian.experiment.benchmark import shifted_parab\n",
- "\n",
- "simulator = Simulator(X_space, shifted_parab, name='Yield', eps=0.05)\n",
- "y0 = simulator.simulate(X0)\n",
- "Z0 = pd.concat([X0, y0], axis=1)\n",
- "\n",
- "Z0"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {},
- "outputs": [],
- "source": [
- "Z0.plot(x='Temperature', y='Yield', kind='scatter', figsize=(4,3))"
- ]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "### Define the Target"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {},
- "outputs": [],
- "source": [
- "from obsidian.parameters import Target\n",
- "target = Target('Yield', aim='max')"
- ]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "### Create a campaign to track optimization"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {},
- "outputs": [],
- "source": [
- "from obsidian.campaign import Campaign"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {},
- "outputs": [],
- "source": [
- "my_campaign = Campaign(X_space,target)\n",
- "my_campaign.add_data(Z0)\n",
- "my_campaign.data"
- ]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "### Fit an optimizer"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {},
- "outputs": [],
- "source": [
- "my_campaign.fit()"
- ]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "### Make new experiment suggestions"
- ]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "#### Jointly optimize a large number of experiments, but do so while holding one of the parameters constant.\n",
- "#### Note that the constant value is still optimized, the constraint simply keeps the experimental range low."
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {},
- "outputs": [],
- "source": [
- "from obsidian.constraints import InConstraint_ConstantDim"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {},
- "outputs": [],
- "source": [
- "X_suggest, eval_suggest = my_campaign.optimizer.suggest(m_batch=12, nleq_constraints=[InConstraint_ConstantDim(X_space, dim=0)], optim_sequential=False)"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {},
- "outputs": [],
- "source": [
- "pd.concat([X_suggest, eval_suggest], axis=1)"
- ]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "### Collect data at new suggestions"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {},
- "outputs": [],
- "source": [
- "y_iter1 = pd.DataFrame(simulator.simulate(X_suggest), columns = ['Yield'])\n",
- "Z_iter1 = pd.concat([X_suggest, y_iter1, eval_suggest], axis=1)\n",
- "my_campaign.add_data(Z_iter1)"
- ]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "### Repeat as desired"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {},
- "outputs": [],
- "source": [
- "for iter in range(3):\n",
- " my_campaign.fit()\n",
- " X_suggest, eval_suggest = my_campaign.optimizer.suggest(m_batch=3)\n",
- " y_iter = pd.DataFrame(simulator.simulate(X_suggest))\n",
- " Z_iter = pd.concat([X_suggest, y_iter, eval_suggest], axis=1)\n",
- " my_campaign.add_data(Z_iter)"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {},
- "outputs": [],
- "source": [
- "fig = px.scatter(my_campaign.data, x=my_campaign.data.index, y='Yield', color='aq Value')\n",
- "fig.update_layout(height=300, width=400, template='ggplot2')"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {},
- "outputs": [],
- "source": [
- "my_campaign.data"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {},
- "outputs": [],
- "source": []
- }
- ],
- "metadata": {
- "kernelspec": {
- "display_name": "Python 3 (ipykernel)",
- "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.14"
- }
- },
- "nbformat": 4,
- "nbformat_minor": 4
-}
diff --git a/docs/_static/tutorials/Cost-penalized custom objective.html b/docs/_static/tutorials/Cost-penalized custom objective.html
new file mode 100644
index 0000000..7fdce6b
--- /dev/null
+++ b/docs/_static/tutorials/Cost-penalized custom objective.html
@@ -0,0 +1,8673 @@
+
+
+
+
+
+
Cost-penalized custom objective
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
obsidian version: 0.8.0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Out[3]:
+
+
+
+
+
+
+ |
+Temperature |
+Concentration |
+Enzyme |
+
+
+
+
+0 |
+16.0 |
+17.0 |
+0.1985 |
+
+
+1 |
+0.0 |
+129.0 |
+0.1695 |
+
+
+2 |
+8.0 |
+59.0 |
+0.2855 |
+
+
+3 |
+12.0 |
+143.0 |
+0.1115 |
+
+
+4 |
+-8.0 |
+87.0 |
+0.2275 |
+
+
+5 |
+20.0 |
+73.0 |
+0.0535 |
+
+
+6 |
+4.0 |
+101.0 |
+0.0245 |
+
+
+7 |
+28.0 |
+45.0 |
+0.1405 |
+
+
+8 |
+24.0 |
+115.0 |
+0.2565 |
+
+
+9 |
+-4.0 |
+31.0 |
+0.0825 |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Out[4]:
+
+
+
+
+
+
+ |
+Temperature |
+Concentration |
+Enzyme |
+Product |
+Iteration |
+
+
+Observation ID |
+ |
+ |
+ |
+ |
+ |
+
+
+
+
+5 |
+20.0 |
+73.0 |
+0.0535 |
+-4.755681 |
+0 |
+
+
+2 |
+8.0 |
+59.0 |
+0.2855 |
+-66.782316 |
+0 |
+
+
+3 |
+12.0 |
+143.0 |
+0.1115 |
+-85.627439 |
+0 |
+
+
+4 |
+-8.0 |
+87.0 |
+0.2275 |
+-17.129587 |
+0 |
+
+
+1 |
+0.0 |
+129.0 |
+0.1695 |
+-45.900354 |
+0 |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
GP model has been fit to data with a train-score of: 1 for response: Product
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
c:\Users\kevin\miniconda3\envs\obsidian-dev\lib\site-packages\botorch\optim\optimize.py:564: RuntimeWarning:
+
+Optimization failed in `gen_candidates_scipy` with the following warning(s):
+[OptimizationWarning('Optimization failed within `scipy.optimize.minimize` with status 2 and message ABNORMAL_TERMINATION_IN_LNSRCH.')]
+Trying again with a new set of initial conditions.
+
+c:\Users\kevin\miniconda3\envs\obsidian-dev\lib\site-packages\botorch\optim\optimize.py:564: RuntimeWarning:
+
+Optimization failed on the second try, after generating a new set of initial conditions.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Out[11]:
+
+
+
+
+
+
+ |
+Temperature |
+Concentration |
+Enzyme |
+Product (pred) |
+Product lb |
+Product ub |
+f(Product) |
+Objective 1 |
+aq Value |
+aq Value (joint) |
+aq Method |
+
+
+
+
+0 |
+-1.366459 |
+23.701565 |
+0.027559 |
+82.545038 |
+52.602369 |
+112.487712 |
+1.704477 |
+1.566681 |
+-1.214936 |
+-0.977403 |
+NEI |
+
+
+1 |
+0.748942 |
+100.907522 |
+0.276121 |
+-70.506235 |
+-99.886332 |
+-41.126134 |
+-0.532599 |
+-1.913204 |
+-46.057986 |
+-0.977403 |
+NEI |
+
+
+2 |
+-10.000000 |
+53.696260 |
+0.060275 |
+76.435947 |
+46.268528 |
+106.603372 |
+1.615183 |
+1.313808 |
+-1.893481 |
+-0.977403 |
+NEI |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Out[12]:
+
+
+
+
+
+
+ |
+Product (pred) |
+Product lb |
+Product ub |
+f(Product) |
+Objective 1 |
+Objective 2 |
+Expected Hypervolume (joint) |
+Expected Pareto |
+
+
+
+
+0 |
+82.545038 |
+52.602369 |
+112.487712 |
+1.704477 |
+1.704477 |
+-0.137796 |
+4.775616 |
+False |
+
+
+1 |
+-70.506235 |
+-99.886332 |
+-41.126134 |
+-0.532599 |
+-0.532599 |
+-1.380605 |
+4.775616 |
+False |
+
+
+2 |
+76.435947 |
+46.268528 |
+106.603372 |
+1.615183 |
+1.615183 |
+-0.301376 |
+4.775616 |
+True |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Out[13]:
+
+
+
+
+
+
+ |
+Temperature |
+Concentration |
+Enzyme |
+Product |
+Iteration |
+Objective 1 |
+Product (pred) |
+Product lb |
+Product ub |
+f(Product) |
+aq Value |
+aq Value (joint) |
+aq Method |
+Objective 1 (max) (iter) |
+
+
+Observation ID |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+
+
+
+
+8 |
+24.000000 |
+115.000000 |
+0.256500 |
+-166.801349 |
+0 |
+-3.222598 |
+NaN |
+NaN |
+NaN |
+NaN |
+NaN |
+NaN |
+NaN |
+1.363311 |
+
+
+9 |
+-4.000000 |
+31.000000 |
+0.082500 |
+87.425397 |
+0 |
+1.363311 |
+NaN |
+NaN |
+NaN |
+NaN |
+NaN |
+NaN |
+NaN |
+1.363311 |
+
+
+10 |
+-1.366459 |
+23.701565 |
+0.027559 |
+100.139209 |
+1 |
+1.823846 |
+82.545038 |
+52.602369 |
+112.487712 |
+1.704477 |
+-1.214936 |
+-0.977403 |
+NEI |
+1.823846 |
+
+
+11 |
+0.748942 |
+100.907522 |
+0.276121 |
+-79.689998 |
+1 |
+-2.047438 |
+-70.506235 |
+-99.886332 |
+-41.126134 |
+-0.532599 |
+-46.057986 |
+-0.977403 |
+NEI |
+1.823846 |
+
+
+12 |
+-10.000000 |
+53.696260 |
+0.060275 |
+87.065807 |
+1 |
+1.469179 |
+76.435947 |
+46.268528 |
+106.603372 |
+1.615183 |
+-1.893481 |
+-0.977403 |
+NEI |
+1.823846 |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
GP model has been fit to data with a train-score of: 1 for response: Product
+GP model has been fit to data with a train-score of: 1 for response: Product
+GP model has been fit to data with a train-score of: 1 for response: Product
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/stubs/tutorials.rst b/docs/stubs/tutorials.rst
index 8d2820b..1491b73 100644
--- a/docs/stubs/tutorials.rst
+++ b/docs/stubs/tutorials.rst
@@ -7,6 +7,7 @@ Tutorials
../../stubs/tutorials/Simple single objective.rst
../../stubs/tutorials/Constrained multi-output min-max.rst
+ ../../stubs/tutorials/Cost-penalized custom objective.rst
Indices
~~~~~~~~~~~~~~~~~~
diff --git a/docs/stubs/tutorials/Cost-penalized custom objective.rst b/docs/stubs/tutorials/Cost-penalized custom objective.rst
new file mode 100644
index 0000000..fad0824
--- /dev/null
+++ b/docs/stubs/tutorials/Cost-penalized custom objective.rst
@@ -0,0 +1,6 @@
+
+Cost-Penalized Custom Objective
+===============================
+
+.. raw:: html
+ :file: ../../_static/tutorials/Cost-penalized custom objective.html
\ No newline at end of file
From a7445229cc917205256586f8ecd9ebde58e10c90 Mon Sep 17 00:00:00 2001
From: Kevin Stone
Date: Wed, 14 Aug 2024 23:53:58 -0400
Subject: [PATCH 10/10] Deleted cell outputs for demos
---
demo/Cost-penalized custom objective.ipynb | 4490 +-------------------
1 file changed, 30 insertions(+), 4460 deletions(-)
diff --git a/demo/Cost-penalized custom objective.ipynb b/demo/Cost-penalized custom objective.ipynb
index e11485e..12cc60a 100644
--- a/demo/Cost-penalized custom objective.ipynb
+++ b/demo/Cost-penalized custom objective.ipynb
@@ -2,17 +2,9 @@
"cells": [
{
"cell_type": "code",
- "execution_count": 1,
+ "execution_count": null,
"metadata": {},
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "obsidian version: 0.8.0\n"
- ]
- }
- ],
+ "outputs": [],
"source": [
"import obsidian\n",
"print(f'obsidian version: ' + obsidian.__version__)\n",
@@ -52,7 +44,7 @@
},
{
"cell_type": "code",
- "execution_count": 2,
+ "execution_count": null,
"metadata": {},
"outputs": [],
"source": [
@@ -62,119 +54,9 @@
},
{
"cell_type": "code",
- "execution_count": 3,
+ "execution_count": null,
"metadata": {},
- "outputs": [
- {
- "data": {
- "text/html": [
- "\n",
- "\n",
- "
\n",
- " \n",
- " \n",
- " | \n",
- " Temperature | \n",
- " Concentration | \n",
- " Enzyme | \n",
- "
\n",
- " \n",
- " \n",
- " \n",
- " 0 | \n",
- " 16.0 | \n",
- " 17.0 | \n",
- " 0.1985 | \n",
- "
\n",
- " \n",
- " 1 | \n",
- " 0.0 | \n",
- " 129.0 | \n",
- " 0.1695 | \n",
- "
\n",
- " \n",
- " 2 | \n",
- " 8.0 | \n",
- " 59.0 | \n",
- " 0.2855 | \n",
- "
\n",
- " \n",
- " 3 | \n",
- " 12.0 | \n",
- " 143.0 | \n",
- " 0.1115 | \n",
- "
\n",
- " \n",
- " 4 | \n",
- " -8.0 | \n",
- " 87.0 | \n",
- " 0.2275 | \n",
- "
\n",
- " \n",
- " 5 | \n",
- " 20.0 | \n",
- " 73.0 | \n",
- " 0.0535 | \n",
- "
\n",
- " \n",
- " 6 | \n",
- " 4.0 | \n",
- " 101.0 | \n",
- " 0.0245 | \n",
- "
\n",
- " \n",
- " 7 | \n",
- " 28.0 | \n",
- " 45.0 | \n",
- " 0.1405 | \n",
- "
\n",
- " \n",
- " 8 | \n",
- " 24.0 | \n",
- " 115.0 | \n",
- " 0.2565 | \n",
- "
\n",
- " \n",
- " 9 | \n",
- " -4.0 | \n",
- " 31.0 | \n",
- " 0.0825 | \n",
- "
\n",
- " \n",
- "
\n",
- "
"
- ],
- "text/plain": [
- " Temperature Concentration Enzyme\n",
- "0 16.0 17.0 0.1985\n",
- "1 0.0 129.0 0.1695\n",
- "2 8.0 59.0 0.2855\n",
- "3 12.0 143.0 0.1115\n",
- "4 -8.0 87.0 0.2275\n",
- "5 20.0 73.0 0.0535\n",
- "6 4.0 101.0 0.0245\n",
- "7 28.0 45.0 0.1405\n",
- "8 24.0 115.0 0.2565\n",
- "9 -4.0 31.0 0.0825"
- ]
- },
- "execution_count": 3,
- "metadata": {},
- "output_type": "execute_result"
- }
- ],
+ "outputs": [],
"source": [
"params = [\n",
" Param_Continuous('Temperature', -10, 30),\n",
@@ -199,105 +81,9 @@
},
{
"cell_type": "code",
- "execution_count": 4,
+ "execution_count": null,
"metadata": {},
- "outputs": [
- {
- "data": {
- "text/html": [
- "\n",
- "\n",
- "
\n",
- " \n",
- " \n",
- " | \n",
- " Temperature | \n",
- " Concentration | \n",
- " Enzyme | \n",
- " Product | \n",
- " Iteration | \n",
- "
\n",
- " \n",
- " Observation ID | \n",
- " | \n",
- " | \n",
- " | \n",
- " | \n",
- " | \n",
- "
\n",
- " \n",
- " \n",
- " \n",
- " 5 | \n",
- " 20.0 | \n",
- " 73.0 | \n",
- " 0.0535 | \n",
- " -4.755681 | \n",
- " 0 | \n",
- "
\n",
- " \n",
- " 2 | \n",
- " 8.0 | \n",
- " 59.0 | \n",
- " 0.2855 | \n",
- " -66.782316 | \n",
- " 0 | \n",
- "
\n",
- " \n",
- " 3 | \n",
- " 12.0 | \n",
- " 143.0 | \n",
- " 0.1115 | \n",
- " -85.627439 | \n",
- " 0 | \n",
- "
\n",
- " \n",
- " 4 | \n",
- " -8.0 | \n",
- " 87.0 | \n",
- " 0.2275 | \n",
- " -17.129587 | \n",
- " 0 | \n",
- "
\n",
- " \n",
- " 1 | \n",
- " 0.0 | \n",
- " 129.0 | \n",
- " 0.1695 | \n",
- " -45.900354 | \n",
- " 0 | \n",
- "
\n",
- " \n",
- "
\n",
- "
"
- ],
- "text/plain": [
- " Temperature Concentration Enzyme Product Iteration\n",
- "Observation ID \n",
- "5 20.0 73.0 0.0535 -4.755681 0\n",
- "2 8.0 59.0 0.2855 -66.782316 0\n",
- "3 12.0 143.0 0.1115 -85.627439 0\n",
- "4 -8.0 87.0 0.2275 -17.129587 0\n",
- "1 0.0 129.0 0.1695 -45.900354 0"
- ]
- },
- "execution_count": 4,
- "metadata": {},
- "output_type": "execute_result"
- }
- ],
+ "outputs": [],
"source": [
"from obsidian.experiment import Simulator\n",
"from obsidian.experiment.benchmark import cornered_parab\n",
@@ -319,24 +105,16 @@
},
{
"cell_type": "code",
- "execution_count": 5,
+ "execution_count": null,
"metadata": {},
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "GP model has been fit to data with a train-score of: 1 for response: Product\n"
- ]
- }
- ],
+ "outputs": [],
"source": [
"campaign.fit()"
]
},
{
"cell_type": "code",
- "execution_count": 6,
+ "execution_count": null,
"metadata": {},
"outputs": [],
"source": [
@@ -345,1285 +123,9 @@
},
{
"cell_type": "code",
- "execution_count": 7,
+ "execution_count": null,
"metadata": {},
- "outputs": [
- {
- "data": {
- "text/html": [
- " \n",
- " "
- ]
- },
- "metadata": {},
- "output_type": "display_data"
- },
- {
- "data": {
- "application/vnd.plotly.v1+json": {
- "config": {
- "plotlyServerURL": "https://plot.ly"
- },
- "data": [
- {
- "fill": "toself",
- "line": {
- "color": "#00857C"
- },
- "name": "95% Pred Band",
- "opacity": 0.3,
- "showlegend": true,
- "type": "scatter",
- "x": [
- 10,
- 11.414141414141413,
- 12.828282828282825,
- 14.242424242424239,
- 15.65656565656565,
- 17.070707070707066,
- 18.484848484848477,
- 19.89898989898989,
- 21.3131313131313,
- 22.727272727272716,
- 24.141414141414128,
- 25.555555555555543,
- 26.969696969696955,
- 28.383838383838366,
- 29.797979797979778,
- 31.212121212121193,
- 32.6262626262626,
- 34.04040404040401,
- 35.45454545454543,
- 36.868686868686844,
- 38.282828282828255,
- 39.696969696969674,
- 41.111111111111086,
- 42.52525252525249,
- 43.93939393939391,
- 45.353535353535314,
- 46.76767676767673,
- 48.181818181818144,
- 49.595959595959556,
- 51.01010101010097,
- 52.42424242424239,
- 53.83838383838379,
- 55.25252525252521,
- 56.66666666666663,
- 58.08080808080803,
- 59.494949494949445,
- 60.909090909090864,
- 62.32323232323227,
- 63.73737373737369,
- 65.1515151515151,
- 66.56565656565651,
- 67.97979797979792,
- 69.39393939393935,
- 70.80808080808075,
- 72.22222222222217,
- 73.63636363636358,
- 75.05050505050498,
- 76.4646464646464,
- 77.87878787878782,
- 79.29292929292923,
- 80.70707070707063,
- 82.12121212121205,
- 83.53535353535347,
- 84.94949494949488,
- 86.36363636363629,
- 87.7777777777777,
- 89.19191919191911,
- 90.60606060606054,
- 92.02020202020194,
- 93.43434343434335,
- 94.84848484848477,
- 96.26262626262618,
- 97.67676767676758,
- 99.09090909090901,
- 100.50505050505042,
- 101.91919191919183,
- 103.33333333333326,
- 104.74747474747466,
- 106.16161616161607,
- 107.57575757575749,
- 108.98989898989889,
- 110.4040404040403,
- 111.81818181818173,
- 113.23232323232314,
- 114.64646464646454,
- 116.06060606060596,
- 117.47474747474737,
- 118.88888888888879,
- 120.3030303030302,
- 121.71717171717161,
- 123.13131313131302,
- 124.54545454545445,
- 125.95959595959584,
- 127.37373737373726,
- 128.7878787878787,
- 130.2020202020201,
- 131.6161616161615,
- 133.03030303030292,
- 134.44444444444434,
- 135.85858585858574,
- 137.27272727272717,
- 138.68686868686856,
- 140.10101010100996,
- 141.5151515151514,
- 142.9292929292928,
- 144.3434343434342,
- 145.75757575757564,
- 147.17171717171703,
- 148.58585858585846,
- 149.99999999999986,
- 149.99999999999986,
- 148.58585858585846,
- 147.17171717171703,
- 145.75757575757564,
- 144.3434343434342,
- 142.9292929292928,
- 141.5151515151514,
- 140.10101010100996,
- 138.68686868686856,
- 137.27272727272717,
- 135.85858585858574,
- 134.44444444444434,
- 133.03030303030292,
- 131.6161616161615,
- 130.2020202020201,
- 128.7878787878787,
- 127.37373737373726,
- 125.95959595959584,
- 124.54545454545445,
- 123.13131313131302,
- 121.71717171717161,
- 120.3030303030302,
- 118.88888888888879,
- 117.47474747474737,
- 116.06060606060596,
- 114.64646464646454,
- 113.23232323232314,
- 111.81818181818173,
- 110.4040404040403,
- 108.98989898989889,
- 107.57575757575749,
- 106.16161616161607,
- 104.74747474747466,
- 103.33333333333326,
- 101.91919191919183,
- 100.50505050505042,
- 99.09090909090901,
- 97.67676767676758,
- 96.26262626262618,
- 94.84848484848477,
- 93.43434343434335,
- 92.02020202020194,
- 90.60606060606054,
- 89.19191919191911,
- 87.7777777777777,
- 86.36363636363629,
- 84.94949494949488,
- 83.53535353535347,
- 82.12121212121205,
- 80.70707070707063,
- 79.29292929292923,
- 77.87878787878782,
- 76.4646464646464,
- 75.05050505050498,
- 73.63636363636358,
- 72.22222222222217,
- 70.80808080808075,
- 69.39393939393935,
- 67.97979797979792,
- 66.56565656565651,
- 65.1515151515151,
- 63.73737373737369,
- 62.32323232323227,
- 60.909090909090864,
- 59.494949494949445,
- 58.08080808080803,
- 56.66666666666663,
- 55.25252525252521,
- 53.83838383838379,
- 52.42424242424239,
- 51.01010101010097,
- 49.595959595959556,
- 48.181818181818144,
- 46.76767676767673,
- 45.353535353535314,
- 43.93939393939391,
- 42.52525252525249,
- 41.111111111111086,
- 39.696969696969674,
- 38.282828282828255,
- 36.868686868686844,
- 35.45454545454543,
- 34.04040404040401,
- 32.6262626262626,
- 31.212121212121193,
- 29.797979797979778,
- 28.383838383838366,
- 26.969696969696955,
- 25.555555555555543,
- 24.141414141414128,
- 22.727272727272716,
- 21.3131313131313,
- 19.89898989898989,
- 18.484848484848477,
- 17.070707070707066,
- 15.65656565656565,
- 14.242424242424239,
- 12.828282828282825,
- 11.414141414141413,
- 10
- ],
- "y": [
- 75.91547712539727,
- 74.93654367398881,
- 74.02189785395134,
- 73.17397561060321,
- 72.3940365078906,
- 71.68206182645756,
- 71.03670271491046,
- 70.45528484258708,
- 69.93387077018227,
- 69.46737569513706,
- 69.04972729168168,
- 68.6740568535102,
- 68.33290731653742,
- 68.01844402028928,
- 67.72265591747737,
- 67.43753779625996,
- 67.15524732310504,
- 66.86823382263606,
- 66.56933833050053,
- 66.25186641508387,
- 65.90963654403734,
- 65.53700745258317,
- 65.12888818232207,
- 64.68073434195605,
- 64.18853382076665,
- 63.64878476190882,
- 63.05846814744654,
- 62.41501690725669,
- 61.71628306614554,
- 60.960504100048745,
- 60.14626938573918,
- 59.27248739607537,
- 58.338354108502195,
- 57.34332295113223,
- 56.28707650110797,
- 55.1695000674466,
- 53.99065722945813,
- 52.750767357263975,
- 51.4501851090203,
- 50.08938187705001,
- 48.668929139777255,
- 47.189483666297555,
- 45.651774514191594,
- 44.056591757792496,
- 42.40477688277267,
- 40.69721478313543,
- 38.9348272980824,
- 37.11856822858912,
- 35.249419776693976,
- 33.3283903544534,
- 31.35651371421786,
- 29.334849357400145,
- 27.264484185297825,
- 25.146535362932823,
- 22.98215437541382,
- 20.77253226620784,
- 18.518906058153185,
- 16.222566371338637,
- 13.88486626744887,
- 11.507231368260669,
- 9.091171317157112,
- 6.6382926774169775,
- 4.150313390344088,
- 1.629078950850193,
- -0.9234195011526509,
- -3.505024927238747,
- -6.113391672268019,
- -8.745959913389857,
- -11.399926832571541,
- -14.07221398322078,
- -16.759430226558006,
- -19.4578295123209,
- -22.163262677609946,
- -24.871122349196398,
- -27.576279979213396,
- -30.273014056170783,
- -32.95492866727976,
- -35.61486192807671,
- -38.244784465776526,
- -40.835689320637485,
- -43.377476552632054,
- -45.85883880217896,
- -48.267158364799414,
- -50.58843222741681,
- -52.80724891210001,
- -54.90684916425528,
- -56.8693096470514,
- -58.67589139282414,
- -60.30758772279147,
- -61.74588412556804,
- -62.97370217601387,
- -63.97644502712561,
- -64.74300791736174,
- -65.26658669754465,
- -65.54513209986311,
- -65.58136244536286,
- -65.38234335096413,
- -64.95873376179742,
- -64.32385076365706,
- -63.49270919923052,
- -134.35118964736247,
- -132.6433140913189,
- -131.03366724088275,
- -129.53657885225593,
- -128.1648952715463,
- -126.92902429453707,
- -125.83600284501128,
- -124.8887433731432,
- -124.08561141935908,
- -123.42043377739313,
- -122.88294603450103,
- -122.45959249130013,
- -122.13452655127222,
- -121.89064498211272,
- -121.7105198902907,
- -121.57714631659994,
- -121.47447786714238,
- -121.38776314971042,
- -121.30371794798555,
- -121.21057504713042,
- -121.09805098089686,
- -120.95726179723664,
- -120.78061170721224,
- -120.56167105075832,
- -120.29505409946012,
- -119.97630288699798,
- -119.60178028433592,
- -119.16857360702127,
- -118.67440886187018,
- -118.11757507114808,
- -117.49685777630131,
- -116.81148069509072,
- -116.06105450101705,
- -115.24553175706674,
- -114.36516713223733,
- -113.42048213790756,
- -112.41223372960593,
- -111.34138622151428,
- -110.20908605294025,
- -109.01663902695981,
- -107.76548971156691,
- -106.45720275371573,
- -105.09344590761941,
- -103.675974621694,
- -102.20661806467993,
- -100.68726650174176,
- -99.11985995662081,
- -97.5063781169745,
- -95.84883145753739,
- -94.14925357025757,
- -92.40969470255843,
- -90.63221651478156,
- -88.81888807599752,
- -86.97178312404728,
- -85.09297862112714,
- -83.18455464068668,
- -81.24859562503352,
- -79.28719305598595,
- -77.30244958327799,
- -75.29648465726004,
- -73.27144171374003,
- -71.22949695948753,
- -69.17286980679026,
- -67.10383500417132,
- -65.0247365074496,
- -62.93800313001654,
- -60.84616600247186,
- -58.75187785822136,
- -56.65793414138797,
- -54.56729590400032,
- -52.483114417722255,
- -50.40875736743855,
- -48.34783641492515,
- -46.30423581483453,
- -44.282141625642545,
- -42.286070877828024,
- -40.32089983323004,
- -38.391890187258035,
- -36.504711726436874,
- -34.66545956038479,
- -32.88066361204647,
- -31.157287599526825,
- -29.502714323879374,
- -27.924713761520135,
- -26.4313903475278,
- -25.031106052650543,
- -23.732376542283475,
- -22.543738989642215,
- -21.473592077909252,
- -20.53001134704193,
- -19.720546148616407,
- -19.052007712182455,
- -18.530260675292027,
- -18.16003227091072,
- -17.944753634396417,
- -17.88644604620109,
- -17.985661396818323,
- -18.241481204437953,
- -18.651572937080438,
- -19.21229714074586
- ]
- },
- {
- "line": {
- "color": "#00857C"
- },
- "mode": "lines",
- "name": "Mean",
- "type": "scatter",
- "x": [
- 10,
- 11.414141414141413,
- 12.828282828282825,
- 14.242424242424239,
- 15.65656565656565,
- 17.070707070707066,
- 18.484848484848477,
- 19.89898989898989,
- 21.3131313131313,
- 22.727272727272716,
- 24.141414141414128,
- 25.555555555555543,
- 26.969696969696955,
- 28.383838383838366,
- 29.797979797979778,
- 31.212121212121193,
- 32.6262626262626,
- 34.04040404040401,
- 35.45454545454543,
- 36.868686868686844,
- 38.282828282828255,
- 39.696969696969674,
- 41.111111111111086,
- 42.52525252525249,
- 43.93939393939391,
- 45.353535353535314,
- 46.76767676767673,
- 48.181818181818144,
- 49.595959595959556,
- 51.01010101010097,
- 52.42424242424239,
- 53.83838383838379,
- 55.25252525252521,
- 56.66666666666663,
- 58.08080808080803,
- 59.494949494949445,
- 60.909090909090864,
- 62.32323232323227,
- 63.73737373737369,
- 65.1515151515151,
- 66.56565656565651,
- 67.97979797979792,
- 69.39393939393935,
- 70.80808080808075,
- 72.22222222222217,
- 73.63636363636358,
- 75.05050505050498,
- 76.4646464646464,
- 77.87878787878782,
- 79.29292929292923,
- 80.70707070707063,
- 82.12121212121205,
- 83.53535353535347,
- 84.94949494949488,
- 86.36363636363629,
- 87.7777777777777,
- 89.19191919191911,
- 90.60606060606054,
- 92.02020202020194,
- 93.43434343434335,
- 94.84848484848477,
- 96.26262626262618,
- 97.67676767676758,
- 99.09090909090901,
- 100.50505050505042,
- 101.91919191919183,
- 103.33333333333326,
- 104.74747474747466,
- 106.16161616161607,
- 107.57575757575749,
- 108.98989898989889,
- 110.4040404040403,
- 111.81818181818173,
- 113.23232323232314,
- 114.64646464646454,
- 116.06060606060596,
- 117.47474747474737,
- 118.88888888888879,
- 120.3030303030302,
- 121.71717171717161,
- 123.13131313131302,
- 124.54545454545445,
- 125.95959595959584,
- 127.37373737373726,
- 128.7878787878787,
- 130.2020202020201,
- 131.6161616161615,
- 133.03030303030292,
- 134.44444444444434,
- 135.85858585858574,
- 137.27272727272717,
- 138.68686868686856,
- 140.10101010100996,
- 141.5151515151514,
- 142.9292929292928,
- 144.3434343434342,
- 145.75757575757564,
- 147.17171717171703,
- 148.58585858585846,
- 149.99999999999986
- ],
- "y": [
- 28.351583855474644,
- 28.142479330929,
- 27.890202372692535,
- 27.594151226032515,
- 27.253789406700555,
- 26.86864831405552,
- 26.438329467770018,
- 25.96250634304186,
- 25.440925788372766,
- 24.873409019599045,
- 24.259852193381832,
- 23.60022657222558,
- 22.894578300843882,
- 22.14302782000474,
- 21.345768948713832,
- 20.503067668725272,
- 19.615260647025913,
- 18.682753532328064,
- 17.706019060979543,
- 16.685595006314166,
- 15.622082003559427,
- 14.516141280191988,
- 13.368492319234285,
- 12.179910480532811,
- 10.951224602615333,
- 9.683314605329414,
- 8.377109111135937,
- 7.033583100669738,
- 5.653755615980501,
- 4.238687522726586,
- 2.7894793405063822,
- 1.3072691484792358,
- -0.20676942854534275,
- -1.7514291502704822,
- -3.325471005862635,
- -4.927625973931772,
- -6.556596699363855,
- -8.211059090259916,
- -9.889663839504117,
- -11.591037876557078,
- -13.313785755956584,
- -15.056490989672053,
- -16.81771733091794,
- -18.59601001726672,
- -20.38989698093383,
- -22.197890033930616,
- -24.01848603542745,
- -25.850168048139142,
- -27.691406489877693,
- -29.54066028562567,
- -31.396378024605813,
- -33.25699912587624,
- -35.12095501501436,
- -36.98667031347601,
- -38.85256404128416,
- -40.717050832825734,
- -42.57854216476555,
- -44.43544759443828,
- -46.28617600660062,
- -48.1291368661349,
- -49.96274147423279,
- -51.78540422578055,
- -53.59554386614688,
- -55.391584746372786,
- -57.17195807690287,
- -58.93510318151036,
- -60.679468754963395,
- -62.403514130278836,
- -64.10571056410593,
- -65.78454255185697,
- -67.43850918763567,
- -69.06612558772224,
- -70.66592440028968,
- -72.23645742799857,
- -73.77629739398498,
- -75.28403988528709,
- -76.75830551067583,
- -78.19774231182876,
- -79.60102846742618,
- -80.96687532862572,
- -82.29403082102397,
- -83.58128324215699,
- -84.82746547438684,
- -86.0314596202564,
- -87.19220205081052,
- -88.30868883688899,
- -89.37998150921663,
- -90.40521306587037,
- -91.38359411657508,
- -92.31441902408815,
- -93.19707187622276,
- -94.03103210098473,
- -94.81587952535398,
- -95.55129867871182,
- -96.23708215717716,
- -96.87313289582245,
- -97.45946524030654,
- -97.99620476394402,
- -98.48358683489027,
- -98.92195399449503
- ]
- }
- ],
- "layout": {
- "autosize": false,
- "height": 400,
- "template": {
- "data": {
- "bar": [
- {
- "error_x": {
- "color": "rgb(51,51,51)"
- },
- "error_y": {
- "color": "rgb(51,51,51)"
- },
- "marker": {
- "line": {
- "color": "rgb(237,237,237)",
- "width": 0.5
- },
- "pattern": {
- "fillmode": "overlay",
- "size": 10,
- "solidity": 0.2
- }
- },
- "type": "bar"
- }
- ],
- "barpolar": [
- {
- "marker": {
- "line": {
- "color": "rgb(237,237,237)",
- "width": 0.5
- },
- "pattern": {
- "fillmode": "overlay",
- "size": 10,
- "solidity": 0.2
- }
- },
- "type": "barpolar"
- }
- ],
- "carpet": [
- {
- "aaxis": {
- "endlinecolor": "rgb(51,51,51)",
- "gridcolor": "white",
- "linecolor": "white",
- "minorgridcolor": "white",
- "startlinecolor": "rgb(51,51,51)"
- },
- "baxis": {
- "endlinecolor": "rgb(51,51,51)",
- "gridcolor": "white",
- "linecolor": "white",
- "minorgridcolor": "white",
- "startlinecolor": "rgb(51,51,51)"
- },
- "type": "carpet"
- }
- ],
- "choropleth": [
- {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- },
- "type": "choropleth"
- }
- ],
- "contour": [
- {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- },
- "colorscale": [
- [
- 0,
- "rgb(20,44,66)"
- ],
- [
- 1,
- "rgb(90,179,244)"
- ]
- ],
- "type": "contour"
- }
- ],
- "contourcarpet": [
- {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- },
- "type": "contourcarpet"
- }
- ],
- "heatmap": [
- {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- },
- "colorscale": [
- [
- 0,
- "rgb(20,44,66)"
- ],
- [
- 1,
- "rgb(90,179,244)"
- ]
- ],
- "type": "heatmap"
- }
- ],
- "heatmapgl": [
- {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- },
- "colorscale": [
- [
- 0,
- "rgb(20,44,66)"
- ],
- [
- 1,
- "rgb(90,179,244)"
- ]
- ],
- "type": "heatmapgl"
- }
- ],
- "histogram": [
- {
- "marker": {
- "pattern": {
- "fillmode": "overlay",
- "size": 10,
- "solidity": 0.2
- }
- },
- "type": "histogram"
- }
- ],
- "histogram2d": [
- {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- },
- "colorscale": [
- [
- 0,
- "rgb(20,44,66)"
- ],
- [
- 1,
- "rgb(90,179,244)"
- ]
- ],
- "type": "histogram2d"
- }
- ],
- "histogram2dcontour": [
- {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- },
- "colorscale": [
- [
- 0,
- "rgb(20,44,66)"
- ],
- [
- 1,
- "rgb(90,179,244)"
- ]
- ],
- "type": "histogram2dcontour"
- }
- ],
- "mesh3d": [
- {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- },
- "type": "mesh3d"
- }
- ],
- "parcoords": [
- {
- "line": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "type": "parcoords"
- }
- ],
- "pie": [
- {
- "automargin": true,
- "type": "pie"
- }
- ],
- "scatter": [
- {
- "fillpattern": {
- "fillmode": "overlay",
- "size": 10,
- "solidity": 0.2
- },
- "type": "scatter"
- }
- ],
- "scatter3d": [
- {
- "line": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "marker": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "type": "scatter3d"
- }
- ],
- "scattercarpet": [
- {
- "marker": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "type": "scattercarpet"
- }
- ],
- "scattergeo": [
- {
- "marker": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "type": "scattergeo"
- }
- ],
- "scattergl": [
- {
- "marker": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "type": "scattergl"
- }
- ],
- "scattermapbox": [
- {
- "marker": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "type": "scattermapbox"
- }
- ],
- "scatterpolar": [
- {
- "marker": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "type": "scatterpolar"
- }
- ],
- "scatterpolargl": [
- {
- "marker": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "type": "scatterpolargl"
- }
- ],
- "scatterternary": [
- {
- "marker": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "type": "scatterternary"
- }
- ],
- "surface": [
- {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- },
- "colorscale": [
- [
- 0,
- "rgb(20,44,66)"
- ],
- [
- 1,
- "rgb(90,179,244)"
- ]
- ],
- "type": "surface"
- }
- ],
- "table": [
- {
- "cells": {
- "fill": {
- "color": "rgb(237,237,237)"
- },
- "line": {
- "color": "white"
- }
- },
- "header": {
- "fill": {
- "color": "rgb(217,217,217)"
- },
- "line": {
- "color": "white"
- }
- },
- "type": "table"
- }
- ]
- },
- "layout": {
- "annotationdefaults": {
- "arrowhead": 0,
- "arrowwidth": 1
- },
- "autotypenumbers": "strict",
- "coloraxis": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "colorscale": {
- "sequential": [
- [
- 0,
- "rgb(20,44,66)"
- ],
- [
- 1,
- "rgb(90,179,244)"
- ]
- ],
- "sequentialminus": [
- [
- 0,
- "rgb(20,44,66)"
- ],
- [
- 1,
- "rgb(90,179,244)"
- ]
- ]
- },
- "colorway": [
- "#F8766D",
- "#A3A500",
- "#00BF7D",
- "#00B0F6",
- "#E76BF3"
- ],
- "font": {
- "color": "rgb(51,51,51)"
- },
- "geo": {
- "bgcolor": "white",
- "lakecolor": "white",
- "landcolor": "rgb(237,237,237)",
- "showlakes": true,
- "showland": true,
- "subunitcolor": "white"
- },
- "hoverlabel": {
- "align": "left"
- },
- "hovermode": "closest",
- "paper_bgcolor": "white",
- "plot_bgcolor": "rgb(237,237,237)",
- "polar": {
- "angularaxis": {
- "gridcolor": "white",
- "linecolor": "white",
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside"
- },
- "bgcolor": "rgb(237,237,237)",
- "radialaxis": {
- "gridcolor": "white",
- "linecolor": "white",
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside"
- }
- },
- "scene": {
- "xaxis": {
- "backgroundcolor": "rgb(237,237,237)",
- "gridcolor": "white",
- "gridwidth": 2,
- "linecolor": "white",
- "showbackground": true,
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside",
- "zerolinecolor": "white"
- },
- "yaxis": {
- "backgroundcolor": "rgb(237,237,237)",
- "gridcolor": "white",
- "gridwidth": 2,
- "linecolor": "white",
- "showbackground": true,
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside",
- "zerolinecolor": "white"
- },
- "zaxis": {
- "backgroundcolor": "rgb(237,237,237)",
- "gridcolor": "white",
- "gridwidth": 2,
- "linecolor": "white",
- "showbackground": true,
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside",
- "zerolinecolor": "white"
- }
- },
- "shapedefaults": {
- "fillcolor": "black",
- "line": {
- "width": 0
- },
- "opacity": 0.3
- },
- "ternary": {
- "aaxis": {
- "gridcolor": "white",
- "linecolor": "white",
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside"
- },
- "baxis": {
- "gridcolor": "white",
- "linecolor": "white",
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside"
- },
- "bgcolor": "rgb(237,237,237)",
- "caxis": {
- "gridcolor": "white",
- "linecolor": "white",
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside"
- }
- },
- "xaxis": {
- "automargin": true,
- "gridcolor": "white",
- "linecolor": "white",
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside",
- "title": {
- "standoff": 15
- },
- "zerolinecolor": "white"
- },
- "yaxis": {
- "automargin": true,
- "gridcolor": "white",
- "linecolor": "white",
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside",
- "title": {
- "standoff": 15
- },
- "zerolinecolor": "white"
- }
- }
- },
- "title": {
- "text": "Factor Effect Plot for Concentration"
- },
- "width": 600,
- "xaxis": {
- "title": {
- "text": "Concentration"
- }
- },
- "yaxis": {
- "title": {
- "text": "Product"
- }
- }
- }
- },
- "text/html": [
- ""
- ]
- },
- "metadata": {},
- "output_type": "display_data"
- }
- ],
+ "outputs": [],
"source": [
"factor_plot(campaign.optimizer, feature_id=1)"
]
@@ -1637,7 +139,7 @@
},
{
"cell_type": "code",
- "execution_count": 8,
+ "execution_count": null,
"metadata": {},
"outputs": [],
"source": [
@@ -1653,7 +155,7 @@
},
{
"cell_type": "code",
- "execution_count": 9,
+ "execution_count": null,
"metadata": {},
"outputs": [],
"source": [
@@ -1665,133 +167,18 @@
},
{
"cell_type": "code",
- "execution_count": 10,
+ "execution_count": null,
"metadata": {},
- "outputs": [
- {
- "name": "stderr",
- "output_type": "stream",
- "text": [
- "c:\\Users\\kevin\\miniconda3\\envs\\obsidian-dev\\lib\\site-packages\\botorch\\optim\\optimize.py:564: RuntimeWarning:\n",
- "\n",
- "Optimization failed in `gen_candidates_scipy` with the following warning(s):\n",
- "[OptimizationWarning('Optimization failed within `scipy.optimize.minimize` with status 2 and message ABNORMAL_TERMINATION_IN_LNSRCH.')]\n",
- "Trying again with a new set of initial conditions.\n",
- "\n",
- "c:\\Users\\kevin\\miniconda3\\envs\\obsidian-dev\\lib\\site-packages\\botorch\\optim\\optimize.py:564: RuntimeWarning:\n",
- "\n",
- "Optimization failed on the second try, after generating a new set of initial conditions.\n",
- "\n"
- ]
- }
- ],
+ "outputs": [],
"source": [
"X_suggest, eval_suggest = campaign.suggest(m_batch = 3, optim_sequential = False)"
]
},
{
"cell_type": "code",
- "execution_count": 11,
+ "execution_count": null,
"metadata": {},
- "outputs": [
- {
- "data": {
- "text/html": [
- "\n",
- "\n",
- "
\n",
- " \n",
- " \n",
- " | \n",
- " Temperature | \n",
- " Concentration | \n",
- " Enzyme | \n",
- " Product (pred) | \n",
- " Product lb | \n",
- " Product ub | \n",
- " f(Product) | \n",
- " Objective 1 | \n",
- " aq Value | \n",
- " aq Value (joint) | \n",
- " aq Method | \n",
- "
\n",
- " \n",
- " \n",
- " \n",
- " 0 | \n",
- " -1.366459 | \n",
- " 23.701565 | \n",
- " 0.027559 | \n",
- " 82.545038 | \n",
- " 52.602369 | \n",
- " 112.487712 | \n",
- " 1.704477 | \n",
- " 1.566681 | \n",
- " -1.214936 | \n",
- " -0.977403 | \n",
- " NEI | \n",
- "
\n",
- " \n",
- " 1 | \n",
- " 0.748942 | \n",
- " 100.907522 | \n",
- " 0.276121 | \n",
- " -70.506235 | \n",
- " -99.886332 | \n",
- " -41.126134 | \n",
- " -0.532599 | \n",
- " -1.913204 | \n",
- " -46.057986 | \n",
- " -0.977403 | \n",
- " NEI | \n",
- "
\n",
- " \n",
- " 2 | \n",
- " -10.000000 | \n",
- " 53.696260 | \n",
- " 0.060275 | \n",
- " 76.435947 | \n",
- " 46.268528 | \n",
- " 106.603372 | \n",
- " 1.615183 | \n",
- " 1.313808 | \n",
- " -1.893481 | \n",
- " -0.977403 | \n",
- " NEI | \n",
- "
\n",
- " \n",
- "
\n",
- "
"
- ],
- "text/plain": [
- " Temperature Concentration Enzyme Product (pred) Product lb \\\n",
- "0 -1.366459 23.701565 0.027559 82.545038 52.602369 \n",
- "1 0.748942 100.907522 0.276121 -70.506235 -99.886332 \n",
- "2 -10.000000 53.696260 0.060275 76.435947 46.268528 \n",
- "\n",
- " Product ub f(Product) Objective 1 aq Value aq Value (joint) aq Method \n",
- "0 112.487712 1.704477 1.566681 -1.214936 -0.977403 NEI \n",
- "1 -41.126134 -0.532599 -1.913204 -46.057986 -0.977403 NEI \n",
- "2 106.603372 1.615183 1.313808 -1.893481 -0.977403 NEI "
- ]
- },
- "execution_count": 11,
- "metadata": {},
- "output_type": "execute_result"
- }
- ],
+ "outputs": [],
"source": [
"df_suggest = pd.concat([X_suggest, eval_suggest], axis=1)\n",
"df_suggest"
@@ -1806,95 +193,9 @@
},
{
"cell_type": "code",
- "execution_count": 12,
+ "execution_count": null,
"metadata": {},
- "outputs": [
- {
- "data": {
- "text/html": [
- "\n",
- "\n",
- "
\n",
- " \n",
- " \n",
- " | \n",
- " Product (pred) | \n",
- " Product lb | \n",
- " Product ub | \n",
- " f(Product) | \n",
- " Objective 1 | \n",
- " Objective 2 | \n",
- " Expected Hypervolume (joint) | \n",
- " Expected Pareto | \n",
- "
\n",
- " \n",
- " \n",
- " \n",
- " 0 | \n",
- " 82.545038 | \n",
- " 52.602369 | \n",
- " 112.487712 | \n",
- " 1.704477 | \n",
- " 1.704477 | \n",
- " -0.137796 | \n",
- " 4.775616 | \n",
- " False | \n",
- "
\n",
- " \n",
- " 1 | \n",
- " -70.506235 | \n",
- " -99.886332 | \n",
- " -41.126134 | \n",
- " -0.532599 | \n",
- " -0.532599 | \n",
- " -1.380605 | \n",
- " 4.775616 | \n",
- " False | \n",
- "
\n",
- " \n",
- " 2 | \n",
- " 76.435947 | \n",
- " 46.268528 | \n",
- " 106.603372 | \n",
- " 1.615183 | \n",
- " 1.615183 | \n",
- " -0.301376 | \n",
- " 4.775616 | \n",
- " True | \n",
- "
\n",
- " \n",
- "
\n",
- "
"
- ],
- "text/plain": [
- " Product (pred) Product lb Product ub f(Product) Objective 1 \\\n",
- "0 82.545038 52.602369 112.487712 1.704477 1.704477 \n",
- "1 -70.506235 -99.886332 -41.126134 -0.532599 -0.532599 \n",
- "2 76.435947 46.268528 106.603372 1.615183 1.615183 \n",
- "\n",
- " Objective 2 Expected Hypervolume (joint) Expected Pareto \n",
- "0 -0.137796 4.775616 False \n",
- "1 -1.380605 4.775616 False \n",
- "2 -0.301376 4.775616 True "
- ]
- },
- "execution_count": 12,
- "metadata": {},
- "output_type": "execute_result"
- }
- ],
+ "outputs": [],
"source": [
"campaign.optimizer.evaluate(X_suggest, objective=penalize_enz_loading)"
]
@@ -1908,192 +209,9 @@
},
{
"cell_type": "code",
- "execution_count": 13,
+ "execution_count": null,
"metadata": {},
- "outputs": [
- {
- "data": {
- "text/html": [
- "\n",
- "\n",
- "
\n",
- " \n",
- " \n",
- " | \n",
- " Temperature | \n",
- " Concentration | \n",
- " Enzyme | \n",
- " Product | \n",
- " Iteration | \n",
- " Objective 1 | \n",
- " Product (pred) | \n",
- " Product lb | \n",
- " Product ub | \n",
- " f(Product) | \n",
- " aq Value | \n",
- " aq Value (joint) | \n",
- " aq Method | \n",
- " Objective 1 (max) (iter) | \n",
- "
\n",
- " \n",
- " Observation ID | \n",
- " | \n",
- " | \n",
- " | \n",
- " | \n",
- " | \n",
- " | \n",
- " | \n",
- " | \n",
- " | \n",
- " | \n",
- " | \n",
- " | \n",
- " | \n",
- " | \n",
- "
\n",
- " \n",
- " \n",
- " \n",
- " 8 | \n",
- " 24.000000 | \n",
- " 115.000000 | \n",
- " 0.256500 | \n",
- " -166.801349 | \n",
- " 0 | \n",
- " -3.222598 | \n",
- " NaN | \n",
- " NaN | \n",
- " NaN | \n",
- " NaN | \n",
- " NaN | \n",
- " NaN | \n",
- " NaN | \n",
- " 1.363311 | \n",
- "
\n",
- " \n",
- " 9 | \n",
- " -4.000000 | \n",
- " 31.000000 | \n",
- " 0.082500 | \n",
- " 87.425397 | \n",
- " 0 | \n",
- " 1.363311 | \n",
- " NaN | \n",
- " NaN | \n",
- " NaN | \n",
- " NaN | \n",
- " NaN | \n",
- " NaN | \n",
- " NaN | \n",
- " 1.363311 | \n",
- "
\n",
- " \n",
- " 10 | \n",
- " -1.366459 | \n",
- " 23.701565 | \n",
- " 0.027559 | \n",
- " 100.139209 | \n",
- " 1 | \n",
- " 1.823846 | \n",
- " 82.545038 | \n",
- " 52.602369 | \n",
- " 112.487712 | \n",
- " 1.704477 | \n",
- " -1.214936 | \n",
- " -0.977403 | \n",
- " NEI | \n",
- " 1.823846 | \n",
- "
\n",
- " \n",
- " 11 | \n",
- " 0.748942 | \n",
- " 100.907522 | \n",
- " 0.276121 | \n",
- " -79.689998 | \n",
- " 1 | \n",
- " -2.047438 | \n",
- " -70.506235 | \n",
- " -99.886332 | \n",
- " -41.126134 | \n",
- " -0.532599 | \n",
- " -46.057986 | \n",
- " -0.977403 | \n",
- " NEI | \n",
- " 1.823846 | \n",
- "
\n",
- " \n",
- " 12 | \n",
- " -10.000000 | \n",
- " 53.696260 | \n",
- " 0.060275 | \n",
- " 87.065807 | \n",
- " 1 | \n",
- " 1.469179 | \n",
- " 76.435947 | \n",
- " 46.268528 | \n",
- " 106.603372 | \n",
- " 1.615183 | \n",
- " -1.893481 | \n",
- " -0.977403 | \n",
- " NEI | \n",
- " 1.823846 | \n",
- "
\n",
- " \n",
- "
\n",
- "
"
- ],
- "text/plain": [
- " Temperature Concentration Enzyme Product Iteration \\\n",
- "Observation ID \n",
- "8 24.000000 115.000000 0.256500 -166.801349 0 \n",
- "9 -4.000000 31.000000 0.082500 87.425397 0 \n",
- "10 -1.366459 23.701565 0.027559 100.139209 1 \n",
- "11 0.748942 100.907522 0.276121 -79.689998 1 \n",
- "12 -10.000000 53.696260 0.060275 87.065807 1 \n",
- "\n",
- " Objective 1 Product (pred) Product lb Product ub \\\n",
- "Observation ID \n",
- "8 -3.222598 NaN NaN NaN \n",
- "9 1.363311 NaN NaN NaN \n",
- "10 1.823846 82.545038 52.602369 112.487712 \n",
- "11 -2.047438 -70.506235 -99.886332 -41.126134 \n",
- "12 1.469179 76.435947 46.268528 106.603372 \n",
- "\n",
- " f(Product) aq Value aq Value (joint) aq Method \\\n",
- "Observation ID \n",
- "8 NaN NaN NaN NaN \n",
- "9 NaN NaN NaN NaN \n",
- "10 1.704477 -1.214936 -0.977403 NEI \n",
- "11 -0.532599 -46.057986 -0.977403 NEI \n",
- "12 1.615183 -1.893481 -0.977403 NEI \n",
- "\n",
- " Objective 1 (max) (iter) \n",
- "Observation ID \n",
- "8 1.363311 \n",
- "9 1.363311 \n",
- "10 1.823846 \n",
- "11 1.823846 \n",
- "12 1.823846 "
- ]
- },
- "execution_count": 13,
- "metadata": {},
- "output_type": "execute_result"
- }
- ],
+ "outputs": [],
"source": [
"y_iter1 = pd.DataFrame(simulator.simulate(X_suggest), columns = ['Product'])\n",
"Z_iter1 = pd.concat([X_suggest, y_iter1, eval_suggest], axis=1)\n",
@@ -2110,19 +228,9 @@
},
{
"cell_type": "code",
- "execution_count": 14,
+ "execution_count": null,
"metadata": {},
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "GP model has been fit to data with a train-score of: 1 for response: Product\n",
- "GP model has been fit to data with a train-score of: 1 for response: Product\n",
- "GP model has been fit to data with a train-score of: 1 for response: Product\n"
- ]
- }
- ],
+ "outputs": [],
"source": [
"for iter in range(3):\n",
" campaign.fit()\n",
@@ -2143,855 +251,9 @@
},
{
"cell_type": "code",
- "execution_count": 15,
+ "execution_count": null,
"metadata": {},
- "outputs": [
- {
- "data": {
- "application/vnd.plotly.v1+json": {
- "config": {
- "plotlyServerURL": "https://plot.ly"
- },
- "data": [
- {
- "customdata": [
- [
- 16,
- 17,
- 0.1985
- ],
- [
- 0,
- 129,
- 0.1695
- ],
- [
- 8,
- 59,
- 0.2855
- ],
- [
- 12,
- 143,
- 0.11149999999999999
- ],
- [
- -8,
- 87,
- 0.22749999999999998
- ],
- [
- 20,
- 73,
- 0.0535
- ],
- [
- 4,
- 101,
- 0.0245
- ],
- [
- 28,
- 45,
- 0.1405
- ],
- [
- 24,
- 115,
- 0.25649999999999995
- ],
- [
- -4,
- 31,
- 0.08249999999999999
- ],
- [
- -1.3664591211884574,
- 23.701565198152267,
- 0.027559246753660803
- ],
- [
- 0.7489422280527407,
- 100.90752207071628,
- 0.27612099185375494
- ],
- [
- -10,
- 53.69626037949452,
- 0.06027515490291318
- ],
- [
- -9.884284602635885,
- 12.56932955572526,
- 0.01
- ],
- [
- -2.4201706792597815,
- 35.28138623326379,
- 0.01
- ],
- [
- 5.163747567854349,
- 10,
- 0.01
- ],
- [
- -10,
- 10,
- 0.010000000000000633
- ],
- [
- -10,
- 150,
- 0.01
- ],
- [
- 4.000327329371169,
- 100.99715275317062,
- 0.024501386042708045
- ],
- [
- -8.554406718721287,
- 11.952295649778815,
- 0.012068813124359354
- ],
- [
- -4.320745462543664,
- 14.994429360903585,
- 0.04345828472841849
- ],
- [
- -2.234654091253856,
- 21.80951451897183,
- 0.024727325215798936
- ]
- ],
- "hovertemplate": "Temperature: %{customdata[0]:.3G}
Concentration: %{customdata[1]:.3G}
Enzyme: %{customdata[2]:.3G}
Experiment: %{x:.3G}
Objective 1: %{y:.3G}
",
- "marker": {
- "color": [
- null,
- null,
- null,
- null,
- null,
- null,
- null,
- null,
- null,
- null,
- -1.214936486425679,
- -46.05798556097491,
- -1.8934809161165003,
- -1.9425153609733758,
- -2.304711901139429,
- -2.916211679852649,
- -5.041349531173079,
- -8.741279211535392,
- -43.809336066433794,
- -6.034952600890604,
- -40.35409791551022,
- -40.05001848731589
- ],
- "colorbar": {
- "title": {
- "text": "aq Value"
- }
- },
- "colorscale": [
- [
- 0,
- "#5450E4"
- ],
- [
- 0.5,
- "#00857C"
- ],
- [
- 1,
- "#FFF063"
- ]
- ],
- "showscale": true
- },
- "mode": "markers",
- "name": "Data",
- "type": "scatter",
- "x": [
- 0,
- 1,
- 2,
- 3,
- 4,
- 5,
- 6,
- 7,
- 8,
- 9,
- 10,
- 11,
- 12,
- 13,
- 14,
- 15,
- 16,
- 17,
- 18,
- 19,
- 20,
- 21
- ],
- "y": [
- -1.2689883542009865,
- -1.5164747686539908,
- -2.3545826863573023,
- -1.7175146007463096,
- -1.4508586347599788,
- -0.4279130817285641,
- 0.12545116629902575,
- -1.4869824781899614,
- -3.4458508119080062,
- 0.5664753400428056,
- 0.9983260042719415,
- -2.467230843839267,
- 0.6731549192467852,
- 1.1928038591083265,
- 0.9939515532788208,
- 0.8964550702837024,
- 1.193422902696105,
- -0.5718857230263402,
- 0.1259572704180073,
- 1.1802964735973038,
- 0.8834379335752423,
- 0.9893428567715883
- ]
- }
- ],
- "layout": {
- "coloraxis": {
- "colorbar": {
- "ticks": "outside",
- "x": 0,
- "y": 1,
- "yanchor": "top"
- }
- },
- "height": 400,
- "legend": {
- "x": 0.95,
- "xanchor": "right",
- "y": 0.05,
- "yanchor": "bottom"
- },
- "template": {
- "data": {
- "bar": [
- {
- "error_x": {
- "color": "rgb(51,51,51)"
- },
- "error_y": {
- "color": "rgb(51,51,51)"
- },
- "marker": {
- "line": {
- "color": "rgb(237,237,237)",
- "width": 0.5
- },
- "pattern": {
- "fillmode": "overlay",
- "size": 10,
- "solidity": 0.2
- }
- },
- "type": "bar"
- }
- ],
- "barpolar": [
- {
- "marker": {
- "line": {
- "color": "rgb(237,237,237)",
- "width": 0.5
- },
- "pattern": {
- "fillmode": "overlay",
- "size": 10,
- "solidity": 0.2
- }
- },
- "type": "barpolar"
- }
- ],
- "carpet": [
- {
- "aaxis": {
- "endlinecolor": "rgb(51,51,51)",
- "gridcolor": "white",
- "linecolor": "white",
- "minorgridcolor": "white",
- "startlinecolor": "rgb(51,51,51)"
- },
- "baxis": {
- "endlinecolor": "rgb(51,51,51)",
- "gridcolor": "white",
- "linecolor": "white",
- "minorgridcolor": "white",
- "startlinecolor": "rgb(51,51,51)"
- },
- "type": "carpet"
- }
- ],
- "choropleth": [
- {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- },
- "type": "choropleth"
- }
- ],
- "contour": [
- {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- },
- "colorscale": [
- [
- 0,
- "rgb(20,44,66)"
- ],
- [
- 1,
- "rgb(90,179,244)"
- ]
- ],
- "type": "contour"
- }
- ],
- "contourcarpet": [
- {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- },
- "type": "contourcarpet"
- }
- ],
- "heatmap": [
- {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- },
- "colorscale": [
- [
- 0,
- "rgb(20,44,66)"
- ],
- [
- 1,
- "rgb(90,179,244)"
- ]
- ],
- "type": "heatmap"
- }
- ],
- "heatmapgl": [
- {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- },
- "colorscale": [
- [
- 0,
- "rgb(20,44,66)"
- ],
- [
- 1,
- "rgb(90,179,244)"
- ]
- ],
- "type": "heatmapgl"
- }
- ],
- "histogram": [
- {
- "marker": {
- "pattern": {
- "fillmode": "overlay",
- "size": 10,
- "solidity": 0.2
- }
- },
- "type": "histogram"
- }
- ],
- "histogram2d": [
- {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- },
- "colorscale": [
- [
- 0,
- "rgb(20,44,66)"
- ],
- [
- 1,
- "rgb(90,179,244)"
- ]
- ],
- "type": "histogram2d"
- }
- ],
- "histogram2dcontour": [
- {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- },
- "colorscale": [
- [
- 0,
- "rgb(20,44,66)"
- ],
- [
- 1,
- "rgb(90,179,244)"
- ]
- ],
- "type": "histogram2dcontour"
- }
- ],
- "mesh3d": [
- {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- },
- "type": "mesh3d"
- }
- ],
- "parcoords": [
- {
- "line": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "type": "parcoords"
- }
- ],
- "pie": [
- {
- "automargin": true,
- "type": "pie"
- }
- ],
- "scatter": [
- {
- "fillpattern": {
- "fillmode": "overlay",
- "size": 10,
- "solidity": 0.2
- },
- "type": "scatter"
- }
- ],
- "scatter3d": [
- {
- "line": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "marker": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "type": "scatter3d"
- }
- ],
- "scattercarpet": [
- {
- "marker": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "type": "scattercarpet"
- }
- ],
- "scattergeo": [
- {
- "marker": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "type": "scattergeo"
- }
- ],
- "scattergl": [
- {
- "marker": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "type": "scattergl"
- }
- ],
- "scattermapbox": [
- {
- "marker": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "type": "scattermapbox"
- }
- ],
- "scatterpolar": [
- {
- "marker": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "type": "scatterpolar"
- }
- ],
- "scatterpolargl": [
- {
- "marker": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "type": "scatterpolargl"
- }
- ],
- "scatterternary": [
- {
- "marker": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "type": "scatterternary"
- }
- ],
- "surface": [
- {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- },
- "colorscale": [
- [
- 0,
- "rgb(20,44,66)"
- ],
- [
- 1,
- "rgb(90,179,244)"
- ]
- ],
- "type": "surface"
- }
- ],
- "table": [
- {
- "cells": {
- "fill": {
- "color": "rgb(237,237,237)"
- },
- "line": {
- "color": "white"
- }
- },
- "header": {
- "fill": {
- "color": "rgb(217,217,217)"
- },
- "line": {
- "color": "white"
- }
- },
- "type": "table"
- }
- ]
- },
- "layout": {
- "annotationdefaults": {
- "arrowhead": 0,
- "arrowwidth": 1
- },
- "autotypenumbers": "strict",
- "coloraxis": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "colorscale": {
- "sequential": [
- [
- 0,
- "rgb(20,44,66)"
- ],
- [
- 1,
- "rgb(90,179,244)"
- ]
- ],
- "sequentialminus": [
- [
- 0,
- "rgb(20,44,66)"
- ],
- [
- 1,
- "rgb(90,179,244)"
- ]
- ]
- },
- "colorway": [
- "#F8766D",
- "#A3A500",
- "#00BF7D",
- "#00B0F6",
- "#E76BF3"
- ],
- "font": {
- "color": "rgb(51,51,51)"
- },
- "geo": {
- "bgcolor": "white",
- "lakecolor": "white",
- "landcolor": "rgb(237,237,237)",
- "showlakes": true,
- "showland": true,
- "subunitcolor": "white"
- },
- "hoverlabel": {
- "align": "left"
- },
- "hovermode": "closest",
- "paper_bgcolor": "white",
- "plot_bgcolor": "rgb(237,237,237)",
- "polar": {
- "angularaxis": {
- "gridcolor": "white",
- "linecolor": "white",
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside"
- },
- "bgcolor": "rgb(237,237,237)",
- "radialaxis": {
- "gridcolor": "white",
- "linecolor": "white",
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside"
- }
- },
- "scene": {
- "xaxis": {
- "backgroundcolor": "rgb(237,237,237)",
- "gridcolor": "white",
- "gridwidth": 2,
- "linecolor": "white",
- "showbackground": true,
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside",
- "zerolinecolor": "white"
- },
- "yaxis": {
- "backgroundcolor": "rgb(237,237,237)",
- "gridcolor": "white",
- "gridwidth": 2,
- "linecolor": "white",
- "showbackground": true,
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside",
- "zerolinecolor": "white"
- },
- "zaxis": {
- "backgroundcolor": "rgb(237,237,237)",
- "gridcolor": "white",
- "gridwidth": 2,
- "linecolor": "white",
- "showbackground": true,
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside",
- "zerolinecolor": "white"
- }
- },
- "shapedefaults": {
- "fillcolor": "black",
- "line": {
- "width": 0
- },
- "opacity": 0.3
- },
- "ternary": {
- "aaxis": {
- "gridcolor": "white",
- "linecolor": "white",
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside"
- },
- "baxis": {
- "gridcolor": "white",
- "linecolor": "white",
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside"
- },
- "bgcolor": "rgb(237,237,237)",
- "caxis": {
- "gridcolor": "white",
- "linecolor": "white",
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside"
- }
- },
- "xaxis": {
- "automargin": true,
- "gridcolor": "white",
- "linecolor": "white",
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside",
- "title": {
- "standoff": 15
- },
- "zerolinecolor": "white"
- },
- "yaxis": {
- "automargin": true,
- "gridcolor": "white",
- "linecolor": "white",
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside",
- "title": {
- "standoff": 15
- },
- "zerolinecolor": "white"
- }
- }
- },
- "title": {
- "text": "Optimization Results"
- },
- "width": 500,
- "xaxis": {
- "title": {
- "text": "Experiment"
- }
- },
- "yaxis": {
- "title": {
- "text": "Objective 1"
- }
- }
- }
- },
- "text/html": [
- ""
- ]
- },
- "metadata": {},
- "output_type": "display_data"
- }
- ],
+ "outputs": [],
"source": [
"optim_progress(campaign, color_feature_id = 'aq Value')"
]
@@ -3005,855 +267,9 @@
},
{
"cell_type": "code",
- "execution_count": 16,
+ "execution_count": null,
"metadata": {},
- "outputs": [
- {
- "data": {
- "application/vnd.plotly.v1+json": {
- "config": {
- "plotlyServerURL": "https://plot.ly"
- },
- "data": [
- {
- "customdata": [
- [
- 16,
- 17,
- 0.1985
- ],
- [
- 0,
- 129,
- 0.1695
- ],
- [
- 8,
- 59,
- 0.2855
- ],
- [
- 12,
- 143,
- 0.11149999999999999
- ],
- [
- -8,
- 87,
- 0.22749999999999998
- ],
- [
- 20,
- 73,
- 0.0535
- ],
- [
- 4,
- 101,
- 0.0245
- ],
- [
- 28,
- 45,
- 0.1405
- ],
- [
- 24,
- 115,
- 0.25649999999999995
- ],
- [
- -4,
- 31,
- 0.08249999999999999
- ],
- [
- -1.3664591211884574,
- 23.701565198152267,
- 0.027559246753660803
- ],
- [
- 0.7489422280527407,
- 100.90752207071628,
- 0.27612099185375494
- ],
- [
- -10,
- 53.69626037949452,
- 0.06027515490291318
- ],
- [
- -9.884284602635885,
- 12.56932955572526,
- 0.01
- ],
- [
- -2.4201706792597815,
- 35.28138623326379,
- 0.01
- ],
- [
- 5.163747567854349,
- 10,
- 0.01
- ],
- [
- -10,
- 10,
- 0.010000000000000633
- ],
- [
- -10,
- 150,
- 0.01
- ],
- [
- 4.000327329371169,
- 100.99715275317062,
- 0.024501386042708045
- ],
- [
- -8.554406718721287,
- 11.952295649778815,
- 0.012068813124359354
- ],
- [
- -4.320745462543664,
- 14.994429360903585,
- 0.04345828472841849
- ],
- [
- -2.234654091253856,
- 21.80951451897183,
- 0.024727325215798936
- ]
- ],
- "hovertemplate": "Temperature: %{customdata[0]:.3G}
Concentration: %{customdata[1]:.3G}
Enzyme: %{customdata[2]:.3G}
Objective 1: %{x:.3G}
Objective 2: %{y:.3G}
",
- "marker": {
- "color": [
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 1,
- 1,
- 1,
- 2,
- 2,
- 2,
- 3,
- 3,
- 3,
- 4,
- 4,
- 4
- ],
- "colorbar": {
- "title": {
- "text": "Iteration"
- }
- },
- "colorscale": [
- [
- 0,
- "#5450E4"
- ],
- [
- 0.5,
- "#00857C"
- ],
- [
- 1,
- "#FFF063"
- ]
- ],
- "showscale": true
- },
- "mode": "markers",
- "name": "Data",
- "type": "scatter",
- "x": [
- -0.2764883542009864,
- -0.6689747686539907,
- -0.9270826863573025,
- -1.1600146007463097,
- -0.3133586347599788,
- -0.1604130817285641,
- 0.24795116629902575,
- -0.7844824781899613,
- -2.1633508119080065,
- 0.9789753400428056,
- 1.1361222380402456,
- -1.0866258845704926,
- 0.974530693761351,
- 1.2428038591083266,
- 1.0439515532788208,
- 0.9464550702837025,
- 1.2434229026961081,
- -0.5218857230263402,
- 0.24846420063154753,
- 1.2406405392191007,
- 1.1007293572173347,
- 1.112979482850583
- ],
- "y": [
- -0.9925,
- -0.8475,
- -1.4274999999999998,
- -0.5574999999999999,
- -1.1375,
- -0.2675,
- -0.1225,
- -0.7025000000000001,
- -1.2824999999999998,
- -0.4125,
- -0.13779623376830402,
- -1.3806049592687746,
- -0.3013757745145659,
- -0.05,
- -0.05,
- -0.05,
- -0.05000000000000317,
- -0.05,
- -0.12250693021354023,
- -0.06034406562179677,
- -0.21729142364209247,
- -0.12363662607899467
- ]
- }
- ],
- "layout": {
- "coloraxis": {
- "colorbar": {
- "ticks": "outside",
- "x": 0,
- "y": 1,
- "yanchor": "top"
- }
- },
- "height": 400,
- "legend": {
- "x": 0.95,
- "xanchor": "right",
- "y": 0.05,
- "yanchor": "bottom"
- },
- "template": {
- "data": {
- "bar": [
- {
- "error_x": {
- "color": "rgb(51,51,51)"
- },
- "error_y": {
- "color": "rgb(51,51,51)"
- },
- "marker": {
- "line": {
- "color": "rgb(237,237,237)",
- "width": 0.5
- },
- "pattern": {
- "fillmode": "overlay",
- "size": 10,
- "solidity": 0.2
- }
- },
- "type": "bar"
- }
- ],
- "barpolar": [
- {
- "marker": {
- "line": {
- "color": "rgb(237,237,237)",
- "width": 0.5
- },
- "pattern": {
- "fillmode": "overlay",
- "size": 10,
- "solidity": 0.2
- }
- },
- "type": "barpolar"
- }
- ],
- "carpet": [
- {
- "aaxis": {
- "endlinecolor": "rgb(51,51,51)",
- "gridcolor": "white",
- "linecolor": "white",
- "minorgridcolor": "white",
- "startlinecolor": "rgb(51,51,51)"
- },
- "baxis": {
- "endlinecolor": "rgb(51,51,51)",
- "gridcolor": "white",
- "linecolor": "white",
- "minorgridcolor": "white",
- "startlinecolor": "rgb(51,51,51)"
- },
- "type": "carpet"
- }
- ],
- "choropleth": [
- {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- },
- "type": "choropleth"
- }
- ],
- "contour": [
- {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- },
- "colorscale": [
- [
- 0,
- "rgb(20,44,66)"
- ],
- [
- 1,
- "rgb(90,179,244)"
- ]
- ],
- "type": "contour"
- }
- ],
- "contourcarpet": [
- {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- },
- "type": "contourcarpet"
- }
- ],
- "heatmap": [
- {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- },
- "colorscale": [
- [
- 0,
- "rgb(20,44,66)"
- ],
- [
- 1,
- "rgb(90,179,244)"
- ]
- ],
- "type": "heatmap"
- }
- ],
- "heatmapgl": [
- {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- },
- "colorscale": [
- [
- 0,
- "rgb(20,44,66)"
- ],
- [
- 1,
- "rgb(90,179,244)"
- ]
- ],
- "type": "heatmapgl"
- }
- ],
- "histogram": [
- {
- "marker": {
- "pattern": {
- "fillmode": "overlay",
- "size": 10,
- "solidity": 0.2
- }
- },
- "type": "histogram"
- }
- ],
- "histogram2d": [
- {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- },
- "colorscale": [
- [
- 0,
- "rgb(20,44,66)"
- ],
- [
- 1,
- "rgb(90,179,244)"
- ]
- ],
- "type": "histogram2d"
- }
- ],
- "histogram2dcontour": [
- {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- },
- "colorscale": [
- [
- 0,
- "rgb(20,44,66)"
- ],
- [
- 1,
- "rgb(90,179,244)"
- ]
- ],
- "type": "histogram2dcontour"
- }
- ],
- "mesh3d": [
- {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- },
- "type": "mesh3d"
- }
- ],
- "parcoords": [
- {
- "line": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "type": "parcoords"
- }
- ],
- "pie": [
- {
- "automargin": true,
- "type": "pie"
- }
- ],
- "scatter": [
- {
- "fillpattern": {
- "fillmode": "overlay",
- "size": 10,
- "solidity": 0.2
- },
- "type": "scatter"
- }
- ],
- "scatter3d": [
- {
- "line": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "marker": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "type": "scatter3d"
- }
- ],
- "scattercarpet": [
- {
- "marker": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "type": "scattercarpet"
- }
- ],
- "scattergeo": [
- {
- "marker": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "type": "scattergeo"
- }
- ],
- "scattergl": [
- {
- "marker": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "type": "scattergl"
- }
- ],
- "scattermapbox": [
- {
- "marker": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "type": "scattermapbox"
- }
- ],
- "scatterpolar": [
- {
- "marker": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "type": "scatterpolar"
- }
- ],
- "scatterpolargl": [
- {
- "marker": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "type": "scatterpolargl"
- }
- ],
- "scatterternary": [
- {
- "marker": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "type": "scatterternary"
- }
- ],
- "surface": [
- {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- },
- "colorscale": [
- [
- 0,
- "rgb(20,44,66)"
- ],
- [
- 1,
- "rgb(90,179,244)"
- ]
- ],
- "type": "surface"
- }
- ],
- "table": [
- {
- "cells": {
- "fill": {
- "color": "rgb(237,237,237)"
- },
- "line": {
- "color": "white"
- }
- },
- "header": {
- "fill": {
- "color": "rgb(217,217,217)"
- },
- "line": {
- "color": "white"
- }
- },
- "type": "table"
- }
- ]
- },
- "layout": {
- "annotationdefaults": {
- "arrowhead": 0,
- "arrowwidth": 1
- },
- "autotypenumbers": "strict",
- "coloraxis": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "colorscale": {
- "sequential": [
- [
- 0,
- "rgb(20,44,66)"
- ],
- [
- 1,
- "rgb(90,179,244)"
- ]
- ],
- "sequentialminus": [
- [
- 0,
- "rgb(20,44,66)"
- ],
- [
- 1,
- "rgb(90,179,244)"
- ]
- ]
- },
- "colorway": [
- "#F8766D",
- "#A3A500",
- "#00BF7D",
- "#00B0F6",
- "#E76BF3"
- ],
- "font": {
- "color": "rgb(51,51,51)"
- },
- "geo": {
- "bgcolor": "white",
- "lakecolor": "white",
- "landcolor": "rgb(237,237,237)",
- "showlakes": true,
- "showland": true,
- "subunitcolor": "white"
- },
- "hoverlabel": {
- "align": "left"
- },
- "hovermode": "closest",
- "paper_bgcolor": "white",
- "plot_bgcolor": "rgb(237,237,237)",
- "polar": {
- "angularaxis": {
- "gridcolor": "white",
- "linecolor": "white",
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside"
- },
- "bgcolor": "rgb(237,237,237)",
- "radialaxis": {
- "gridcolor": "white",
- "linecolor": "white",
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside"
- }
- },
- "scene": {
- "xaxis": {
- "backgroundcolor": "rgb(237,237,237)",
- "gridcolor": "white",
- "gridwidth": 2,
- "linecolor": "white",
- "showbackground": true,
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside",
- "zerolinecolor": "white"
- },
- "yaxis": {
- "backgroundcolor": "rgb(237,237,237)",
- "gridcolor": "white",
- "gridwidth": 2,
- "linecolor": "white",
- "showbackground": true,
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside",
- "zerolinecolor": "white"
- },
- "zaxis": {
- "backgroundcolor": "rgb(237,237,237)",
- "gridcolor": "white",
- "gridwidth": 2,
- "linecolor": "white",
- "showbackground": true,
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside",
- "zerolinecolor": "white"
- }
- },
- "shapedefaults": {
- "fillcolor": "black",
- "line": {
- "width": 0
- },
- "opacity": 0.3
- },
- "ternary": {
- "aaxis": {
- "gridcolor": "white",
- "linecolor": "white",
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside"
- },
- "baxis": {
- "gridcolor": "white",
- "linecolor": "white",
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside"
- },
- "bgcolor": "rgb(237,237,237)",
- "caxis": {
- "gridcolor": "white",
- "linecolor": "white",
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside"
- }
- },
- "xaxis": {
- "automargin": true,
- "gridcolor": "white",
- "linecolor": "white",
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside",
- "title": {
- "standoff": 15
- },
- "zerolinecolor": "white"
- },
- "yaxis": {
- "automargin": true,
- "gridcolor": "white",
- "linecolor": "white",
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside",
- "title": {
- "standoff": 15
- },
- "zerolinecolor": "white"
- }
- }
- },
- "title": {
- "text": "Optimization Results"
- },
- "width": 500,
- "xaxis": {
- "title": {
- "text": "Objective 1"
- }
- },
- "yaxis": {
- "title": {
- "text": "Objective 2"
- }
- }
- }
- },
- "text/html": [
- ""
- ]
- },
- "metadata": {},
- "output_type": "display_data"
- }
- ],
+ "outputs": [],
"source": [
"campaign.set_objective(penalize_enz_loading)\n",
"optim_progress(campaign)\n"
@@ -3868,855 +284,9 @@
},
{
"cell_type": "code",
- "execution_count": 17,
+ "execution_count": null,
"metadata": {},
- "outputs": [
- {
- "data": {
- "application/vnd.plotly.v1+json": {
- "config": {
- "plotlyServerURL": "https://plot.ly"
- },
- "data": [
- {
- "customdata": [
- [
- 16,
- 17,
- 0.1985
- ],
- [
- 0,
- 129,
- 0.1695
- ],
- [
- 8,
- 59,
- 0.2855
- ],
- [
- 12,
- 143,
- 0.11149999999999999
- ],
- [
- -8,
- 87,
- 0.22749999999999998
- ],
- [
- 20,
- 73,
- 0.0535
- ],
- [
- 4,
- 101,
- 0.0245
- ],
- [
- 28,
- 45,
- 0.1405
- ],
- [
- 24,
- 115,
- 0.25649999999999995
- ],
- [
- -4,
- 31,
- 0.08249999999999999
- ],
- [
- -1.3664591211884574,
- 23.701565198152267,
- 0.027559246753660803
- ],
- [
- 0.7489422280527407,
- 100.90752207071628,
- 0.27612099185375494
- ],
- [
- -10,
- 53.69626037949452,
- 0.06027515490291318
- ],
- [
- -9.884284602635885,
- 12.56932955572526,
- 0.01
- ],
- [
- -2.4201706792597815,
- 35.28138623326379,
- 0.01
- ],
- [
- 5.163747567854349,
- 10,
- 0.01
- ],
- [
- -10,
- 10,
- 0.010000000000000633
- ],
- [
- -10,
- 150,
- 0.01
- ],
- [
- 4.000327329371169,
- 100.99715275317062,
- 0.024501386042708045
- ],
- [
- -8.554406718721287,
- 11.952295649778815,
- 0.012068813124359354
- ],
- [
- -4.320745462543664,
- 14.994429360903585,
- 0.04345828472841849
- ],
- [
- -2.234654091253856,
- 21.80951451897183,
- 0.024727325215798936
- ]
- ],
- "hovertemplate": "Temperature: %{customdata[0]:.3G}
Concentration: %{customdata[1]:.3G}
Enzyme: %{customdata[2]:.3G}
Experiment: %{x:.3G}
Product: %{y:.3G}
",
- "marker": {
- "color": [
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 1,
- 1,
- 1,
- 2,
- 2,
- 2,
- 3,
- 3,
- 3,
- 4,
- 4,
- 4
- ],
- "colorbar": {
- "title": {
- "text": "Iteration"
- }
- },
- "colorscale": [
- [
- 0,
- "#5450E4"
- ],
- [
- 0.5,
- "#00857C"
- ],
- [
- 1,
- "#FFF063"
- ]
- ],
- "showscale": true
- },
- "mode": "markers",
- "name": "Data",
- "type": "scatter",
- "x": [
- 0,
- 1,
- 2,
- 3,
- 4,
- 5,
- 6,
- 7,
- 8,
- 9,
- 10,
- 11,
- 12,
- 13,
- 14,
- 15,
- 16,
- 17,
- 18,
- 19,
- 20,
- 21
- ],
- "y": [
- -14.146634024879013,
- -45.90035371882625,
- -66.78231591606996,
- -85.62743881692565,
- -17.12958709228416,
- -4.755680530030897,
- 28.282619363659542,
- -55.245389103571426,
- -166.8013486257973,
- 87.42539691663603,
- 100.1392090793791,
- -79.68999834425783,
- 87.0658072672548,
- 108.77017862927511,
- 92.68223227677464,
- 84.7943771098963,
- 108.82026172983832,
- -34.00026201394538,
- 28.324125891754207,
- 108.59515740346642,
- 97.27578355577653,
- 98.26686768314924
- ]
- }
- ],
- "layout": {
- "coloraxis": {
- "colorbar": {
- "ticks": "outside",
- "x": 0,
- "y": 1,
- "yanchor": "top"
- }
- },
- "height": 400,
- "legend": {
- "x": 0.95,
- "xanchor": "right",
- "y": 0.05,
- "yanchor": "bottom"
- },
- "template": {
- "data": {
- "bar": [
- {
- "error_x": {
- "color": "rgb(51,51,51)"
- },
- "error_y": {
- "color": "rgb(51,51,51)"
- },
- "marker": {
- "line": {
- "color": "rgb(237,237,237)",
- "width": 0.5
- },
- "pattern": {
- "fillmode": "overlay",
- "size": 10,
- "solidity": 0.2
- }
- },
- "type": "bar"
- }
- ],
- "barpolar": [
- {
- "marker": {
- "line": {
- "color": "rgb(237,237,237)",
- "width": 0.5
- },
- "pattern": {
- "fillmode": "overlay",
- "size": 10,
- "solidity": 0.2
- }
- },
- "type": "barpolar"
- }
- ],
- "carpet": [
- {
- "aaxis": {
- "endlinecolor": "rgb(51,51,51)",
- "gridcolor": "white",
- "linecolor": "white",
- "minorgridcolor": "white",
- "startlinecolor": "rgb(51,51,51)"
- },
- "baxis": {
- "endlinecolor": "rgb(51,51,51)",
- "gridcolor": "white",
- "linecolor": "white",
- "minorgridcolor": "white",
- "startlinecolor": "rgb(51,51,51)"
- },
- "type": "carpet"
- }
- ],
- "choropleth": [
- {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- },
- "type": "choropleth"
- }
- ],
- "contour": [
- {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- },
- "colorscale": [
- [
- 0,
- "rgb(20,44,66)"
- ],
- [
- 1,
- "rgb(90,179,244)"
- ]
- ],
- "type": "contour"
- }
- ],
- "contourcarpet": [
- {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- },
- "type": "contourcarpet"
- }
- ],
- "heatmap": [
- {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- },
- "colorscale": [
- [
- 0,
- "rgb(20,44,66)"
- ],
- [
- 1,
- "rgb(90,179,244)"
- ]
- ],
- "type": "heatmap"
- }
- ],
- "heatmapgl": [
- {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- },
- "colorscale": [
- [
- 0,
- "rgb(20,44,66)"
- ],
- [
- 1,
- "rgb(90,179,244)"
- ]
- ],
- "type": "heatmapgl"
- }
- ],
- "histogram": [
- {
- "marker": {
- "pattern": {
- "fillmode": "overlay",
- "size": 10,
- "solidity": 0.2
- }
- },
- "type": "histogram"
- }
- ],
- "histogram2d": [
- {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- },
- "colorscale": [
- [
- 0,
- "rgb(20,44,66)"
- ],
- [
- 1,
- "rgb(90,179,244)"
- ]
- ],
- "type": "histogram2d"
- }
- ],
- "histogram2dcontour": [
- {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- },
- "colorscale": [
- [
- 0,
- "rgb(20,44,66)"
- ],
- [
- 1,
- "rgb(90,179,244)"
- ]
- ],
- "type": "histogram2dcontour"
- }
- ],
- "mesh3d": [
- {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- },
- "type": "mesh3d"
- }
- ],
- "parcoords": [
- {
- "line": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "type": "parcoords"
- }
- ],
- "pie": [
- {
- "automargin": true,
- "type": "pie"
- }
- ],
- "scatter": [
- {
- "fillpattern": {
- "fillmode": "overlay",
- "size": 10,
- "solidity": 0.2
- },
- "type": "scatter"
- }
- ],
- "scatter3d": [
- {
- "line": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "marker": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "type": "scatter3d"
- }
- ],
- "scattercarpet": [
- {
- "marker": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "type": "scattercarpet"
- }
- ],
- "scattergeo": [
- {
- "marker": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "type": "scattergeo"
- }
- ],
- "scattergl": [
- {
- "marker": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "type": "scattergl"
- }
- ],
- "scattermapbox": [
- {
- "marker": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "type": "scattermapbox"
- }
- ],
- "scatterpolar": [
- {
- "marker": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "type": "scatterpolar"
- }
- ],
- "scatterpolargl": [
- {
- "marker": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "type": "scatterpolargl"
- }
- ],
- "scatterternary": [
- {
- "marker": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "type": "scatterternary"
- }
- ],
- "surface": [
- {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- },
- "colorscale": [
- [
- 0,
- "rgb(20,44,66)"
- ],
- [
- 1,
- "rgb(90,179,244)"
- ]
- ],
- "type": "surface"
- }
- ],
- "table": [
- {
- "cells": {
- "fill": {
- "color": "rgb(237,237,237)"
- },
- "line": {
- "color": "white"
- }
- },
- "header": {
- "fill": {
- "color": "rgb(217,217,217)"
- },
- "line": {
- "color": "white"
- }
- },
- "type": "table"
- }
- ]
- },
- "layout": {
- "annotationdefaults": {
- "arrowhead": 0,
- "arrowwidth": 1
- },
- "autotypenumbers": "strict",
- "coloraxis": {
- "colorbar": {
- "outlinewidth": 0,
- "tickcolor": "rgb(237,237,237)",
- "ticklen": 6,
- "ticks": "inside"
- }
- },
- "colorscale": {
- "sequential": [
- [
- 0,
- "rgb(20,44,66)"
- ],
- [
- 1,
- "rgb(90,179,244)"
- ]
- ],
- "sequentialminus": [
- [
- 0,
- "rgb(20,44,66)"
- ],
- [
- 1,
- "rgb(90,179,244)"
- ]
- ]
- },
- "colorway": [
- "#F8766D",
- "#A3A500",
- "#00BF7D",
- "#00B0F6",
- "#E76BF3"
- ],
- "font": {
- "color": "rgb(51,51,51)"
- },
- "geo": {
- "bgcolor": "white",
- "lakecolor": "white",
- "landcolor": "rgb(237,237,237)",
- "showlakes": true,
- "showland": true,
- "subunitcolor": "white"
- },
- "hoverlabel": {
- "align": "left"
- },
- "hovermode": "closest",
- "paper_bgcolor": "white",
- "plot_bgcolor": "rgb(237,237,237)",
- "polar": {
- "angularaxis": {
- "gridcolor": "white",
- "linecolor": "white",
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside"
- },
- "bgcolor": "rgb(237,237,237)",
- "radialaxis": {
- "gridcolor": "white",
- "linecolor": "white",
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside"
- }
- },
- "scene": {
- "xaxis": {
- "backgroundcolor": "rgb(237,237,237)",
- "gridcolor": "white",
- "gridwidth": 2,
- "linecolor": "white",
- "showbackground": true,
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside",
- "zerolinecolor": "white"
- },
- "yaxis": {
- "backgroundcolor": "rgb(237,237,237)",
- "gridcolor": "white",
- "gridwidth": 2,
- "linecolor": "white",
- "showbackground": true,
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside",
- "zerolinecolor": "white"
- },
- "zaxis": {
- "backgroundcolor": "rgb(237,237,237)",
- "gridcolor": "white",
- "gridwidth": 2,
- "linecolor": "white",
- "showbackground": true,
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside",
- "zerolinecolor": "white"
- }
- },
- "shapedefaults": {
- "fillcolor": "black",
- "line": {
- "width": 0
- },
- "opacity": 0.3
- },
- "ternary": {
- "aaxis": {
- "gridcolor": "white",
- "linecolor": "white",
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside"
- },
- "baxis": {
- "gridcolor": "white",
- "linecolor": "white",
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside"
- },
- "bgcolor": "rgb(237,237,237)",
- "caxis": {
- "gridcolor": "white",
- "linecolor": "white",
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside"
- }
- },
- "xaxis": {
- "automargin": true,
- "gridcolor": "white",
- "linecolor": "white",
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside",
- "title": {
- "standoff": 15
- },
- "zerolinecolor": "white"
- },
- "yaxis": {
- "automargin": true,
- "gridcolor": "white",
- "linecolor": "white",
- "showgrid": true,
- "tickcolor": "rgb(51,51,51)",
- "ticks": "outside",
- "title": {
- "standoff": 15
- },
- "zerolinecolor": "white"
- }
- }
- },
- "title": {
- "text": "Optimization Results"
- },
- "width": 500,
- "xaxis": {
- "title": {
- "text": "Experiment"
- }
- },
- "yaxis": {
- "title": {
- "text": "Product"
- }
- }
- }
- },
- "text/html": [
- ""
- ]
- },
- "metadata": {},
- "output_type": "display_data"
- }
- ],
+ "outputs": [],
"source": [
"campaign.clear_objective()\n",
"optim_progress(campaign)"