machinelearning

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 5fe755f65a9ccd6c139ffbd150701acceea7f8fb
parent b63419c7af4257dbbf9c8b3516173ad5445c08c0
Author: Andrew <andrewlaack1@gmail.com>
Date:   Tue,  9 Jul 2024 14:08:24 -0500

plotly testing

Diffstat:
AplotlyTesting/plotly.ipynb | 1225+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 1225 insertions(+), 0 deletions(-)

diff --git a/plotlyTesting/plotly.ipynb b/plotlyTesting/plotly.ipynb @@ -0,0 +1,1225 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 2, + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "hovertemplate": "x=%{x}<br>y=%{y}<br>z=%{z}<extra></extra>", + "legendgroup": "", + "marker": { + "color": "#636efa", + "symbol": "circle" + }, + "mode": "markers", + "name": "", + "scene": "scene", + "showlegend": false, + "type": "scatter3d", + "x": [ + -0.16401977575481277, + 0.6895659762718602, + 0.35069159022008334, + 1.1987792352557556, + -0.024841104129796992, + 0.04444927992200616, + 1.291740934093829, + -1.8673175151034398, + 0.7090074147881489, + 0.986110239631924, + 0.2067024731116044, + -0.8359232633889181, + 0.6559404252568719, + 0.3993911714751217, + -1.037035478495285, + 0.10407278495216898, + -2.3830942519623215, + 0.023054667404196472, + -1.511383953875498, + 1.4733244508380594, + -0.3324187800968256, + 0.44162893567371436, + 0.24639693683440494, + -1.4277068339535504, + -2.3110409008678983, + -0.4003549521888348, + 0.23816037711546667, + -1.550732927591964, + -0.13785443859595894, + -0.03127710332024553, + 0.5040689293975263, + 0.9005752432072465, + -0.10089703350729744, + -2.5347637105009126, + 0.6094117318797392, + -1.2371665174200883, + 0.6037701467885815, + -0.3462733484858472, + 0.8323267252372282, + 1.056944009128515, + 0.39428705324359725, + -0.8194304812508079, + -0.5510176203350295, + 0.13128163457836992, + -1.0784494618396538, + -0.1568503331816809, + -0.21153938864131, + -1.0914756311086309, + 0.9603018195490206, + 0.4859232393739927, + 0.25422615003311005, + 1.4579050685173176, + 0.08681049014476569, + 0.8809351503610403, + 1.265859441156545, + -1.823616251653469, + 0.10281647589832783, + 0.1013615569639908, + -0.6051865042465902, + -1.49299280693666, + 0.63380413976867, + -0.909939589092498, + 0.3301736733071744, + -0.18698100224020822, + 0.3549112537497109, + 0.2447019605609665, + -0.7141845627622435, + 1.0345420471147324, + -1.3243181702081568, + 0.41010199168090894, + 0.7305521744849216, + 0.15655968738792128, + -1.2128112174794876, + 1.1587366210639147, + 0.3020646888947151, + 0.3972431579909211, + -1.8881224805845054, + 0.22993690405173373, + -1.0830734873218741, + 0.5558188741704474, + 2.0765545352762107, + 0.08924018546931974, + -0.31488127014225037, + 1.885284136132036, + -1.499936057618636, + -0.15109917693946218, + -0.23972895500522104, + 0.39509192859855696, + 0.6977272233069846, + 2.110624520732285, + -0.32413500489160846, + 0.8508447051913816, + -0.0216165318115587, + -1.300876776707373, + 1.3918145430475166, + -0.8434514764382023, + -1.2176564275843647, + -0.5738090877837355, + -0.2532621679346295, + -0.2955106692995241 + ], + "y": [ + -1.0229420731556846, + -0.7422811744121952, + -0.37119552783006365, + -0.8593739477083804, + 0.24439305350491294, + 0.49597258213841694, + 0.23385396863568242, + 1.0670805919381912, + -1.6952520937589566, + 0.7955350871885447, + -1.705746926812518, + 0.30095255669305476, + 0.677141631201537, + -1.079020825983412, + -0.6890723775996387, + -0.6397655938858885, + 0.025840475816797732, + 1.9858895398757022, + -0.473062663556958, + 0.35123107637451917, + -0.0811744034611515, + -0.7842897093642174, + -0.9566176870144216, + 1.7022370828241749, + -0.5081590252411524, + -0.5930318843656999, + 0.1684069331529625, + 0.767284220525134, + -0.7264659454413419, + -1.545889995671685, + -1.075280680815956, + 1.602284117964959, + 1.5358790793065882, + 2.0956309695671997, + -0.5156133832392849, + 0.9626315425371086, + -0.10716865189580113, + -0.6405795291859012, + 0.7108482104200411, + 0.8037046313716413, + 0.0969967012214268, + 0.7285578133574342, + 0.6292035026477543, + 0.560265348521712, + 0.5788103303466514, + 0.40089845084493897, + 0.755224630599142, + -0.4736198990984055, + 0.24622602784370864, + -0.9765250622769214, + -0.23748753095081315, + -0.6330672623603627, + -1.208833715510569, + -0.2856966600141136, + -0.24875557120500755, + -1.428252531208148, + 1.4290788257016986, + -0.44636864546763655, + 0.9007859328749234, + 0.7912994564133021, + -0.8308950113032949, + 0.7382773610160798, + -1.847462311202485, + 0.8377418519013412, + 0.8546464700251185, + -0.8747133824863979, + -1.194414164169666, + 0.13625763081315503, + -0.9651113128336706, + -0.21361547960464528, + -0.8446221137594694, + -0.0012120293171157524, + 2.0337914478302586, + 0.39192660174633986, + 0.29147897562998076, + -2.2730780818459038, + -2.588314597907457, + -0.014852217072267781, + 0.24603786580950587, + -1.32594172155776, + -0.6088204738719479, + -0.5162587569505587, + 0.5911036262550293, + 1.4712426662829596, + -0.09913942657069337, + 0.08576135421660457, + -0.9187589501585876, + 0.13980600543242888, + 2.1262016468711047, + -0.5187330558930942, + 0.4035405265271178, + 0.34112428531591527, + -0.5331233933507687, + 0.4955754191968483, + 2.399071207833167, + 1.302994626579837, + 1.3017857046051686, + -0.03130695964694148, + -0.18736483287537722, + -2.2085209424303334 + ], + "z": [ + 0.19894061312771855, + 0.9382392971169623, + -1.6018227326994166, + -1.3497959343889832, + -2.4191310861756183, + 0.10779839074204088, + 0.26585527317149343, + -0.48363407807137376, + 0.524277385942936, + 1.055225970799711, + 0.0746669143919352, + -0.8717679628638343, + -0.26635576162680613, + -0.09241039926719972, + 0.27040071066681565, + -0.7094841571018738, + -0.09753493472800552, + 0.7821359025760053, + -0.6195685103318734, + -1.7403981975373224, + 0.572794343909639, + 0.4363030888953326, + 0.33192041204527567, + -0.17987606055161312, + -1.594707886423489, + 0.8967074780964136, + -0.8020074422339258, + 0.9841033987711233, + -0.08000672371538972, + 1.7208206553710468, + 0.5250882973505937, + 0.05213449333594674, + -2.6299204862599113, + 1.3842901558063103, + 0.8599539902292657, + -0.3105616747504096, + -1.890548033587263, + -0.7514904004913048, + 0.5655110828521104, + 1.5215865446653025, + 1.8824637467091159, + -0.7214677978813082, + 0.5919468799305053, + 1.4677780210410063, + 1.936866876059674, + -0.13419756239060748, + 0.4762564251849786, + -0.9117558356009721, + 0.6304289683544579, + -0.5343226568859245, + 0.6097961728704758, + 1.05055098115368, + 0.002217804534845484, + 0.2865722717056004, + 1.6282964098157537, + -0.6327466625647425, + -0.3406059627329411, + -0.2413701522948225, + 0.9473476089343793, + 0.40108819381413646, + -0.40347076869899323, + 0.8092785153630427, + 0.7734016115388911, + -1.5381815968076433, + -1.7717288776671678, + 0.8497804480991756, + 0.44168915852569945, + 0.4779850036372972, + 2.4420958370762027, + -0.0788940202312646, + -0.7601514423628075, + -0.688883657524667, + 1.3870010901701104, + 0.5261939547045517, + 1.3621188364350654, + -0.5870336157158732, + 0.11167684486301406, + -0.1005374294573935, + -0.9949601697512458, + 0.33014865183047076, + -2.427097140541436, + 1.5352320979674763, + 0.010167888274320696, + -0.8578697091725008, + 0.02967543250599799, + 0.27582653181017064, + -0.4255265223967875, + -0.7279846584216996, + -0.14957471362851388, + -0.6385387550810687, + -1.0232748630494168, + 0.5282511694992197, + -1.4327276902107626, + 1.1002660572058085, + 3.405757254182158, + 1.129254758780193, + 0.24755268582959436, + 1.9133148741729737, + 0.8821741429410489, + 0.496178215266627 + ] + } + ], + "layout": { + "legend": { + "tracegroupgap": 0 + }, + "margin": { + "t": 60 + }, + "scene": { + "domain": { + "x": [ + 0, + 1 + ], + "y": [ + 0, + 1 + ] + }, + "xaxis": { + "title": { + "text": "x" + } + }, + "yaxis": { + "title": { + "text": "y" + } + }, + "zaxis": { + "title": { + "text": "z" + } + } + }, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "barpolar" + } + ], + "carpet": [ + { + "aaxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "baxis": { + "endlinecolor": "#2a3f5f", + "gridcolor": "white", + "linecolor": "white", + "minorgridcolor": "white", + "startlinecolor": "#2a3f5f" + }, + "type": "carpet" + } + ], + "choropleth": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "choropleth" + } + ], + "contour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "contour" + } + ], + "contourcarpet": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "contourcarpet" + } + ], + "heatmap": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "heatmap" + } + ], + "heatmapgl": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "heatmapgl" + } + ], + "histogram": [ + { + "marker": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "histogram" + } + ], + "histogram2d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "histogram2d" + } + ], + "histogram2dcontour": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "histogram2dcontour" + } + ], + "mesh3d": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "type": "mesh3d" + } + ], + "parcoords": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "parcoords" + } + ], + "pie": [ + { + "automargin": true, + "type": "pie" + } + ], + "scatter": [ + { + "fillpattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + }, + "type": "scatter" + } + ], + "scatter3d": [ + { + "line": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatter3d" + } + ], + "scattercarpet": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattercarpet" + } + ], + "scattergeo": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergeo" + } + ], + "scattergl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattergl" + } + ], + "scattermapbox": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scattermapbox" + } + ], + "scatterpolar": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolar" + } + ], + "scatterpolargl": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterpolargl" + } + ], + "scatterternary": [ + { + "marker": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "type": "scatterternary" + } + ], + "surface": [ + { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + }, + "colorscale": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "type": "surface" + } + ], + "table": [ + { + "cells": { + "fill": { + "color": "#EBF0F8" + }, + "line": { + "color": "white" + } + }, + "header": { + "fill": { + "color": "#C8D4E3" + }, + "line": { + "color": "white" + } + }, + "type": "table" + } + ] + }, + "layout": { + "annotationdefaults": { + "arrowcolor": "#2a3f5f", + "arrowhead": 0, + "arrowwidth": 1 + }, + "autotypenumbers": "strict", + "coloraxis": { + "colorbar": { + "outlinewidth": 0, + "ticks": "" + } + }, + "colorscale": { + "diverging": [ + [ + 0, + "#8e0152" + ], + [ + 0.1, + "#c51b7d" + ], + [ + 0.2, + "#de77ae" + ], + [ + 0.3, + "#f1b6da" + ], + [ + 0.4, + "#fde0ef" + ], + [ + 0.5, + "#f7f7f7" + ], + [ + 0.6, + "#e6f5d0" + ], + [ + 0.7, + "#b8e186" + ], + [ + 0.8, + "#7fbc41" + ], + [ + 0.9, + "#4d9221" + ], + [ + 1, + "#276419" + ] + ], + "sequential": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ], + "sequentialminus": [ + [ + 0, + "#0d0887" + ], + [ + 0.1111111111111111, + "#46039f" + ], + [ + 0.2222222222222222, + "#7201a8" + ], + [ + 0.3333333333333333, + "#9c179e" + ], + [ + 0.4444444444444444, + "#bd3786" + ], + [ + 0.5555555555555556, + "#d8576b" + ], + [ + 0.6666666666666666, + "#ed7953" + ], + [ + 0.7777777777777778, + "#fb9f3a" + ], + [ + 0.8888888888888888, + "#fdca26" + ], + [ + 1, + "#f0f921" + ] + ] + }, + "colorway": [ + "#636efa", + "#EF553B", + "#00cc96", + "#ab63fa", + "#FFA15A", + "#19d3f3", + "#FF6692", + "#B6E880", + "#FF97FF", + "#FECB52" + ], + "font": { + "color": "#2a3f5f" + }, + "geo": { + "bgcolor": "white", + "lakecolor": "white", + "landcolor": "#E5ECF6", + "showlakes": true, + "showland": true, + "subunitcolor": "white" + }, + "hoverlabel": { + "align": "left" + }, + "hovermode": "closest", + "mapbox": { + "style": "light" + }, + "paper_bgcolor": "white", + "plot_bgcolor": "#E5ECF6", + "polar": { + "angularaxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + }, + "bgcolor": "#E5ECF6", + "radialaxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + } + }, + "scene": { + "xaxis": { + "backgroundcolor": "#E5ECF6", + "gridcolor": "white", + "gridwidth": 2, + "linecolor": "white", + "showbackground": true, + "ticks": "", + "zerolinecolor": "white" + }, + "yaxis": { + "backgroundcolor": "#E5ECF6", + "gridcolor": "white", + "gridwidth": 2, + "linecolor": "white", + "showbackground": true, + "ticks": "", + "zerolinecolor": "white" + }, + "zaxis": { + "backgroundcolor": "#E5ECF6", + "gridcolor": "white", + "gridwidth": 2, + "linecolor": "white", + "showbackground": true, + "ticks": "", + "zerolinecolor": "white" + } + }, + "shapedefaults": { + "line": { + "color": "#2a3f5f" + } + }, + "ternary": { + "aaxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + }, + "baxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + }, + "bgcolor": "#E5ECF6", + "caxis": { + "gridcolor": "white", + "linecolor": "white", + "ticks": "" + } + }, + "title": { + "x": 0.05 + }, + "xaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + }, + "yaxis": { + "automargin": true, + "gridcolor": "white", + "linecolor": "white", + "ticks": "", + "title": { + "standoff": 15 + }, + "zerolinecolor": "white", + "zerolinewidth": 2 + } + } + } + } + } + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "import plotly.express as px\n", + "import numpy as np\n", + "\n", + "X = np.random.randn(100)\n", + "y = np.random.randn(100)\n", + "z = np.random.randn(100)\n", + "\n", + "px.scatter_3d(x=X,y=y,z=z)" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": ".venv", + "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.11.2" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +}