可视化-python
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS_HTML"></script>
<!-- MathJax configuration -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
processEscapes: true,
processEnvironments: true
},
// Center justify equations in code and markdown cells. Elsewhere
// we use CSS to left justify single line equations in code cells.
displayAlign: 'center',
"HTML-CSS": {
styles: {'.MathJax_Display': {"margin": 0}},
linebreaks: { automatic: true }
}
});
</script>
<!-- End of mathjax configuration --></head>
<body>
<div tabindex="-1" id="notebook" class="border-box-sizing">
<div class="container" id="notebook-container">
模型构建(能耗可视化)¶
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
%matplotlib inline
</div>
from tqdm import tqdm_notebook as tqdm
</div>
from pathlib import Path
</div>
数据读入¶
data_dir = '/Users/douby/dataset/ytkc'
</div>
data_files = list((Path(data_dir) / 'feature_agg_half').glob('./*.csv'))
data_files
</div>
<div class="prompt output_prompt">Out[5]:</div>
[PosixPath('/Users/douby/dataset/ytkc/feature_agg_half/LZYTFTC25J1054033.csv'),
PosixPath('/Users/douby/dataset/ytkc/feature_agg_half/LZYTATE64G1080906.csv'),
PosixPath('/Users/douby/dataset/ytkc/feature_agg_half/LZYTFTC23J1054032.csv'),
PosixPath('/Users/douby/dataset/ytkc/feature_agg_half/LZYTATE63H1023601.csv'),
PosixPath('/Users/douby/dataset/ytkc/feature_agg_half/LZYTATE66G1080907.csv'),
PosixPath('/Users/douby/dataset/ytkc/feature_agg_half/LZYTFTC21J1054031.csv')]
[print(pd.read_csv(df).shape) for df in data_files]
</div>
<div class="prompt"></div>
(248, 13) (10, 13) (269, 13) (375, 13) (16, 13) (90, 13)
<div class="prompt output_prompt">Out[6]:</div>
[None, None, None, None, None, None]
# data_dfs = [pd.read_csv(data_file) for data_file in [data_files[0], data_files[1], data_files[2], data_files[3], data_files[4], data_files[5]]]
data_dfs = [pd.read_csv(data_file) for data_file in [data_files[0], data_files[1], data_files[2], data_files[4], data_files[5]]]
# data_dfs = [pd.read_csv(data_file) for data_file in [data_files[3]]]
data_dfs[0].head()
</div>
<div class="prompt output_prompt">Out[7]:</div>
| distance | avg_speed | acs | acs_idle | idle_speed | smooth_speed | without_gear | with_gear | over_speed | economical_speed | sharp_turn | acceleration | deceleration | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 0.339039 | -12.078710 | 0.259306 | 0.314533 | 0.165292 | -0.239653 | 0.157602 | -0.107825 | 0.0 | 0.000000 | -0.000054 | 0.000166 | -0.000122 |
| 1 | 0.614563 | -2.027863 | 0.000000 | 0.000000 | 0.471228 | -0.561469 | 0.026788 | -0.104122 | 0.0 | 0.000000 | 0.001136 | -0.000065 | -0.000458 |
| 2 | 0.238495 | -23.937845 | 0.000000 | 0.000000 | -0.342079 | -0.582975 | 0.000416 | 0.000339 | 0.0 | 0.127921 | -0.000127 | -0.000240 | 0.000206 |
| 3 | -0.228120 | 2.818354 | 0.029315 | 0.071177 | 0.103766 | -0.062362 | -0.003305 | 0.000948 | 0.0 | -0.003327 | 0.000078 | 0.000145 | 0.000126 |
| 4 | -0.053401 | 32.830485 | 0.070601 | 0.048295 | 0.122727 | -0.691631 | 0.114690 | 0.115410 | 0.0 | -0.029081 | -0.000064 | 0.000142 | 0.000004 |
# data_df = data_dfs[0].copy()
data_df = pd.concat(data_dfs).reset_index(drop=True)
data_df.head()
</div>
<div class="prompt output_prompt">Out[8]:</div>
| distance | avg_speed | acs | acs_idle | idle_speed | smooth_speed | without_gear | with_gear | over_speed | economical_speed | sharp_turn | acceleration | deceleration | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 0.339039 | -12.078710 | 0.259306 | 0.314533 | 0.165292 | -0.239653 | 0.157602 | -0.107825 | 0.0 | 0.000000 | -0.000054 | 0.000166 | -0.000122 |
| 1 | 0.614563 | -2.027863 | 0.000000 | 0.000000 | 0.471228 | -0.561469 | 0.026788 | -0.104122 | 0.0 | 0.000000 | 0.001136 | -0.000065 | -0.000458 |
| 2 | 0.238495 | -23.937845 | 0.000000 | 0.000000 | -0.342079 | -0.582975 | 0.000416 | 0.000339 | 0.0 | 0.127921 | -0.000127 | -0.000240 | 0.000206 |
| 3 | -0.228120 | 2.818354 | 0.029315 | 0.071177 | 0.103766 | -0.062362 | -0.003305 | 0.000948 | 0.0 | -0.003327 | 0.000078 | 0.000145 | 0.000126 |
| 4 | -0.053401 | 32.830485 | 0.070601 | 0.048295 | 0.122727 | -0.691631 | 0.114690 | 0.115410 | 0.0 | -0.029081 | -0.000064 | 0.000142 | 0.000004 |
data_df.describe()
</div>
<div class="prompt output_prompt">Out[9]:</div>
| distance | avg_speed | acs | acs_idle | idle_speed | smooth_speed | without_gear | with_gear | over_speed | economical_speed | sharp_turn | acceleration | deceleration | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| count | 633.000000 | 633.000000 | 633.000000 | 633.000000 | 633.000000 | 633.000000 | 633.000000 | 633.000000 | 633.000000 | 633.000000 | 633.000000 | 633.000000 | 633.000000 |
| mean | 0.229736 | -6.440642 | 0.042807 | -0.046857 | -0.060265 | -0.179363 | -0.003372 | 0.006495 | 0.000290 | 0.012537 | -0.000126 | -0.000056 | 0.000020 |
| std | 0.489846 | 28.344863 | 0.196066 | 0.128160 | 0.158991 | 0.502956 | 0.063343 | 0.165652 | 0.003622 | 0.210383 | 0.000283 | 0.000377 | 0.000121 |
| min | -0.426985 | -53.604094 | -0.994052 | -0.660708 | -0.529819 | -3.088889 | -0.176723 | -2.742593 | -0.015642 | -0.789326 | -0.004440 | -0.001327 | -0.001001 |
| 25% | -0.036451 | -34.058430 | -0.045746 | -0.121145 | -0.165821 | -0.565963 | -0.042504 | -0.068378 | 0.000000 | -0.123138 | -0.000224 | -0.000312 | -0.000039 |
| 50% | 0.148542 | -3.626165 | 0.000000 | -0.017720 | -0.039279 | -0.238453 | 0.000000 | 0.005794 | 0.000000 | 0.008953 | -0.000072 | -0.000044 | 0.000018 |
| 75% | 0.396871 | 20.102755 | 0.105704 | 0.016907 | 0.042837 | 0.227981 | 0.034733 | 0.098355 | 0.000000 | 0.169764 | 0.000008 | 0.000192 | 0.000086 |
| max | 8.932278 | 44.573739 | 1.556257 | 0.387177 | 0.471228 | 0.834543 | 0.467464 | 0.334345 | 0.047686 | 0.621732 | 0.001136 | 0.001022 | 0.000394 |
特征预处理¶
from plotly.offline import init_notebook_mode, iplot
from plotly import graph_objs as go
import plotly.express as px
init_notebook_mode(connected=True)
</div>
<div class="prompt"></div>
col_min_maxs = []
</div>
y(每升油可行驶距离)的分布¶
iplot(px.histogram(data_df, x='distance', histnorm='probability'))
</div>
<div class="prompt"></div>
<div id="f3726947-8394-41d0-be77-76060a34001a" class="plotly-graph-div" style="height:600px; width:100%;"></div>
<script type="text/javascript">
require(["plotly"], function(Plotly) {
window.PLOTLYENV=window.PLOTLYENV || {};
if (document.getElementById("f3726947-8394-41d0-be77-76060a34001a")) {
Plotly.newPlot(
'f3726947-8394-41d0-be77-76060a34001a',
[{"alignmentgroup": "True", "bingroup": "x", "histnorm": "probability", "hoverlabel": {"namelength": 0}, "hovertemplate": "distance=%{x}<br>count=%{y}", "legendgroup": "", "marker": {"color": "#636efa"}, "name": "", "offsetgroup": "", "orientation": "v", "showlegend": false, "type": "histogram", "x": [0.3390394713774441, 0.6145629995595029, 0.23849530235853697, -0.2281196195489309, -0.05340121379051255, 0.13877600542906054, -0.06866767388985806, 0.3007078265835561, -0.23484267043213705, 0.4054995096882513, -0.20677707747628996, 0.34295152643490856, -0.22700228977840065, 0.3427295214787367, -0.17888330764984586, 0.8618103866432782, 0.308563646111224, 0.12270992049758946, -0.30058971871074514, 0.11745735285385295, 0.0696906456722417, 0.27349803347452273, -0.08479001281307286, 0.4378004942948437, -0.1760119011847162, 0.3871975294913211, -0.07662598019817712, -0.08908440824237808, -0.2464399791154688, 0.5218738884192426, 0.0723205375627276, 0.4684397546656438, -0.07305308037501013, -0.12046255585218303, 0.3253144600415623, 0.11736428226002005, 0.17679123640600136, 0.4657233313159159, -0.2840065973794482, 0.6056734484540329, -0.19803848779128008, 0.5279773952084312, -0.3054678214813551, 0.336179200990828, -0.3397747423516132, 0.33945236325260275, -0.3556643352792885, 0.4698172442363053, -0.14943707110819324, 0.7416561421611969, 0.006022339612571147, -0.2660010051014663, 0.2147598055325408, -0.12079320779514854, 0.13186279081731578, -0.026447544589411117, 0.4042011621602275, -0.10255616570026847, 0.5333638018268023, -0.0689998733922339, 0.5596656818827375, -0.08198891999295399, -0.18893034489520832, 0.4936683771301966, -0.1510587522159973, 0.45994965796247794, -0.2490626487965815, 0.31356349323999977, 0.018208667631459896, 0.4940985792834605, -0.08397223531954634, 1.5267142471452853, 0.22789314329620855, -0.18485040557241306, 0.9685231667672376, -0.15923195916021415, 0.2382030971216387, -0.1555099452283577, 0.6216848010898899, -0.2081494136956078, 0.8638417717400529, -0.007861081603585784, -0.06565323756235397, -0.0026065069752541077, 0.39076804361588, -0.2414265864430417, 0.4908944804496396, -0.3282033732291688, 0.15729512762097464, 0.04801754658684243, 0.3145704257466646, -0.029343242590138208, 0.24123050399524404, -0.11310012678838965, 0.4929683166697405, -0.12557952888455734, 0.4096829057171334, -0.08314109294563732, 0.9926768065938204, 0.1111386777848966, 0.1183153339708305, -0.009347512289401227, -0.08615017978797823, 0.01041178091050421, 0.4901277636383092, -0.057556600871571224, 0.05209497227256765, 0.5081793679255853, -0.0789689014020043, 0.9737644472966899, -0.05594740782125107, 0.6626351598775289, -0.009296798945405804, 0.09604512486227268, 0.10956456529610126, 0.10733834833765266, 0.17472790243761693, 0.4007594290774759, 0.01287903870739604, 0.17601713044909695, -0.0018944604362193247, 1.0373404901124201, 0.12976941483406046, 0.7108649398175271, 0.11672220714030025, 0.7162046798043633, -0.08141169489890909, 0.0524922039847544, 0.3281058324843782, 0.003973392134374976, -0.1763244827716295, 0.6624506869554698, 0.04667652852783944, 0.034593482002730484, 0.2419506912376053, 0.3211534726125709, 0.20373657945979676, 0.1847876222238971, -0.014060390181272808, 0.5527572686660527, -0.18534548360544456, 0.2530565788807586, -0.18317403423861933, 0.6924831720021196, -0.301061223911974, 0.17925532112276898, 0.02944147273157771, 0.44772081727418267, -0.007385770783366441, 0.6145683985322643, 0.007722686794157552, 0.14402311455334527, -0.09130210388841098, 0.3156798154386171, 0.09926123062742387, 1.0552062058253109, -0.16676838891278198, 0.174278160604171, -0.10986952586424936, -0.053086689184349, -0.12615643930487452, 0.4230831707394465, 0.008162380780230237, 0.3217035143228295, -0.0604839030094213, 0.08845344005090737, -0.3482908748706689, 0.03903377872586145, 0.09121677610164358, 0.11270562600271772, -0.12906909592730387, 0.5185480447964571, -0.2244699100559944, 0.6046347557926235, -0.03645090693492903, 0.6638691257556073, -0.16194207907395353, 0.26431113774256243, 0.025329376137406268, 0.776862363836518, -0.05290404078377964, 0.4361967875981039, -0.13620666759062214, 0.5388155639113847, -0.08289680208650063, -0.11799312327530664, 0.6559931474539364, -0.0077320941087468675, -0.07065320846989298, -0.2817320795859768, 0.4425558518624759, -0.0704122702115677, -0.12705696197017302, 0.28545698370776784, 0.6553451573471365, -0.238483071539118, 0.3144893559845781, 0.03516238456564569, 0.4232874012881447, -0.2605183650826084, 0.15123941694070894, 0.07742475759732502, 0.1569276750924915, -0.1648709971134803, 0.2469493595411303, -0.10111562774355144, 0.0783494119788557, 0.35406660135545165, -0.1663971724126886, 0.5500820959698862, -0.29061962607466474, 0.5744525499260453, -0.11542075192270995, 8.932277660735615, 0.2997544941282886, -0.11014438064789056, 0.8369095177538313, -0.36936558841570793, 0.2945535688155594, 0.17403820502780887, 0.06989894698181986, 1.000627844411596, -0.03367876822863358, 0.4099431202533648, -0.0131695214026597, 0.4852061138948187, 0.20565758248059665, 0.4392646275525476, -0.12592435696130655, 0.004945246176914386, 0.3222355042909089, -0.11748821577564605, 0.34782651681057297, 0.013159558202994416, 0.5144346584464907, -0.047570356260229874, 0.19758065783764667, -0.0007225695885472173, 0.1290105399430954, -0.046427462642453454, 0.47931118062012, -0.07178552920564141, 0.6048633532709242, -0.2325792446794993, 0.4458628941441687, -0.29152388829615583, 0.9247973149612798, -0.1790498076089081, 0.0561576817936118, 0.05872806570756928, 0.18455131771862487, 0.22411863490405515, 0.1290430560854161, -0.04494200501645007, -0.10202807596871157, 0.7594780251168112, -0.13137140628629185, 0.10477065106493977, 0.07556287403934814, -0.12960896134268818, 0.21780051975613346, 0.03016972399457285, 0.2528103746307109, 0.1962696897230265, 0.12811734143125242, 0.21372821705587253, 0.23122347086177555, 0.06828430978548994, 0.1679860701483613, 0.3252290858977638, 0.4259864785028331, -0.12869128662237528, 0.1885495384229692, -0.0183113923542062, 0.23872743539391594, -0.06832185559615556, 0.14268419377700448, 0.3275735325768876, 0.06717720544761141, 0.4188675877710609, 0.10512553753475706, 0.4866088550907857, 0.20293387329894294, -0.426985247253961, 0.3892142485701291, 0.4165418564614984, 0.301035282887238, 0.07065725654856725, 0.35651160711355523, -0.2335039932079465, 0.4520308375249367, -0.2999776097714466, 0.16458470321137253, 0.3968708010698028, -0.08459297571046864, 0.016936679550018985, 0.5616762723000004, -0.2676794457437049, 0.062113082491762624, 0.5865120833624748, 0.8898739119278203, 0.13346326892160376, 0.35798833112265016, -0.08323607721347825, 0.4356555320365088, 0.022660563399570455, 0.2263192748071452, -0.08096164783998283, 0.4877606196257105, 0.3079878342186908, 0.4334710152127213, 0.14075433167775442, 0.3182224003086518, -0.16559327762135811, 0.2735804522164813, -0.04445851316392868, 0.4121013574992396, 0.3101078861505806, -0.08686757900684539, 0.15416921359237845, -0.13829625895247422, 0.6661548041799006, 0.12925528860404878, 0.3292137123374854, -0.06710025307742062, 0.13701159070515456, 0.04476109780754589, 0.23586624555882785, 0.24880703411356864, 0.6372467526033879, 0.028915135697010094, 0.09641982509408664, 1.0852211096554902, 0.12112350234281323, -0.08272279812493444, 0.2095763964962125, 0.9970038356020609, 0.33159586369905303, 0.6696984419026695, 0.20943939544619794, 0.10761317763379964, 0.11038729285703908, 0.3199161711585681, 0.08977030873669034, 0.5493662795228125, 0.2842607615722197, 0.3045336088229198, 0.11528344905603415, 0.9249203752715978, -0.061690279680746474, 0.2834740384979708, 0.44112995247554704, 0.3220008713461804, 1.3576078863865437, 0.11122601893890538, 0.6229120056352782, 0.5693935403690724, 0.6071067588676085, 0.31229003999281435, 0.8489301471883435, -0.11467762190203745, 0.5538466535228368, 1.5500418623972092, 0.0625278222640493, 0.15851904830532448, -0.2010243233158251, 0.9329878816607324, 0.6867200784538172, 1.07264531543258, 0.08509439576850664, 0.5651779569768076, 0.31493081239547793, 0.5574055500715211, 0.054919001237185405, 0.33836069458553863, 0.27657280537368045, 0.2021711420562593, 1.9107579844707128, 0.8843553057124789, 0.02323791738207981, 0.5634453778133428, -0.05426314937161558, 0.3563890549540547, 0.9917316388721572, -0.10531820700531368, 0.5888010331444724, 0.0038236680894112585, 0.1802872097135404, 0.006702402307323219, 0.3051157930446373, -0.0909758345046785, 0.20114276170283166, -0.053763786515365286, 0.30269591175810584, 0.10962358165289254, -0.06630531799446082, 1.6064547405676532, 0.2803398582210115, -0.17542079885673068, 1.0814025906672864, -0.06349690800905439, -0.00999229874130758, 0.4884947005990454, -0.034153138781098824, 0.32666953164266777, -0.2304248521265449, 0.3600653687131168, 0.005030522419055661, -0.15514672947834318, 0.2265413807460728, 0.5734497542122521, -0.037962143356708784, 0.46751415941903, 0.1421788260695811, 0.07675918085566802, 0.24462318158360485, 0.4383215402780217, 0.1682783029620767, 0.2381329223660165, 0.14218751052568468, 0.3690875894936403, 0.056424233865752786, 0.09788097453312616, 0.811324454498386, 0.1427013787202669, 0.9941944784561104, -0.046413372173996666, 0.6008653959319679, 0.06338141260255359, 0.5190009022178901, -0.07283915271890895, 0.5504985310411838, -0.03246642924649845, 0.4533177415943008, 0.4605600459771471, -0.07351832348907128, 0.8814357328695137, -0.13503101288204455, 0.7593729462674172, 0.2083407981291041, 0.6090632198443313, 0.3802666695299903, 0.6331304719715161, -0.08594195881682397, 1.0329887617530469, 0.04089278547546793, 0.3845422300440082, 0.1873179563022496, 1.1388614185698631, 0.18282240274383432, 0.3351711404936861, 0.13770003503817896, 0.3554672839481554, 0.22662125661318, 0.7973111665155681, 0.1385690724826243, 0.4985540287300743, -0.050061052314983256, 0.5150005273337104, -0.007334113708353018, 1.0608642051475088, 0.21272037918069173, -0.292663968049949, 0.9458100382148332, 0.5230727882212858, 0.04787405627788677, 0.5819653756979914, -0.014333673681351078, 0.5114825216121001, 0.18192150522290815, 0.716601876390395, 0.005856280879718234, 0.1384781474848804, 0.2694196517898477, 0.0621240401357106, 0.23113136580948426, 0.17345304881773838, 0.4160871902053578, -0.26140465483118225, 0.6358872796796513, 0.1427190390084423, 0.3484556836130972, -0.009922987308016551, 0.21593038412804644, 0.11428122835171185, 0.4196811026391536, 0.005925684865398351, 0.34471535322371794, 0.059100645779598386, 1.238773487675104, 0.04845426710016487, 0.3919092028945483, 0.19138878134289672, -0.009845802220472044, 0.7283472346476305, 0.5636491926578018, 0.4088622510722415, -0.21219701362327134, -0.2509637895974248, 0.465592804394894, -0.05468011530375105, 0.6565165887597917, 0.2537824329620233, 0.7975951646741413, 0.05309177707401047, 1.083530459388725, -0.08185325932609244, 0.5605973932244142, 0.2887135247588977, 0.3618112970612457, 0.10863643256172728, 0.621531375307703, -0.03904913256185827, 0.2763606896392505, 0.10695922497027176, 0.7398383294560635, 0.08552585715456118, 0.6170298478877327, 0.0726104229706428, 0.5455795167713726, -0.07378562898370755, 0.18321288782370534, -0.002494444520381167, 0.1728252998669031, -0.04105198247677955, 0.3931852123264299, 0.07690459956772489, 0.0010628318097001266, -0.0017099692931280552, 0.13446246647857318, 0.1596365341507544, 0.06167477698757184, -0.04214349906801596, 1.4906733249096584, 0.03815814931694672, 2.459315100182687, -0.07738514087500692, 0.2218134233885929, 0.11042957302694556, -0.08510770117285749, 0.05106004321885571, 0.049358455935747836, 0.012167365950928044, 0.1872637349695676, -0.13478553716044495, -0.16287538092220902, 0.3823263365549865, -0.28200152729876804, -0.031759180632393365, 0.4278114409622831, 0.09033391626661412, 0.4134478354582571, 0.06777937004404233, 0.3460767231172197, -0.12666106227201235, 0.057966494770021575, -0.1270200787736121, 0.05909366631202472, 0.3614835086591801, 0.15846121560455506, 0.3407252137385928, 0.09091796079360416, 0.4062378908497071, -0.08693251296614013, -0.02007017468150085, 0.27919885591781, -0.10324529205565593, 0.06101697050169519, 0.15665904867073044, 0.3367672416173275, -0.06519328533477264, -0.06831086122690022, 0.18821569091910773, 0.007218129686374919, 0.4722998148577546, 0.14038105900254694, -0.14373612677108294, -0.04400950457553465, -0.02394888945254392, 0.33647489365243155, -0.0655454732512919, -0.08996565993118966, 0.1853366738397704, 0.0616630598055985, 0.2635447657278505, -0.04151547869058958, 1.1093261732908501, -0.027172680185502673, 0.36450576096496, -0.06057349924394673, 0.3796110644205117, 0.3574273503440493, 0.3629849648319572, -0.1300446477013899, -0.09700390935770886, 0.3545455896499434, 0.14854190711327053, 0.22726989839142075, -0.18489034115333525, -0.00818771140194241, 0.09697284008441033, -0.07461209299092575, 0.5100581331523308, 0.08200970220122916, 0.08501001636345751, 0.3426517048511202, -0.022126689284294062, 0.23823915864270265, -0.21897564490911947, 0.3711226223788755, -0.07571611274855039, 0.18239356659775607, 0.33447233392737497, 0.1209480586736862, 0.17718021805144635, 0.2303596468181024, 0.4627637276969248, -0.07406498167189046, 0.34735834082103945, -0.14987515342948132, 0.2942851423771835, 0.4234193079361728, 1.0159883750253074, 0.12863742796031194, 0.032625715970097564, 0.4334953513743873, 0.09867713922198183, 0.4237128730200461, 0.2281712798426514, 0.1990178545130119, 0.0941495549386926, -0.35015803770567544, 0.11775229230944227], "xaxis": "x", "yaxis": "y"}],
{"barmode": "relative", "height": 600, "legend": {"tracegroupgap": 0}, "margin": {"t": 60}, "template": {"data": {"bar": [{"error_x": {"color": "#2a3f5f"}, "error_y": {"color": "#2a3f5f"}, "marker": {"line": {"color": "#E5ECF6", "width": 0.5}}, "type": "bar"}], "barpolar": [{"marker": {"line": {"color": "#E5ECF6", "width": 0.5}}, "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.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.0, "#f0f921"]], "type": "contour"}], "contourcarpet": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "type": "contourcarpet"}], "heatmap": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "heatmap"}], "heatmapgl": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "heatmapgl"}], "histogram": [{"marker": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "type": "histogram"}], "histogram2d": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "histogram2d"}], "histogram2dcontour": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "histogram2dcontour"}], "mesh3d": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "type": "mesh3d"}], "parcoords": [{"line": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "type": "parcoords"}], "scatter": [{"marker": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "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.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.0, "#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}, "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.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.0, "#f0f921"]], "sequentialminus": [[0.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.0, "#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": "", "zerolinecolor": "white", "zerolinewidth": 2}, "yaxis": {"automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "zerolinecolor": "white", "zerolinewidth": 2}}}, "xaxis": {"anchor": "y", "domain": [0.0, 0.98], "title": {"text": "distance"}}, "yaxis": {"anchor": "x", "domain": [0.0, 1.0], "title": {"text": "count"}}},
{"responsive": true}
).then(function(){
var gd = document.getElementById('f3726947-8394-41d0-be77-76060a34001a');
var x = new MutationObserver(function (mutations, observer) {{
var display = window.getComputedStyle(gd).display;
if (!display || display === 'none') {{
console.log([gd, 'removed!']);
Plotly.purge(gd);
observer.disconnect();
}}
}});
// Listen for the removal of the full notebook cells
var notebookContainer = gd.closest('#notebook-container');
if (notebookContainer) {{
x.observe(notebookContainer, {childList: true});
}}
// Listen for the clearing of the current output cell
var outputEl = gd.closest('.output');
if (outputEl) {{
x.observe(outputEl, {childList: true});
}}
})
};
});
</script>
</div>
col_min_maxs.append([-0.4, 1.2])
</div>
平均时速与85km/h之差的分布¶
iplot(px.histogram(data_df, x='avg_speed', histnorm='probability'))
</div>
<div class="prompt"></div>
<div id="c424a1ff-1505-4ea6-b9c1-3ac3e7daf594" class="plotly-graph-div" style="height:600px; width:100%;"></div>
<script type="text/javascript">
require(["plotly"], function(Plotly) {
window.PLOTLYENV=window.PLOTLYENV || {};
if (document.getElementById("c424a1ff-1505-4ea6-b9c1-3ac3e7daf594")) {
Plotly.newPlot(
'c424a1ff-1505-4ea6-b9c1-3ac3e7daf594',
[{"alignmentgroup": "True", "bingroup": "x", "histnorm": "probability", "hoverlabel": {"namelength": 0}, "hovertemplate": "avg_speed=%{x}<br>count=%{y}", "legendgroup": "", "marker": {"color": "#636efa"}, "name": "", "offsetgroup": "", "orientation": "v", "showlegend": false, "type": "histogram", "x": [-12.078710269538965, -2.027862748112277, -23.937844666732406, 2.8183544578345234, 32.83048545879106, -29.274609007718357, 27.737001429947764, -33.270845470296464, 28.00412045584187, -44.208057199564045, 30.040706175463285, -47.64265734021984, 35.56968426322662, -44.41370951717597, 35.76223259081009, -42.53320429533387, 11.810275022285976, -15.466133671911392, 35.46470742244601, -25.8127944151196, 12.706707782905136, -22.00776822932996, 25.49774636842564, -47.042356493042384, 33.42184351238502, -44.27769855360531, 4.200019897425939, 1.5055088600933215, 32.48811623755661, -42.70177497620908, 20.17962348514064, -19.7411563023014, 3.1714985066864614, -13.293174001988824, -4.520505520651796, -40.75421370302435, 5.382748724418839, -28.69096958390553, 30.233925801425684, -37.68189818288013, 38.263581185736534, -34.52549161938693, 27.980792268836503, -23.47313476799971, 29.770290065834132, -42.18911355022583, 25.6595571346278, -43.00587117949606, 29.443853145901013, -46.23356575785662, 4.031320677807152, 35.299366383297524, -45.83323835280997, 39.62807624892829, -26.257014903593664, 41.71771397186952, -38.06023373745697, 33.76287472591076, -43.219777444253694, 32.09171793863066, -53.26570953124583, 2.4683305126092705, 20.815781933755147, -35.15980889535503, 31.012244345313626, -44.97299684884783, 34.590385291147, -22.171989830442858, 5.559607870156236, -49.67769141617271, 30.64718145475699, -4.959681101844204, -28.828286521972647, 26.532254033420767, -42.24085253953757, 31.01049169220839, -42.444804493781135, 31.623442849239694, -51.621932734195525, 30.745978554196874, -39.48588396848647, -3.188138038860515, -34.42923299052443, 26.75576754208389, -49.441000634232104, 32.64534894458228, -46.488891202054994, 29.68342443574452, -29.061594763569694, 19.902063507794896, -36.43271326178698, 28.42044716018475, -28.56933531069777, 25.04042104355221, -45.49166450672775, 30.73185879306339, -37.62463021572761, 33.774520254987266, -37.24266617239232, 11.57442960066431, -32.81453990368926, 0.458197457215519, 28.99235377142091, -3.346806743933918, -44.711785063560384, 29.89195389378507, 2.3137232734142192, -47.45486252160815, 26.038730958979748, -46.360805740324174, 22.16932398392109, -45.93869155533804, 4.417617316861389, -26.96270536086617, 13.686063954795161, -33.35933526593894, 23.3901731604956, -33.29356500267342, 24.979693222035607, -35.53172633918695, 24.943632046696976, -38.57642295314145, 18.50406702805549, -33.480373467012065, 19.75861635678844, -42.247803598795095, 2.705482455831067, -12.388208769154055, -39.53446022069296, 2.5393014226395754, 29.80059920171287, -40.550933089845536, 16.430885584721135, -22.607931319496974, 15.601272838214884, -35.810682664390946, 9.600571866816177, -39.85341298414835, 41.25102520061196, -40.730744097536146, 35.066278697177594, -48.68528898197293, 33.56196881544239, -30.844155699387635, 36.571340101178976, -32.37676781708656, 21.495001561803754, -49.697121357883475, 31.311937717855805, -47.41239379621329, 9.455606912078311, -39.80546924001384, 25.77399637688807, -51.52032262021564, 27.802073723452693, -37.58872362715918, 28.723916489306713, -37.57705191401389, -1.175372324455445, 10.272843849330258, 35.08004888535157, -44.098072391619965, 4.8022628559575375, -32.153324112618144, 2.018083423491227, 30.241140980305662, -11.293864207529946, 3.548777530543049, 28.141468818237875, -30.56057079039929, 34.59404581111336, -44.72855426732788, 29.190517650936233, -41.97230422446668, -10.271188081186523, -47.039780111756656, 33.383022180160225, -38.320883736405705, 24.817154120497683, -32.62532871316791, 30.2819860744908, -48.07525256072955, 16.095873591399638, -44.91865475686304, 2.8530670554000253, 11.150696025487614, -37.55421034334589, 6.475365769971943, 7.1080042076842815, 26.563768984756447, -34.07307182939677, -0.4862404454080007, -1.7829956182846445, 9.618593861508174, -46.045430281791646, 36.670512002750826, -43.90090590918104, 19.691550198764745, -35.710500108461424, 36.670507115022176, -23.436862098012572, 29.427985913736716, -32.63078328480714, 43.41549631248356, -49.32284717118338, 31.111203596938797, -34.97248289754889, -23.060967310710343, 1.6117597255623934, -39.75788384442215, 32.511106573189515, -37.80665314365794, -9.410748161763353, -24.964268399705304, -31.2054060113206, 28.52032730013709, -44.40737965085475, 44.57373865950163, -22.162287283015203, -28.058524293125107, 16.120498880847194, -50.82095682959111, 31.458565111023105, -42.55800944591936, 30.020619230419502, -42.61892788219085, 18.894949807605506, -39.907954691236135, 1.683706295785619, 0.1901128728911772, -35.0208590878695, 32.05874988213717, -41.93889059806949, 26.790721195989804, -46.31764016018937, 28.747383542362925, -35.93129637412168, 32.16885378211413, -44.13859777194746, 31.623546057374156, -47.28486009385122, 27.836333177635, -28.388866986889127, 37.488266293799356, -37.19915847690875, 34.00250625087213, -37.112733738400394, 12.763688211298408, -7.524802403925179, 10.735959000061186, -5.568720606734517, -11.852745862655425, 6.956434964190336, -10.565555844583614, -10.658932807949867, -27.06345447616539, 7.213715017557262, -2.8421407117267705, -5.494904335197077, -2.459321546086869, -4.397291673264547, -4.214988202022931, -8.862187765930381, -34.91804317964826, 0.4692989740382814, -34.95311090835338, 11.922465179304552, -46.376716161456386, 19.890710796447337, 3.9354542020046983, -34.535102561249786, 42.67589375823254, -30.67265035944769, 21.14829934125334, -33.89311757860171, 25.273195992576603, -22.54200012512675, 0.7594501195928061, 0.9896923737635888, -42.61107797686115, 2.442826663223592, -36.35499733901036, 16.698514853719598, 22.133371976995004, -43.91504163296656, -15.303393016311652, -37.751041478525046, -0.8803518425977259, -28.63384040610095, 35.92638160781929, -13.461131387741188, 25.836329677421542, -22.84923997248961, 8.336312149333066, -7.712621583918363, 2.186849841213529, -43.01227627121962, 43.596033149696495, -29.11902886124365, 9.726501218633302, -47.62252845277091, 21.165349228767727, -31.93707146855887, 21.639180564646782, -43.42792212894671, 21.869954475825576, -31.689615982093677, 42.001800877003134, -40.849090829304636, -14.129309098523619, -48.63838296075551, -2.115474390608149, -34.05842997578202, 32.1085461100028, -52.800646026320784, 32.679909178058296, 1.6279124080088252, -44.33700267855795, 21.31003876932321, -40.163355220968754, 36.18185630625426, -40.05449978117774, -1.4684081059252492, -40.66143426481678, 22.222682358535945, -25.17573996834883, 18.198264042918105, -33.066142000536054, -5.21175972990423, -32.85858801910164, 3.093640216824099, 19.81775634542936, -28.31647462961943, -3.721966352507757, -43.001087634018795, 28.350891068941824, -41.280637770495936, 19.194840354110013, -38.015142332880046, -1.0695089082899043, -20.560941138227893, 19.37085957653042, -46.90299206919896, 24.767658948148927, -29.74040426816992, 17.865427681017245, -51.20784080950305, 14.463101377225854, -39.2021399111751, 7.236086354951155, -5.353639999090356, -34.064269770318305, -12.132880374817018, -30.7733083253679, 23.88052743094172, -53.074886508146065, 6.888205803026821, -34.302946788917524, -5.0172464774340915, -40.46311613449515, 27.467400942909364, -53.359752573927146, 1.5958423021451722, 4.757663638965411, 22.650033152642497, -7.0216808721053265, -29.801638108501738, 18.80701223347043, -28.681002148536468, 19.09892905410252, -36.82194385575516, 17.81069509740096, -45.41693035297089, 21.416622915898188, -27.240335674339434, 1.5172298132291149, -45.44240857767127, -20.10395024979738, -44.13728818847875, 30.413152494043537, -30.772571682929286, 19.723451261325106, -52.37570446736106, 3.3448248294517673, -4.722049715616748, -39.082216105471936, 4.6911301650417, -34.00459698924787, 22.8964864568606, -49.660282528119964, 26.99103081643112, -29.581737865921397, 30.0809673224002, -47.46911534427676, 23.707299759151102, -5.54895906364402, -33.46903550307049, 20.74074179526413, -3.1765478466650023, -43.05308894803336, 16.24936479975753, -6.977403749284933, -46.62104115031779, 19.029854296700584, -35.57432659273308, 42.74479322059037, -17.204096616803476, 22.829394328510613, -16.192273027832712, 14.786367744011002, -47.749505828129216, 31.425406117303595, -45.93652814733439, 24.13319412035275, -43.615618344300614, 11.433032546332724, -29.97611058634972, 23.79591320843398, -28.693327269299612, 7.0579313407127335, -3.626165154799004, -31.73262808725889, 28.43333062857889, -41.08160737750498, 25.818002278842364, -48.586693119295596, 33.697980378150994, -49.31884712646017, 26.2980431060345, -50.928271765924165, 28.31010363409255, -32.90100596973202, 29.261596858689213, 4.089802618588841, -48.68736746076671, 31.78296080891933, -30.650035636239767, 31.934483314992146, -37.70831341745985, 6.1683220582619915, -44.947231911132015, 10.235883464274067, -33.44090909759674, 33.609859329190904, -27.772635786968447, 14.759145302992678, -47.27354062523364, 10.837919369350047, -42.95706993739122, 18.992426077248325, -31.95945884366123, 21.212164627432948, -41.651988144056, 19.607463452168677, -35.71457578555272, 16.2289222627546, -49.113119006419275, 29.626690513794824, -36.31548395211611, 23.976763725528013, -42.86856237377883, 16.03716985061103, -11.8346919141415, 3.256887656025924, -53.60409394556089, 21.427751962064928, -42.71506829950457, 29.715982390624994, -29.880932627438675, 1.6113243163816549, -46.9512480431629, 21.48996369964746, -10.531016066565131, -42.53420754392467, 27.31824560973338, -34.89074818823266, 18.09716387238315, -37.36647689441744, 41.412472523975026, -38.074189649084985, 16.08363327497549, -25.61621366666265, 19.936461114441702, -26.8714246523762, 13.118724769515019, -32.544770848631174, 20.824498010472624, -42.02270909127128, 22.026054178054565, -43.05700018068301, 25.23812286419875, 6.935724471830895, -18.57204131593545, 23.13129373689545, -43.11680354332445, 12.96149345657575, -28.329868015884138, 40.771523141861465, -6.583249430908757, -45.188742103587586, 17.204283179802232, -29.7980288634621, -2.7519009821046865, -37.559850964766504, 22.168285622652558, -42.33651089933149, 30.29817972400623, -37.42508926088465, 13.921642559346664, -47.39435637052185, 19.67702737234604, -41.76941626335397, 31.001047107553557, -49.0747329540765, 11.575235849704654, -35.915316300295466, 16.433550737421037, -47.20650201579213, 23.10194306195508, -32.67186634099496, 26.191140826698266, -47.16628166639988, 12.138148035282054, -41.536566515787285, 31.36502800541073, -38.54649859558869, 6.322209088839075, 7.216979719810483, -5.9502990743417845, -4.568589692643299, -12.485234293609894, -10.948304207263632, -0.1567153440688145, -26.734364571639038, -16.087902517328004, -31.627639277488317, -4.078783678360267, 13.44262734988601, -6.377827954779947, -0.19952179200591047, -1.4693735312547034, 9.40963999096192, 2.5619097185438453, 31.096352575275642, 3.87454844572202, 21.631801850684948, 3.879486667935687, 16.382109343867572, 2.9158418982918946, 11.319767008442659, -14.45785945533124, -13.962348805854047, -23.77210570592095, -25.757048129954853, -1.03831022492966, -10.434682468633149, 15.436840337441538, -13.416772584837297, -23.814636081924505, 19.991148284148, -14.047839087416365, 11.721906419234733, -29.34296422299592, 23.522302818621068, 8.653991693300412, -13.328098691984867, 4.956693761331309, -10.34962728388389, 20.102754943793684, -15.819744123124664, 16.76572351742471, 3.3663197059079693, -2.6932527216887654, 20.57922685702274, -20.70028852526521, 25.56764218769559, 0.612799819323449, -10.066648786840817, 19.74147704582586, -17.060519716859492, 27.87831518015625, -0.031109071475363237, -28.505070902686658, 13.237121129243587, -14.232797063390107, 24.913701410838033, -3.909997839684287, 23.78833947139018, -26.219081927844538, 7.994053561704759, -15.669160712329349, 6.87182439666455, -26.207044475222588, 7.8078330042721555, -2.530072806993566, -22.29397807038128, 22.81738095112604, -18.531263508113874, 29.847341998761284, 1.8698275452651671, 31.207295388728266, -12.875459261139222, -2.2116912020599035, -7.493527927753752, 24.193626190756483, -24.27415738535872, 6.097667011707963, -12.194590656812053, 6.321492248685543, -19.189477103636502, 25.046438443951896, -10.892844042564747, -20.25087463984152, 27.573515323263287, -21.191814012897602, 16.087009622386738, -30.98194189063089, 11.099802510768406, -13.248620658689935, -1.8878781775737248, -19.329400918824085, 10.845608775205498, -13.341414114376953, -18.59335015623333, 15.327323355535874, -25.54091938108297, 26.430952511628423, -20.533765393471995, -12.40931654645184, -24.116400939012145, 18.53177564209401, 26.188275558475016, 17.474436232981645], "xaxis": "x", "yaxis": "y"}],
{"barmode": "relative", "height": 600, "legend": {"tracegroupgap": 0}, "margin": {"t": 60}, "template": {"data": {"bar": [{"error_x": {"color": "#2a3f5f"}, "error_y": {"color": "#2a3f5f"}, "marker": {"line": {"color": "#E5ECF6", "width": 0.5}}, "type": "bar"}], "barpolar": [{"marker": {"line": {"color": "#E5ECF6", "width": 0.5}}, "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.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.0, "#f0f921"]], "type": "contour"}], "contourcarpet": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "type": "contourcarpet"}], "heatmap": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "heatmap"}], "heatmapgl": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "heatmapgl"}], "histogram": [{"marker": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "type": "histogram"}], "histogram2d": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "histogram2d"}], "histogram2dcontour": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "histogram2dcontour"}], "mesh3d": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "type": "mesh3d"}], "parcoords": [{"line": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "type": "parcoords"}], "scatter": [{"marker": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "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.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.0, "#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}, "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.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.0, "#f0f921"]], "sequentialminus": [[0.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.0, "#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": "", "zerolinecolor": "white", "zerolinewidth": 2}, "yaxis": {"automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "zerolinecolor": "white", "zerolinewidth": 2}}}, "xaxis": {"anchor": "y", "domain": [0.0, 0.98], "title": {"text": "avg_speed"}}, "yaxis": {"anchor": "x", "domain": [0.0, 1.0], "title": {"text": "count"}}},
{"responsive": true}
).then(function(){
var gd = document.getElementById('c424a1ff-1505-4ea6-b9c1-3ac3e7daf594');
var x = new MutationObserver(function (mutations, observer) {{
var display = window.getComputedStyle(gd).display;
if (!display || display === 'none') {{
console.log([gd, 'removed!']);
Plotly.purge(gd);
observer.disconnect();
}}
}});
// Listen for the removal of the full notebook cells
var notebookContainer = gd.closest('#notebook-container');
if (notebookContainer) {{
x.observe(notebookContainer, {childList: true});
}}
// Listen for the clearing of the current output cell
var outputEl = gd.closest('.output');
if (outputEl) {{
x.observe(outputEl, {childList: true});
}}
})
};
});
</script>
</div>
col_min_maxs.append([-70, 60])
</div>
空调开启¶
iplot(px.histogram(data_df, x='acs', histnorm='probability'))
</div>
<div class="prompt"></div>
<div id="f9c3c5c3-96d2-4a38-a841-3f6d46c89549" class="plotly-graph-div" style="height:600px; width:100%;"></div>
<script type="text/javascript">
require(["plotly"], function(Plotly) {
window.PLOTLYENV=window.PLOTLYENV || {};
if (document.getElementById("f9c3c5c3-96d2-4a38-a841-3f6d46c89549")) {
Plotly.newPlot(
'f9c3c5c3-96d2-4a38-a841-3f6d46c89549',
[{"alignmentgroup": "True", "bingroup": "x", "histnorm": "probability", "hoverlabel": {"namelength": 0}, "hovertemplate": "acs=%{x}<br>count=%{y}", "legendgroup": "", "marker": {"color": "#636efa"}, "name": "", "offsetgroup": "", "orientation": "v", "showlegend": false, "type": "histogram", "x": [0.2593058540741965, 0.0, 0.0, 0.02931544907120848, 0.07060114745784203, 0.0, 0.0, 0.0, -0.08424488900933885, -0.04213650389511159, 0.06556878564877272, -0.045907469273412105, 0.07725097704026945, 0.1835041574203955, 0.05698454123508018, 0.02021320997172965, -0.006478287803384109, 0.08524558539144511, -0.013061404337015692, 0.0, -0.07637413890506822, -0.15821533389236164, -0.008525894787818733, -0.16209980679940014, -0.08800184746447226, 0.1206101486491374, 0.129056419754356, 0.02445714244813002, -0.06384256397538046, 0.2546663127489095, 0.15929664670109964, -0.042312251650877264, 0.1489597449182941, -0.2530478530478531, -0.08651939613244619, 0.3717816683831102, -0.16583740676713765, 0.03603744195485925, 0.3960064600206273, -0.10465447979259088, 0.03808421516754848, 0.06559749288273681, -0.03058340837231976, -0.00995481044142843, -0.03756785127896856, -0.12432211261569608, -0.04553094683476622, -0.0032011568708024962, 0.2552046625101654, -0.006163939383451167, 0.014030911050388006, -0.011397521570122249, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.02469599207449158, 0.025804148223864842, 0.2431999710585059, -0.08880513671510837, 0.016942260775277832, 0.12752950317568665, -0.01893715698548809, 0.14880381215006386, -0.1108415792276971, 0.027750998784088987, 0.06579955673230026, 0.1170308902729814, -0.04358635699096225, 0.0457679028559409, -0.15230737874020056, 0.3619604713634955, -0.044380894337529175, -0.25083281833768784, 0.06279413179944376, -0.03708400514502075, -0.06376894906410635, -0.193607174451909, -0.04345785004694491, 0.006672120874530008, 0.12542650202888433, 0.036878680563155575, -0.05347298010913582, 0.14026705524652866, -0.07726111178689865, 0.10061876305128133, 0.29296875, 0.09177431746752834, -0.039358453536584126, 0.029431295810972532, 0.001634310355705049, -0.0016934702339331806, 0.1619875813690515, 0.2834367409897206, 0.2018244515961486, 0.059621007577360004, -0.034211338547515346, -0.04163995330390114, 0.11850521483509847, 0.047687280793239584, 0.3738343790110887, -0.03476259638148005, 0.07786211258697029, 0.037973743438712286, -0.06871617978501432, 0.1460145306149387, 0.09584095385147162, 0.02044758115564016, 0.19514223454709734, 0.08028678599170624, -0.1250413762123715, 0.12793659536390484, 0.2903994286390781, 0.044481494546455225, -0.15128495167787906, -0.03928254720969127, -0.1942761881543082, 0.271889400921659, 0.4679710904481758, 0.4215925307179509, 0.34976279864078946, -0.18329483186613274, 0.0, 0.05057873161321441, 0.04788354568229336, -0.06720154151509583, -0.06425893450339347, -0.017226123651795988, 0.08394787114960077, 0.045882486484471685, -0.04533242258652098, 0.29435644550707313, -0.038524322732782834, -0.013333447974188672, 0.04787482407583632, 0.012882342718109173, 0.2644386761842959, -0.04622575279988316, -0.05983157779384845, 0.18735637259861693, -0.0016024594837138473, -0.04326588802815634, -0.0587831313896251, -0.03737144566748524, 0.015425440314592863, 0.0025074312351834327, -0.041275797373358285, 0.006426222110369585, -0.0948186389180178, -0.004560266696401499, -0.027212873293044282, -0.14697870498553028, 0.09336290260545488, -0.07353844715662494, -0.034644051536716014, 0.1832862088130035, 0.126638035666765, 0.11118304242397957, 0.18262995749485691, 0.16475020484526992, 0.04005927833199352, 0.14132587491803886, -0.06914813452360291, 0.01738373932299897, 0.002391952826916455, 0.010146125490488432, -0.1580937757167019, 0.05288178640581381, 0.05639676638933139, -0.2154766416450027, 0.1021015123246044, -0.08633632150930115, 0.14023805707209286, 0.22323258316567635, 0.07569642854894297, 0.10314457333897252, 0.003898425666633565, -0.007385373776941706, -0.01783781395657069, 0.2243836475466166, -0.0753057463561736, 0.14533112691826378, -0.0583133788943403, 0.12068273092369475, 0.14310708546908796, 0.011486815730480715, -0.10529510619190996, 0.024261949020100204, 0.2078264453927883, 0.06366321395655937, 0.0161049404993161, -0.07570866047673347, -0.012794066839803804, 0.030417799375670795, -0.049226527847198, 0.01481765650849981, -0.0591140426453487, -0.08579108328747254, 0.0, 0.22039473684210525, -0.1003269790406435, 0.0, 0.0, 0.0, 0.0, -0.1925472483061928, 0.07455652613030772, -0.001966833555479885, -0.03959805597967825, -0.07928279478821547, 0.12307609853825985, 0.0, 0.08229821491578634, 0.5151942076788034, 0.09833074765926553, -0.10191369779664083, -0.14997435370385526, 0.1225704289514924, -0.0467178265020396, 0.4793096587444724, -0.2783562464358536, 0.05177637438264104, 0.018653196005975314, 0.09853439194964683, 0.09240898952632826, -0.06517833553500663, -0.045745683949650506, 0.008726499505252727, 0.028461923742778325, 0.035161150767899635, -0.10715751681268924, -0.05366877819908411, 0.011217701675540426, -0.12388986619634912, 0.0, -0.1065590806284003, -0.0017360641865551696, -0.04944435668108688, -0.07781665516827291, 0.08361040658291999, 0.0957031567537115, -0.04234507751296479, -0.02390473045664193, 0.1042001792796886, 0.07867801452051365, -0.07916470641798065, 0.03297919167667068, 0.0846751270171669, -0.03417458945548835, -0.2569986981457373, -0.2763407407407407, 0.024378813334512358, -0.037484981978374084, -0.3342202715676861, -0.7803927300223958, 0.03250792081432718, -0.2274639332530405, -0.7017045454545454, 0.34, 0.036404720060256086, 0.11594508741142236, -0.0818014705882353, 0.0, 0.0901709886983702, 0.0, 0.0, 0.0, 0.0, 0.1931297709923664, 0.03258770657024762, -0.12809670548064672, 0.0, 0.0, 0.0, 0.01709363752274448, -0.08165181680731197, -0.1573540463583083, -0.04854368932038835, 0.0, 0.30131131612888024, 0.3117304780445598, -0.23808633869544915, -0.1548974943052392, -0.041194661088246654, 0.09606568239264124, 0.17022912599097104, 0.09165130408712596, 0.20325791855203615, -0.13025826553168673, 0.015947368845387916, 0.050710866262423486, 0.7009977179116108, 0.1568751369536988, 0.009637590146665598, 0.06584890042066227, -0.08064618308520746, 0.2319070310220752, 1.0349999180099372, 0.5588235294117647, 0.3112196213980806, -0.058659071787525274, 0.07962087446606625, 0.06833361303103813, -0.157851061208183, -0.024696090242032648, -0.11173715091476166, -0.07478148268047911, 0.0, 0.052251493456865215, -0.02086386681800978, 0.16589811700497725, -0.025196108250339518, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.229262440641601, -0.16033633053728394, -0.054573889108993516, -0.02768698159940081, -0.3605509099852435, -0.12007746933505488, 0.11190797398572493, 0.1759391694310609, -0.2808168156496955, -0.1263421511028774, -0.2673372552706186, 0.10728897714033817, 0.0037440517307545385, 0.4014605108975861, 0.28051754243685784, -0.1702271693468547, 0.22105263157894736, 0.10685973474057817, -0.03303559001481898, -0.048748546355176864, 0.0017438858216577565, -0.08172605426610004, 0.06332730998481136, -0.048441069662081386, 0.05913407143290539, 0.0194960541850494, 0.009222026583606158, 0.03712934449790056, 0.001165577140232743, 0.03766853675180104, -0.04404111308441572, -0.16611798140097636, -0.13105608242594546, 0.2526824528277833, 0.17865516433892936, -0.33932584269662924, -0.2373922462838053, -0.2395067653001157, -0.16346243137683342, 0.7978840057648638, 0.11910925449434573, -0.004499041583478802, 0.2923488469701939, 0.0, 0.962463556851312, 0.006121910488758542, -0.054769077554291064, 0.3123471672411822, 0.3083795993584861, -0.0926898810968212, 0.0, 0.19297492981703507, -0.054987376214957584, 0.1979091928251121, -0.19709999487243346, -0.05067786968593835, -0.07965671817860093, -0.11080323499678338, -0.11687905296421873, 0.12336154027837733, 0.004647084283824321, -0.40341578310515497, -0.1421821860605278, 0.0, -0.048116840974562564, 0.103817644554629, 0.0730199401894438, -0.021102053748883853, -0.15801836429639116, -0.06463715011628965, 0.0, -0.052300057954216106, 0.033215343814673386, -0.303139373241419, -0.030627240591835136, 0.3209716880796946, 0.0715744005939224, -0.2590519832174306, 0.006681813645391278, 0.0, 0.042422401431935715, 0.17653099597133032, 0.1294213916165136, -0.01981230610455903, 0.037542660651073145, -0.028269878269878267, 0.08592966696960086, 0.14075818720589006, -0.1121331368543264, -0.14718162839248433, 0.009751578102103977, 0.0, 0.038974458329297024, 0.04307681449378753, 0.3386928629920498, -0.06036067840489534, -0.031244536375300225, -0.210896309314587, 0.33545592636414784, -0.15494518356677467, 0.11026847750564528, 0.6441378517649704, -0.06701513179303614, -0.0019157194037772718, 0.0951836647803998, 0.5109823214484497, -0.13843005100260974, 0.19797703325340146, 0.26965617972805417, 0.14997871857442824, 0.2507252382925818, 0.19926544074611696, 0.5112573107681984, 1.0132523467697403, 0.4185948173045647, 0.3301577707425836, 0.02074552194312673, -0.09247799615448782, 0.4204577774049896, -0.0013698473216859908, 0.3445374759758953, 0.2573419464611436, -0.21698521415225624, -0.04132602230208926, 0.11686055188849535, 0.3831833053614112, 0.030942147214530587, 0.06548381822526618, -0.09399215735778592, 0.004583873948168393, 0.314445637822706, 0.2841449913557821, 0.2979349680352256, 0.001980022026714268, 0.048245527134394006, 0.03321250425999933, 0.03564868661061005, -0.2177677611444756, -0.0072443612360989515, -0.03897705878172508, -0.1341584180212806, -0.05568401011527585, -0.033340771485101395, -0.1602533225836087, -0.02558213632191569, -0.1560647195421256, -0.005991100730501048, 0.15105536318932916, 0.07502494654312186, -0.32691563037912713, 0.19149334063127169, 0.07339508848783527, -0.1627059886141749, 0.008831286916642311, -0.07517145850522111, 0.058087194815342365, -0.04278927812334354, -0.042326746232804864, 0.030469322400862725, 0.0, 0.0, 0.0, 0.0, -0.07973738611132375, -0.056517639967845035, 0.07747707353546668, 0.06923698384530277, -0.12959492249746488, 0.0, 0.041147237196765496, 0.030494679954899406, 0.12007668443697796, 0.2878793162909832, 0.19085311484568512, 0.19190348921693767, 0.2974209211957424, 1.5562565720294428, 0.6841495481441309, 0.27933163186310994, -0.302008866896084, 0.08749475580390376, 0.08440341860980938, 0.2506710150090199, 0.1303741770791348, -0.13427060050934084, 0.08164469133856891, 0.0, 0.10656861970657723, -0.014308390859758546, 0.0446304705290807, 0.0, -0.12397820163487737, 0.029743118915093462, 0.024176658066474455, -0.10914896087309878, 0.017728766638821003, -0.01546172964836434, -0.04883812233285917, 0.0, 0.02417975431503655, 0.10360759177972867, 0.10570395902780708, -0.05307458886678962, 0.04613769770347595, 0.0, 0.2175022606249372, 0.0, 0.047990615933478635, 0.0, 0.0, 0.30913536977453937, 0.0, -0.9940520446096656, 0.0, 0.0, 0.31884568100938204, -0.044206235280227164, -0.007808265306273877, -0.33525456218954675, 0.00786496758327737, -0.05882488055861815, -0.014729378365742063, -0.188323430847846, 0.6768107121119903, -0.2570367365360013, 0.0, 0.04781830352926797, 0.21608059606560354, -0.051934545849501856, 0.0, -0.0016668859937711, 0.0, -0.10591699538863276, 0.11696617140316425, 0.0016084705613451378, -0.038185009184664616, 0.14402641038743613, 0.32973906665403585, 0.0932918702798756, -0.12088007856450678, 0.0, 0.21241050119331745, 0.17761634352980338, 0.0, 0.536342292746114, 0.3138030297900814, 0.0, 0.4662435083669936, 0.6081395348837211, -0.0038437762479296414, 0.1601742836394805, 0.16545676545676544, 0.2736413046104833, 0.0, 0.2410172234636358, 0.1100710047461606, 0.5583782787383793, -0.2463570081582849, 0.0, -0.0035793712808799842, 0.19015946459555488, -0.08805322230560064, -0.09234319778582073, 0.0, 0.0, 0.35064361507491804, 0.017392236976506603, 0.1487357627897568, 0.599400029820602, 0.660891612300063, -0.009711691788879815, 0.0, 0.24692707506346234, 0.0018401739520972347, -0.02837343924957225, -0.06361903308779226, 0.0, -0.0965786901270772, -0.037818099639006286, 0.0, 0.05365589278675602, 0.0, 0.007111400293015019, 0.0, 0.0, -0.04282982383043277, -0.11882101767982599, 0.037423613513201885, 0.344541888390899, 0.25147443232195243, -0.12985312899106005, 0.1528648616632457, 0.4896384774645644, -0.1714551922104922, -0.018432735353640983, 0.1760758480888403, 0.14025891878215402, -0.14429528201117742, 0.08056854566902596, 0.0, -0.057660233500119125, 0.07388888888888889, 0.08405317978841527, -0.08360807841605122, 0.11025913945845413, -0.19830824024607416, -0.026874273191165882, -0.01986903318695158, 0.11531666422308635, 0.07647058823529412], "xaxis": "x", "yaxis": "y"}],
{"barmode": "relative", "height": 600, "legend": {"tracegroupgap": 0}, "margin": {"t": 60}, "template": {"data": {"bar": [{"error_x": {"color": "#2a3f5f"}, "error_y": {"color": "#2a3f5f"}, "marker": {"line": {"color": "#E5ECF6", "width": 0.5}}, "type": "bar"}], "barpolar": [{"marker": {"line": {"color": "#E5ECF6", "width": 0.5}}, "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.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.0, "#f0f921"]], "type": "contour"}], "contourcarpet": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "type": "contourcarpet"}], "heatmap": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "heatmap"}], "heatmapgl": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "heatmapgl"}], "histogram": [{"marker": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "type": "histogram"}], "histogram2d": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "histogram2d"}], "histogram2dcontour": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "histogram2dcontour"}], "mesh3d": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "type": "mesh3d"}], "parcoords": [{"line": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "type": "parcoords"}], "scatter": [{"marker": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "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.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.0, "#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}, "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.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.0, "#f0f921"]], "sequentialminus": [[0.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.0, "#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": "", "zerolinecolor": "white", "zerolinewidth": 2}, "yaxis": {"automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "zerolinecolor": "white", "zerolinewidth": 2}}}, "xaxis": {"anchor": "y", "domain": [0.0, 0.98], "title": {"text": "acs"}}, "yaxis": {"anchor": "x", "domain": [0.0, 1.0], "title": {"text": "count"}}},
{"responsive": true}
).then(function(){
var gd = document.getElementById('f9c3c5c3-96d2-4a38-a841-3f6d46c89549');
var x = new MutationObserver(function (mutations, observer) {{
var display = window.getComputedStyle(gd).display;
if (!display || display === 'none') {{
console.log([gd, 'removed!']);
Plotly.purge(gd);
observer.disconnect();
}}
}});
// Listen for the removal of the full notebook cells
var notebookContainer = gd.closest('#notebook-container');
if (notebookContainer) {{
x.observe(notebookContainer, {childList: true});
}}
// Listen for the clearing of the current output cell
var outputEl = gd.closest('.output');
if (outputEl) {{
x.observe(outputEl, {childList: true});
}}
})
};
});
</script>
</div>
col_min_maxs.append([-0.2, 0.3])
</div>
怠速(开启空调)¶
iplot(px.histogram(data_df, x='acs_idle', histnorm='probability'))
</div>
<div class="prompt"></div>
<div id="0faa835b-7924-45d3-99a1-ccbff2f8cc19" class="plotly-graph-div" style="height:600px; width:100%;"></div>
<script type="text/javascript">
require(["plotly"], function(Plotly) {
window.PLOTLYENV=window.PLOTLYENV || {};
if (document.getElementById("0faa835b-7924-45d3-99a1-ccbff2f8cc19")) {
Plotly.newPlot(
'0faa835b-7924-45d3-99a1-ccbff2f8cc19',
[{"alignmentgroup": "True", "bingroup": "x", "histnorm": "probability", "hoverlabel": {"namelength": 0}, "hovertemplate": "acs_idle=%{x}<br>count=%{y}", "legendgroup": "", "marker": {"color": "#636efa"}, "name": "", "offsetgroup": "", "orientation": "v", "showlegend": false, "type": "histogram", "x": [0.3145333146803342, 0.0, 0.0, 0.07117735589708449, 0.048295454545454544, 0.0, 0.0, 0.0, -0.061076397832906935, -0.2295954577714691, 0.1700705532862978, -0.11064785118665812, -0.0023680015297025962, -0.0760470242468773, 0.16904761904761906, -0.23735122076586995, -0.2544127188133798, -0.049347630720876286, 0.12461695607763025, 0.0, -0.1934553135706664, -0.2140165230980332, -0.11229368918371027, -0.11244635193133047, 0.04176710532120985, -0.09136858475894244, 0.19861162904104876, -0.00965565226934939, -0.014963824813144178, -0.0867953969182758, -0.11316112158183825, -0.2135796790466415, 0.14248704663212436, 0.01690651690651691, -0.2321779308198125, 0.013388259526261586, -0.19545743190217868, -0.21808634567282545, 0.2418502202643172, -0.06088740065329053, -0.1166225749559083, -0.061369315826460276, 0.043700787401574806, -0.08339272694503838, 0.05132382892057027, -0.05123496411555161, 0.03300455235204856, -0.030303030303030307, 0.02123881810788832, -0.3144497130022461, 0.025409044293105143, 0.04584221748400853, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.1050237341772152, 0.16214995483288167, -0.23643783005280844, 0.06002087259029967, 0.06299810246679317, 0.016484065165160017, 0.08619227972923671, -0.13202084944243114, 0.08237640315680961, -0.13600647658750836, 0.003138665699982104, -0.17826015457983885, 0.09210027910685807, -0.3013360557200045, -0.037037037037037035, 0.12833827615238333, -0.24544666088464875, -0.15954453382951655, -0.08415147265077139, 0.04671461439518832, -0.19451972297500755, -0.113280531492787, -0.06137532133676093, 0.039019635148308036, -0.16322701688555347, 0.02018844341685889, -0.2480701754385965, 0.14317673378076062, -0.27258541727187113, 0.1796064808132131, 0.04140625, -0.1252764834544301, -0.06535646207184592, -0.025144964752373072, -0.10910460404996893, 0.08833216796084349, -0.09191104484283244, 0.2337933918862401, -0.25175821249765784, -0.045646370512304746, -0.43036111822533935, -0.3303994265658214, -0.09543913341118672, -0.06449610579507857, 0.10790529450874403, 0.09875520128821487, -0.1081593927893738, -0.1335180633218688, -0.1030548116705558, -0.1910561370123692, 0.07495741056218057, -0.3525503643377625, 0.06887878721561687, -0.1943351691581432, -0.0009963123310813317, -0.0022572201445959267, -0.2437664277586181, -0.13263606937713995, -0.2406366216189399, -0.09237813780251652, 0.1270410195141378, -0.09575012800819252, 0.21129755106781428, -0.2460469380861229, -0.18788569301275498, -0.08157340503867308, 0.0, -0.22115384615384612, 0.111507889923228, -0.024121070598426442, -0.0605759682224429, -0.08379213340652257, 0.1400034036678116, -0.061202344103400814, -0.2840163934426229, -0.013115586303959842, -0.23494521118429254, -0.17671754775840792, -0.2961779695592944, -0.14279197080291972, 0.11226476314081764, -0.048162230671736375, 0.06340057636887607, -0.14667198086887204, 0.14611845317832736, -0.2943085371942087, 0.06152877697841728, -0.06958762886597937, -0.09166132063153233, -0.2472242783123612, -0.04274079345567991, -0.1371640443977749, 0.0008994111478583533, -0.059757626410363564, 0.047394366061946816, -0.16905444126074498, -0.17625815400266534, -0.36465695177077145, 0.06532528245399356, -0.059226627508565825, 0.17238255370006866, 0.08771753049559866, -0.08367671179834191, -0.12981386384345125, -0.012009457429759672, -0.19943383018527872, -0.11946606925150023, -0.2575493393035311, -0.13007284079084286, -0.0022385458277265897, -0.28720170141851586, -0.16001898559106795, -0.052176550421903584, -0.2637114951164538, 0.2188097799071763, -0.20854013071050526, -0.0020964360587002093, -0.18561736770691994, 0.2862046517133219, -0.10831420055182968, -0.19901049379706706, -0.0778259526096367, -0.2115539632781012, -0.07025558940761442, -0.02911888189991726, -0.2857142857142857, 0.060251412250501124, 0.030188937568455643, -0.08860090487176495, 0.0011464793787622216, 0.01607792802499508, 0.09458975277678253, -0.06859942275680395, 0.08272582990209121, 0.09861431286678136, -0.31521042515067604, -0.07511530858774433, 0.03531785766819026, 0.04845411103132465, -0.0435951332443528, -0.07750596742983856, 0.07138835994693643, 0.0, 0.04135338345864661, -0.03555243108916718, 0.0, 0.0, 0.0, 0.0, -0.002793296089385475, 0.06456291903042805, -0.1252847380410023, 0.15458698609417446, -0.14931338961880242, 0.05378234044317972, 0.0, -0.0073253980255341125, 0.057963958215065614, -0.18052807165244614, 0.1864059714522043, -0.19520277806154565, 0.01413171033929807, 0.171176776393238, -0.2719443499543238, 0.04204496192089885, -0.147034248239009, 0.1274864376130199, -0.1410488245931284, -0.09777790952836957, -0.15587846763540292, 0.03691316291821195, -0.08565022421524664, -0.023348368267444942, 0.011442786069651741, -0.055729710902124696, -0.021095671546069283, -0.07247828991315965, -0.10885848925760884, 0.0, -0.0022517491066913406, -0.08522515816896167, -0.0007792373499246608, -0.10943095901313173, -0.017720413492526406, -0.01904638686991437, 0.027586840036411785, -0.1133828996282528, 0.036816496187236765, -0.11118931488789904, 0.0034791252485089465, 0.0, 0.0, 0.0, -0.27814432989690724, 0.0, 0.0, 0.0, 0.02864015699017756, 0.021595162683558884, 0.0, -0.02488702546533111, 0.1391347099311701, 0.18, 0.0, 0.1464069129439989, -0.011642156862745098, 0.0, -0.06975414522584332, 0.0, 0.0, 0.0, 0.0, 0.03587786259541985, 0.08468301712170291, -0.07529568571071163, 0.0, 0.0, 0.0, 0.03636045183483192, -0.08857084382421955, -0.12936292688326784, -0.006978155339805826, 0.0, -0.023073789176113163, -0.2453688081332468, -0.059447969601413415, -0.018982536066818528, 0.0, -0.0654914343062408, -0.012941444376411815, -0.09647036236261904, 0.17466063348416289, -0.11655308202508395, 0.06873977086743044, -0.12140586503458195, 0.387177433034886, 0.3631444585571776, -0.18721132809334734, -0.17704122877930478, 0.07317073170731707, 0.0014832103327678534, 0.08652551882140458, -0.09340240764070593, -0.17484217211137618, -0.16716749664597402, 0.026424834902377747, -0.032833219982158234, -0.011552377123754315, -0.06852245881377411, 0.022818254603682947, -0.0077695046940757535, 0.0, -0.03603013429413692, -0.07480196746121832, -0.08491627607590002, 0.10683567224988684, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.07261687581632004, 0.021074970329692442, -0.08563921846654292, -0.15108774132464012, -0.11411706837186425, -0.03227888960619755, 0.02071175080317822, -0.016854843992877094, -0.07611737271667314, -0.12611088036823798, 0.003914927935639328, -0.029471960704052395, -0.11317661562667895, -0.20021373330208575, -0.05707749870341557, -0.16353383458646614, 0.0, 0.051243208954062175, -0.029792753184161483, -0.051752921535893164, -0.012446967990846077, -0.04151683556717882, -0.026546107736707632, -0.031571722717913524, 0.057954468393419924, -0.2828489957676561, -0.06182540620340854, -0.0593758168632645, -0.13160088680841606, -0.07088753685619231, -0.1262421884329198, -0.11413919723124973, -0.08162393162393163, -0.06974094056888537, 0.0668332846681565, -0.07303370786516854, -0.26849631794059553, 0.0812562358096371, -0.16666666666666666, 0.3498590043921478, 0.0015508566080789654, -0.12935865003470526, 0.2667987810678312, -0.14713009107134478, 0.0423450815922512, -0.18526239385991272, -0.04673937800132828, -0.1862738259246988, -0.03926264962733292, -0.2476340694006309, 0.2418162095149543, -0.13276283802599592, -0.2145951885718771, -0.0721875, -0.4390301207908173, -0.2910466088789407, 0.02404152412410051, -0.06517859878074933, 0.009718267553244016, -0.16758508914100487, 0.04801142086379895, -0.6607084859142554, -0.11423220973782773, 0.0, -0.03146206045650833, 0.025207400968050058, -0.16394723485924956, 0.014085318431892159, -0.0388565914728668, 0.0737994350282486, 0.0, 0.007284120544769637, 0.21590089113862607, -0.4705104023670547, -0.17430623890551353, 0.30003657697189834, -0.2147684605757197, 0.06331546672240387, 0.016824851258485717, 0.0, -0.012106454489333972, -0.1402809812818028, 0.1132404181184669, -0.19989026839170146, -0.023267143776320196, -0.02035002035002035, -0.06584166402348553, -0.1961439588688946, 0.04502271788517142, -0.06367432150313153, 0.007098240199059778, 0.0, -0.17059739640384805, -0.15197195359855314, 0.053641629675738885, -0.08780136210523218, 0.002791996277338297, 0.062200956937799035, -0.13782402486266598, 0.14781319495922907, -0.15871529587169245, -0.24603852781818886, -0.2174548117031033, 0.1121511345039586, -0.20982839313572546, -0.21863406567479327, -0.2385286310200986, 0.15575125738340662, -0.2904041359308997, -0.004903240451733723, -0.15500131861507746, -0.14763869784502526, 0.1459394254673897, -0.1407566313092295, 0.06135530738371461, -0.1256703297751839, -0.03483681986675999, -0.20652591170825332, -0.2060422529643888, -0.21795869838730308, 0.08985381301801339, -0.13431252388196366, -0.005665373984030549, -0.21180096873623955, -0.07287037300613303, 0.06910615643642057, -0.09947906332502177, -0.11692628962528305, -0.08899221887080286, -0.09013184515032248, -0.24039187083979005, -0.3980199738895839, 0.014683405055012075, -0.20618983655884812, 0.0022939137208096844, -0.15273728148737187, 0.04175326202324888, -0.4502369668246445, -0.2849228581822042, -0.21922840031901344, -0.3273957850798285, -0.1649148242116709, 0.029863187595146362, -0.22940187055511335, 0.11155971026185174, -0.17441413753361507, -0.06643732031590269, -0.10680808486475044, 0.009244476122594436, -0.04799168033913992, -0.04174192665571976, 0.003522528209379379, -0.1438121901035518, 0.0211127163735598, -0.13040319651289506, 0.08094812164579608, -0.03515710832784003, 0.0, -0.082018226272505, 0.0, 0.0, 0.0, 0.0, 0.062361228083607674, -0.1616503414911978, 0.05014168545766296, -0.07987647163017182, -0.0058489062726350865, 0.0, 0.029354784366576826, 0.21278884410518267, -0.4025276548617972, -0.4663555992141454, -0.0716950579428057, 0.06626854683507585, 0.345670643513513, -0.29291805710048197, 0.11045560356122144, -0.09296420419640494, -0.08540415965436689, -0.29007378002774875, -0.02753906342172449, -0.13782619711173044, 0.06455610257000825, -0.11298794907561488, -0.05337334418967071, 0.0, 0.003178387539227161, -0.13382000073830708, 0.009577150888854807, 0.0, -0.017562133087237246, -0.11786786786786785, 0.08543754742753074, -0.21098339719029371, -0.01146450079980163, -0.13771229703790572, 0.04000853485064011, 0.0, -0.003229150469082051, -0.05586592178770949, 0.044980800877674164, -0.11759399549145935, 0.036988110964332896, 0.0, -0.05910780669144981, 0.0, -0.001195219123505976, 0.0, 0.0, -0.04450798222991613, 0.0, -0.2481000703305536, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.12962962962962965, 0.06342056777498176, -0.3020909301461281, 0.1737382760160786, 0.0, -0.2630872623035515, 0.029175185134705375, -0.1410499175528501, 0.0, -0.017909993316974113, 0.0, -0.06378132118451026, 0.03248730964467005, 0.04864383508433676, -0.039447982835985364, -0.0936495449065352, -0.08352016539831378, 0.01134610590323662, -0.1921711899791232, 0.07225777740103417, 0.07159904534606205, 0.1323922759105557, 0.0, 0.3498338953903877, 0.0013407428502012347, -0.03159335775740932, 0.07112316618084479, -0.09263565891472868, -0.08592571296245419, -0.0013595076249092244, -0.0976134976134976, -0.01175746222852432, 0.0, 0.01757105943152455, 0.0498466283834734, -0.14023840601519472, 0.04596472474612507, 0.0, -0.14409448818897638, 0.04665854195929384, -0.21918052496106769, 0.07929073268651722, 0.0, 0.07477079672906456, -0.1740955300779233, 0.08275995914198163, -0.06895786903629678, -0.2705160658493111, -0.10324675324675324, 0.0686257173379157, 0.0, -0.029959460464405813, 0.08662450529005347, -0.10030172441508316, 0.1069000881659149, 0.0, 0.10606060606060606, -0.05449398443029016, 0.0, 0.02802851136512942, 0.0, 0.0, 0.0, 0.0, 0.07490144546649145, -0.17687299113700822, 0.05849043007033323, -0.0010874122025606864, -0.10005613390125406, -0.0960654880056625, -0.1023623043315434, 0.02686415034241121, -0.2608880496666953, 0.14239106340764934, -0.12286171484663773, 0.06694357763346546, -0.12114523527953155, 0.0, 0.0, -0.01667857993805099, 0.0, -0.0190795677049158, -0.015618493905461744, -0.00687190615912759, -0.006572769953051643, -0.01276595744680851, 0.006069802731411229, -0.01118294804775232, 0.0], "xaxis": "x", "yaxis": "y"}],
{"barmode": "relative", "height": 600, "legend": {"tracegroupgap": 0}, "margin": {"t": 60}, "template": {"data": {"bar": [{"error_x": {"color": "#2a3f5f"}, "error_y": {"color": "#2a3f5f"}, "marker": {"line": {"color": "#E5ECF6", "width": 0.5}}, "type": "bar"}], "barpolar": [{"marker": {"line": {"color": "#E5ECF6", "width": 0.5}}, "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.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.0, "#f0f921"]], "type": "contour"}], "contourcarpet": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "type": "contourcarpet"}], "heatmap": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "heatmap"}], "heatmapgl": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "heatmapgl"}], "histogram": [{"marker": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "type": "histogram"}], "histogram2d": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "histogram2d"}], "histogram2dcontour": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "histogram2dcontour"}], "mesh3d": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "type": "mesh3d"}], "parcoords": [{"line": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "type": "parcoords"}], "scatter": [{"marker": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "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.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.0, "#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}, "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.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.0, "#f0f921"]], "sequentialminus": [[0.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.0, "#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": "", "zerolinecolor": "white", "zerolinewidth": 2}, "yaxis": {"automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "zerolinecolor": "white", "zerolinewidth": 2}}}, "xaxis": {"anchor": "y", "domain": [0.0, 0.98], "title": {"text": "acs_idle"}}, "yaxis": {"anchor": "x", "domain": [0.0, 1.0], "title": {"text": "count"}}},
{"responsive": true}
).then(function(){
var gd = document.getElementById('0faa835b-7924-45d3-99a1-ccbff2f8cc19');
var x = new MutationObserver(function (mutations, observer) {{
var display = window.getComputedStyle(gd).display;
if (!display || display === 'none') {{
console.log([gd, 'removed!']);
Plotly.purge(gd);
observer.disconnect();
}}
}});
// Listen for the removal of the full notebook cells
var notebookContainer = gd.closest('#notebook-container');
if (notebookContainer) {{
x.observe(notebookContainer, {childList: true});
}}
// Listen for the clearing of the current output cell
var outputEl = gd.closest('.output');
if (outputEl) {{
x.observe(outputEl, {childList: true});
}}
})
};
});
</script>
</div>
col_min_maxs.append([-0.3, 0.3])
</div>
怠速(未开启空调)¶
iplot(px.histogram(data_df, x='idle_speed', histnorm='probability'))
</div>
<div class="prompt"></div>
<div id="d947b901-fdf3-4e4b-95ef-a2ab33b35f03" class="plotly-graph-div" style="height:600px; width:100%;"></div>
<script type="text/javascript">
require(["plotly"], function(Plotly) {
window.PLOTLYENV=window.PLOTLYENV || {};
if (document.getElementById("d947b901-fdf3-4e4b-95ef-a2ab33b35f03")) {
Plotly.newPlot(
'd947b901-fdf3-4e4b-95ef-a2ab33b35f03',
[{"alignmentgroup": "True", "bingroup": "x", "histnorm": "probability", "hoverlabel": {"namelength": 0}, "hovertemplate": "idle_speed=%{x}<br>count=%{y}", "legendgroup": "", "marker": {"color": "#636efa"}, "name": "", "offsetgroup": "", "orientation": "v", "showlegend": false, "type": "histogram", "x": [0.16529219499166972, 0.4712280186856458, -0.34207942546223435, 0.10376626724638288, 0.12272727272727273, -0.0187610249602026, -0.05656643647522491, -0.3549835191242923, 0.09872741597564078, -0.11719635628941648, 0.03643949270732263, -0.242061746800062, -0.062246745709599975, -0.2545922116091109, 0.03479897121676312, -0.24945936777178104, -0.15834061714804132, -0.13105729463189245, 0.18556350017024173, -0.2378065936376313, 0.06687965035056909, -0.07444128932255932, 0.053964954613028214, -0.15278969957081545, 0.13931912233713512, -0.2776049766718507, -0.02412551626865292, -0.04310322588245434, 0.059726763091867474, -0.40335478837526817, -0.16070805930184973, -0.07915204234463476, 0.0, 0.014285714285714284, -0.4280557176763549, -0.41835518474374256, 0.035023600030627745, -0.010344820006945636, 0.059806359282681874, -0.09816591352481292, 0.16776895943562609, -0.3794392327200761, 0.265748031496063, -0.23360720562667034, 0.2257465509867781, 0.09861542847059146, 0.2461302532137526, -0.4889148899017434, 0.1083898075359176, -0.2166209134015473, -0.0681901348604056, 0.2086137548490588, -0.33217477656405164, 0.23979790128254955, -0.2545529758249992, 0.31705025833724754, -0.2802508439993073, 0.17260680918287952, -0.4202927215189873, 0.10793048365097543, -0.2974075852136342, 0.051239547291827364, 0.07590132827324478, -0.31881434015703386, 0.10120683364960878, -0.18579387186629528, 0.10770127772162183, -0.13954704211022606, -0.06962576153176675, -0.34373137127939485, 0.0056751727804359295, -0.13584504284509927, -0.1003584229390681, 0.0792630676949443, -0.11215617178323163, 0.10198075591976882, -0.2752454417952314, 0.19184928873510187, -0.2126332846552005, 0.03347011885888464, -0.23270675227446974, -0.005087209302325582, -0.2469043151969981, 0.04604903155610855, -0.11263157894736843, 0.1337807606263982, -0.14799101572248566, 0.1647324306898775, -0.2620008777307178, -0.03598787011137164, -0.1391036674456213, -0.039231454366372785, -0.005527084955724085, 0.1566484500545885, -0.436964190112128, 0.048515265579255534, -0.08680017488436922, -0.02640394061429012, -0.14635023673962586, -0.0999184339314845, -0.2605154431603109, -0.010328911250455623, 0.04978642957307172, 0.021120103050579226, -0.3532574320050601, -0.11805503424250995, 0.011309562038017544, -0.3984776403425309, 0.06132879045996593, -0.24397218884029884, 0.07536602065285017, -0.20820997433847066, -0.017753342556236576, -0.2853414528055677, 0.05767077267637177, 0.00895484790722699, 0.0036157250302633476, -0.031855247473564705, 0.18359219434488253, -0.2073732718894009, 0.07461645746164575, -0.008566786696662675, 0.05459108847428063, -0.040492598586746816, 0.01257820787599316, -0.3836659030624548, -0.0063890352838132936, 0.07656291827254333, 0.00428349074211018, -0.11268593958310777, 0.03322267418030332, -0.11354144959652485, -0.13505074160811867, -0.23179206250291445, -0.0208147100874552, -0.0834936514043863, -0.059322033898305086, -0.11293592862935928, -0.08087734344093211, -0.5298194034140435, 0.09130969487876853, -0.1267437225986449, 0.053382529971040836, -0.16218128880018398, 0.2111364066641424, -0.20753437464939728, -0.1903619029235716, -0.1582346996280279, -0.06528074299310632, -0.24892997544063666, 0.003365061439595602, -0.2996239030505641, 0.11927998202547545, -0.1565186246418338, -0.1492090360666988, -0.1809563066776587, 0.03159935490002731, -0.11943828455696873, -0.028983682050509725, -0.08708743633259852, 0.1675598906875219, -0.2461614924659677, -0.03624150325086314, -0.24806424815315944, -0.020942475520442202, 0.003883061997582718, -0.16302462712452306, 0.047552906505905164, 0.03601263086143712, -0.4048840747353333, -0.046671623296158614, -0.11084146518945028, 0.05026136641310281, -0.14025455452957325, -0.035360202498331536, -0.4410424367192252, 0.177886292291594, -0.06773822830443277, -0.06107793833387889, -0.07226445657650392, 0.002900841233916845, -0.14583715123470928, 0.0021868035354381393, -0.10135101758545742, 0.060639678532228874, -0.029648138006571737, -0.28848218533712755, 0.009339858804062516, 0.15338578535777295, 0.14618161142704314, -0.3872483606405797, 0.007092016871160872, 0.08276088495857595, -0.2710935331487213, -0.4777070063694268, 0.073379495197677, -0.037685183563509056, -0.0964479716967309, -0.12981455064194009, 0.19261381725565108, -0.2471029401711663, -0.21217181302771493, -0.14526043880587253, 0.2854216456128372, -0.3319313003855591, 0.13880829500122008, -0.3350971929249221, -0.1270949720670391, 0.010536197782362032, -0.21336370539104024, 0.08392393442227705, -0.13877454386081112, 0.023400603581933386, -0.07366472765732415, 0.0112440863234754, 0.025165643866722476, -0.2576226911718771, 0.11157542833263684, -0.03139098815290356, -0.19069754728670868, 0.021823606634110402, -0.060793160769413435, 0.07813292744799594, -0.08348635737996922, 0.10714285714285714, -0.4086799276672695, -0.3054143614482425, -0.1972699251431088, 0.2782123509951913, -0.048390492431419616, -0.269108349700643, 0.1471987886653688, -0.2670942850253195, -0.07116936890309078, -0.2132509595127138, -0.2288292441448141, -0.2939594168530545, 0.12035521175444155, -0.2549311499813919, 0.13071795152222168, -0.17508953442101075, 0.13690400302091188, -0.2650985836288421, 0.2165001241310824, -0.2242207333397244, 0.17640384591770325, -0.29203280609256005, 0.009940357852882704, -0.002857142857142857, 0.0, 0.0, -0.041443298969072166, 0.014814814814814815, 0.0, 0.025110132158590308, 0.0, 0.0, 0.0, -0.04041724004746017, 0.17952031375703942, -0.4619750240153698, -0.36730394843893416, 0.3159806295399516, -0.31692847593582885, -0.1089397030488496, -0.2140637855778215, -0.33383646487075724, -0.3591525984773254, -0.26503311660389084, 0.024482968369829692, -0.35481540160353353, 0.24294308190652475, -0.0627331173281605, -0.07400997748966548, -0.21514383182740185, 0.012174211738630258, -0.2699171901770417, -0.13580938079576846, -0.007377477660313768, -0.3509389616681885, -0.2248663244183961, -0.2558396529018353, 0.07623621025308241, 0.062360151258312686, -0.26507482938182075, -0.2994974874371859, -0.1362333134999359, -0.06380108154563394, 0.04204279894867507, 0.1244343891402715, -0.04611093017080255, 0.2259189086775294, -0.04992356349289877, 0.01139453889092095, 0.04370524442997767, 0.058914391054209564, -0.12153058474804634, 0.32926829268292684, -0.18139503891716285, 0.02197802197802198, 0.0, 0.07582260371959942, -0.004178320485708445, 0.059036977672814676, -0.16582142539838735, 0.2097913303653772, -0.10122502620586073, 0.3907125700560448, -0.17637334706257854, -0.04850088183421517, -0.33442515558467084, -0.04183548997351494, -0.003966709880964253, 0.10982813561000454, -0.3076018808777429, 0.26544889234356783, -0.2137573724803941, -0.2792307692307692, 0.21599815583218074, -0.30431628581791803, 0.28424100553722353, -0.4041364456647469, 0.020014096473950492, -0.19453683023876694, 0.2563876651982379, -0.0868319536251225, 0.058698771118010175, -0.06381203516092526, -0.16268560361523562, -0.3581265121792632, 0.03503290472815632, 0.14515481279958545, -0.06920918245896382, -0.17461815537006892, -0.2656127003369124, -0.11333011934914422, -0.005844855870635107, 0.11150601034464117, -0.1960417056877068, 0.0, -0.2006180046389265, 0.16258668260453082, -0.25041736227045075, -0.13359357405600178, -0.3076587978066945, -0.04578419246514349, -0.2498284145504461, 0.08612083703632321, -0.1803095894004985, 0.020132095276286618, -0.1273382574296295, -0.09552494771942802, -0.08877239110890173, -0.12905841928827658, 0.013424265019672948, -0.19746516801311326, 0.014632558851067387, -0.032674667029005414, 0.010299625468164791, -0.10198758385901673, 0.13406760349411315, -0.15203252032520326, -0.0032336297493936947, 0.04725739257134246, -0.19192271684652615, -0.0276399731971611, 0.0, 0.0, -0.029367142148007782, -0.03140217974507331, -0.25413653608790765, 0.023180274619813968, -0.10962145110410093, 0.0497907949790795, -0.12335944967523915, -0.21073087136820895, -0.1980002802690583, -0.212198297647912, -0.27355703919284113, 0.12574023829184855, -0.1738833746898263, -0.07375674808255703, -0.16175040518638573, -0.0149259978113754, 0.0441745173408188, -0.2397003745318352, 0.0, -0.1664170441755599, 0.14198782961460446, -0.08051859433640396, 0.018544229052049416, -0.17474081554411353, 0.11260960356462313, -0.31202779118254825, -0.04027818023761229, 0.09058276436022153, -0.12171147676781956, -0.2815441628168109, -0.009755574851436159, -0.09386733416770963, 0.1920734479488824, 0.055217789837419456, -0.3507547833344051, 0.0730649760418606, -0.10976255313602716, 0.1940792946890508, -0.13073086017561206, -0.07001132752692057, -0.2018229918229918, -0.2116295452833616, -0.15732647814910025, 0.17427241367761814, -0.27940153096729303, 0.08883465108738647, -0.30300429184549355, 0.008994105768299315, -0.05003424431990466, 0.026155699993922976, -0.057330509097862685, -0.057192887133953964, -0.4460019676928381, -0.06450454257983558, 0.07700831024930747, -0.033454200683226215, 0.07462656827063607, -0.08330621542466644, 0.04283692334910876, -0.12246489859594385, 0.0731407976106546, -0.06370875995449374, 0.08695652173913042, -0.0324264968581216, 0.11140684410646387, 0.0015672682063067461, -0.15910132966529114, 0.047194719471947186, 0.0, 0.0054862842892768075, -0.034737234398025736, -0.04289343391139798, -0.1036468330134357, 0.03187917036642825, -0.08508995171646166, 0.06900878293601004, -0.026744675073117855, 0.00461667210250731, -0.14090708938793484, -0.0599294090542319, -0.04496195526861886, -0.08531886202760887, -0.06623518062276902, -0.02982177806852335, -0.08786603009297053, -0.002884226391531977, -0.0390845975829262, 0.054235222425350386, -0.11272839888510375, 0.0889587252262789, -0.11732239101573302, 0.05082591314406289, -0.10256608786721708, -0.14387933061152994, -0.039278813017282914, -0.195299016366165, -0.15585357013410656, 0.06755874900204797, -0.079484425349087, 0.059797370374917426, -0.17128509240929746, -0.014807312201247097, -0.29021431812326964, -0.019429793300071274, 0.16801188070924655, -0.2436599160737092, 0.21234798877455568, -0.11096719548164888, 0.06584739695562562, -0.14495441144298093, 0.14847942754919502, -0.3282230039541333, 0.09603182232089608, -0.5183374083129584, 0.17280500444181224, -0.16226886986874134, -0.006130508533641499, -0.3565723139799917, 0.141643059490085, -0.0881196591239771, 0.0012147129309172386, -0.12536017189234505, 0.1114605968419528, -0.09849624060150378, -0.15153582659478884, 0.036760798849159546, -0.050729040097205344, -0.06120162518454798, -0.06782768891247433, 0.1558271497162811, -0.1820068131070674, 0.0, 0.0, 0.004167769625593315, -0.025, -0.2456486475435317, 0.07595599790466212, -0.12724254263731286, 0.1946795646916566, -0.23317195921635955, 0.1078443603953808, -0.2892815981559739, 0.07286378031353005, -0.1679611650485437, -0.0662903003488636, -0.33667083854818525, -0.09528196077506797, -0.4142040129301276, -0.16798401376030758, -0.2132822477650064, 0.0420851143401281, -0.07648746492103221, 0.08678520625889045, -0.2885325863465915, 0.0709687451407246, -0.23792310220177454, 0.1407522469302502, -0.0667849956778236, 0.018112925487235844, 0.0616, 0.0, 6.0668567615114474e-06, 0.0, 0.0, 0.0, -0.03215831787260358, 0.0, -0.15390334572490708, 0.0, 0.0, 0.0, 0.0, 0.0, 0.01941031941031941, 0.0, 0.002255604557148107, -0.07534216625125717, 0.04045118630882925, 0.006695069993913573, 0.08039303260384101, 0.2934095860566449, -0.07341855129465749, -0.25497205942483303, -0.14126788411979027, -0.2344999460441621, -0.19705637222647976, 0.0971875698636262, 0.0452316795377521, 0.1035532994923858, -0.0146601794951062, -0.0554551273123252, -0.0977484402845882, -0.17159742662028687, 0.054642381163927146, -0.052117924804401694, 0.03546099290780142, 0.17142161788720012, -0.05332855316204257, 0.2581324729550199, -0.08160705511881365, 0.019572953736654804, 0.0, 0.07443739180611655, 0.03604651162790698, -0.126782013643036, 0.02783300198807157, -0.038946238946238936, 0.016667681574208587, -0.1326595586622613, -0.22167967851986725, -0.07261608644768135, 0.0, 0.016568679850347406, 0.16826180920037045, -0.1125984251968504, 0.032388663967611336, 0.01675098642008182, 0.07018583290246054, -0.07806026365348398, 0.0, 0.009149130832570906, 0.030448416751787537, -0.2182872740322512, 0.03899721448467967, 0.01267605633802817, 0.1786652062462445, 0.01948187511861832, -0.08054212835576707, -0.007236185158605407, -0.10067477511323564, 0.06175081729022884, 0.1911400406608238, 0.04069264069264069, 0.005042016806722689, 0.0519213863097612, -0.01707725660228615, -0.006865132569020715, -0.213006853756684, 0.06554958242914444, -0.27578928573045924, 0.08278580814717477, -0.06521409433294575, 0.02839271301741036, -0.24584960168394565, 0.003950207264545985, -0.003417886103802182, -0.1127499045603436, 0.023296703296703296, -0.02, 0.07624527828288878, -0.2470417790167412, 0.043716791768575534, -0.07701065290785282, -0.1951466127401416, 0.2596422838798441, -0.2125384180582844, 0.12055555555555555, -0.2324843990535304, 0.04783720421399705, -0.3526526516835257, -0.049765258215962435, -0.2152288992940149, -0.17308300482976532, -0.17344230404107636, -0.04595742062515383], "xaxis": "x", "yaxis": "y"}],
{"barmode": "relative", "height": 600, "legend": {"tracegroupgap": 0}, "margin": {"t": 60}, "template": {"data": {"bar": [{"error_x": {"color": "#2a3f5f"}, "error_y": {"color": "#2a3f5f"}, "marker": {"line": {"color": "#E5ECF6", "width": 0.5}}, "type": "bar"}], "barpolar": [{"marker": {"line": {"color": "#E5ECF6", "width": 0.5}}, "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.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.0, "#f0f921"]], "type": "contour"}], "contourcarpet": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "type": "contourcarpet"}], "heatmap": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "heatmap"}], "heatmapgl": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "heatmapgl"}], "histogram": [{"marker": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "type": "histogram"}], "histogram2d": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "histogram2d"}], "histogram2dcontour": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "histogram2dcontour"}], "mesh3d": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "type": "mesh3d"}], "parcoords": [{"line": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "type": "parcoords"}], "scatter": [{"marker": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "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.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.0, "#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}, "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.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.0, "#f0f921"]], "sequentialminus": [[0.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.0, "#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": "", "zerolinecolor": "white", "zerolinewidth": 2}, "yaxis": {"automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "zerolinecolor": "white", "zerolinewidth": 2}}}, "xaxis": {"anchor": "y", "domain": [0.0, 0.98], "title": {"text": "idle_speed"}}, "yaxis": {"anchor": "x", "domain": [0.0, 1.0], "title": {"text": "count"}}},
{"responsive": true}
).then(function(){
var gd = document.getElementById('d947b901-fdf3-4e4b-95ef-a2ab33b35f03');
var x = new MutationObserver(function (mutations, observer) {{
var display = window.getComputedStyle(gd).display;
if (!display || display === 'none') {{
console.log([gd, 'removed!']);
Plotly.purge(gd);
observer.disconnect();
}}
}});
// Listen for the removal of the full notebook cells
var notebookContainer = gd.closest('#notebook-container');
if (notebookContainer) {{
x.observe(notebookContainer, {childList: true});
}}
// Listen for the clearing of the current output cell
var outputEl = gd.closest('.output');
if (outputEl) {{
x.observe(outputEl, {childList: true});
}}
})
};
});
</script>
</div>
col_min_maxs.append([-0.7, 0.4])
</div>
平稳驾驶¶
iplot(px.histogram(data_df, x='smooth_speed', histnorm='probability'))
</div>
<div class="prompt"></div>
<div id="27bbe1cd-259a-4c75-a2e9-44608b4dd48f" class="plotly-graph-div" style="height:600px; width:100%;"></div>
<script type="text/javascript">
require(["plotly"], function(Plotly) {
window.PLOTLYENV=window.PLOTLYENV || {};
if (document.getElementById("27bbe1cd-259a-4c75-a2e9-44608b4dd48f")) {
Plotly.newPlot(
'27bbe1cd-259a-4c75-a2e9-44608b4dd48f',
[{"alignmentgroup": "True", "bingroup": "x", "histnorm": "probability", "hoverlabel": {"namelength": 0}, "hovertemplate": "smooth_speed=%{x}<br>count=%{y}", "legendgroup": "", "marker": {"color": "#636efa"}, "name": "", "offsetgroup": "", "orientation": "v", "showlegend": false, "type": "histogram", "x": [-0.23965276141365394, -0.5614685481942119, -0.5829753146831881, -0.06236183642738169, -0.6916313207068713, 0.3543822401013148, -0.5076943140323422, 0.3908487469685765, -0.6810570904073977, 0.4649238456444525, -0.4689101172383847, 0.6507278346803844, -0.44706757869402747, 0.5350367892778115, -0.3420581661192504, 0.3048283421279906, -0.5099235549162979, -0.5268887653923777, -0.2920874014029908, -0.4850984128874728, -0.6957156484592095, 0.15976118366205194, -0.5125773766296642, 0.6175611400035232, -0.3385348476451612, 0.3375, -0.04161489679686548, -0.07851267824847569, -0.2739491872068832, 0.5467454898145879, -0.6539669126869909, -0.3702918373232381, -1.4064708033646225, -0.978131844064827, -0.37702250325460296, -0.7467321886142358, -0.6578118624146505, -0.7339139742612876, -0.4266188743044012, 0.5005384056905311, -0.5948273332746532, 0.5152523072973382, -0.3440995520506223, -0.5040551500405515, -0.3946331345605393, -0.6730549990218498, -0.3749253401463465, 0.5261199371547676, -0.5118877546514717, 0.808913355526372, -0.09668194597906116, -0.4118035122072154, -0.6144932267014853, -0.7544043255260918, -0.6268098741989082, -0.6686658799726221, 0.5427350427350428, -0.5843019684666477, 0.5619061344791908, -0.5268034086405073, 0.6969217340704102, -0.09307748009825544, -0.2202610219137957, 0.4701790350058452, -0.5989788402303469, 0.6499459667831069, -0.3844725876679621, -0.5659631828129693, -0.18048579913313245, 0.641797536338439, -0.4974897809291529, 0.04343588422908536, -1.6519347117877798, -0.6027984930696634, 0.6523991695961918, -0.3700381043105501, 0.058271535989587016, -0.5372667572232492, 0.4772869103413037, -0.666245512973229, 0.6907720409622349, -0.1303188325336082, 0.644904728559319, -0.6617063252405686, 0.6527472527472526, -0.5120893505417253, -0.4507097322184946, -0.3769417922348756, -0.07850750300779985, -0.5518749788472602, -0.6636700229361724, -0.5256356365919234, -0.5229628771645334, -0.5960998464139996, 0.4888180246989991, -0.5955647731030601, 0.4270474849076744, -0.5280741565636403, 0.5081849819301298, -0.18514471705671032, -0.09232275754014883, -0.059500959692898266, -0.5030624245959717, 0.12237097595006352, 0.4646180860403864, -0.5750428875595661, -0.03467279585403882, 0.6156509771538674, -0.5701102686396804, 0.8345430866839767, -0.6366481907962205, 0.6439668458099121, -0.20668009266571896, -0.6576902861447386, -0.5903943563329316, -0.5010752368964779, -0.4574159728646315, -0.4651503135973276, -0.5323600151334991, 0.04886341728446997, -0.6757885205493235, 0.5052507401924501, -0.5587675458963406, 0.4975582215831744, -0.24483368724439405, 0.5342723004694836, -0.02163748274429389, 0.1115428901932518, -0.7576796903935842, -0.09313615042073092, -0.24760336943881245, 0.5409964243787471, -0.3773505021535828, -0.5112021857923498, -0.7557612819206161, -0.6294229941462512, -0.3955563154703791, -0.5372634934608485, -0.6213377305636836, 0.450445868945869, -0.5011032346216805, 0.3103403406585111, -0.630516599735077, 0.4103495333685509, -0.4060321323354499, -0.6592676649982776, -0.4327002063349353, 0.23892907051403106, -0.2938581525712893, 0.5515310332257934, -0.15138633490403394, 0.2628523100382667, -0.4424025686774065, 0.2373196295328513, -0.4458455047062642, 0.6082342954159593, -0.4742667233508813, 0.10899082252177884, 0.02278397127634768, -0.17205458803647605, -0.2708143906094325, 0.5352719596923119, -0.0279437137463292, 0.2484825826089361, -0.04764326238758798, -0.4686086901604142, 0.13054989863408278, 0.012311960186132731, -0.6123550307576151, 0.5089074117888907, -0.6027789908182877, 0.6063297372238432, -0.3128584886203379, 0.5765498281786942, 0.004570850604083132, 0.5125894573262995, -0.6306824827061591, 0.2347114660643218, -0.5324984481688392, 0.5311173974540311, -0.5241453939634569, -0.6395915605287962, -0.43118580972009857, -0.24112067995046715, -0.009351815412421471, 0.035807618994999964, 0.5089542960396531, -0.07915103863590689, -0.06821130130956199, -0.30394416029624743, 0.4948585904868152, 0.0037525203713139055, 0.023042027034503088, -0.3500797649994121, 0.5053212345264101, -0.6038633995152731, 0.020704366602530392, -0.7589558728644767, 0.4371998342855097, -0.4164091213174869, 0.03254298143248335, -0.614692654913072, -0.6673098049627804, -0.8275732887142628, 0.6794931898934069, -0.4169087049174384, 0.4282554446460981, -1.670520231213873, -0.012091954022988516, -0.12018774814743373, -0.3968507955969913, 0.5078985452768485, -0.1217004969444334, 0.1273081004598514, 0.09059065587794912, -0.3322486936274857, 0.3904353739061969, -0.5227749903267344, 0.2443235705586013, -0.6504968175880375, -0.6650096105209915, 0.7478527924583758, -0.8605206847360913, -0.6817727289689874, -0.4615874958566002, 0.3902828590133631, -0.14802646434539124, 0.33739667365830583, -0.08565276418490486, -0.1870231963753244, 0.08112894159612183, -0.524550505050505, 0.11786972831647158, -0.5943916326596614, -0.5860075781008351, -0.5672836744256508, 0.03634752594156854, -0.4531258069514021, 0.4645598302766827, -0.6790538412647515, 0.5980091385510504, -0.5805244054516617, 0.4114310270734852, -0.487546707078653, 0.26909369593018884, -0.609147558981969, 0.5981821047235578, -0.3407302400260147, 0.0932175695136812, -1.318596156045449, -3.088888888888889, 0.08202109496157217, 0.6603654694391935, 0.16127421798406527, 0.08976508176377695, 0.23283877002168166, 0.26550408493717104, -1.5678628407073683, 0.13486130616245695, 0.06770071871736594, 0.3450664545424414, 0.22670461761431976, -0.2798076580904595, -0.6400684295346489, -1.0291370144538614, -0.4918684255650232, -0.8790125950737805, -0.5681551116333725, -0.6528968938740294, -0.3172913385826772, 0.02013399135962424, 0.44105523495465787, -0.3842799734857901, -0.4803912471970928, 0.4896008340292674, -0.4252059705557578, 0.3474772377645155, -0.7610248056378991, 0.009134427366245037, 0.2009803921568627, -0.4150228319489824, 0.4694940219159677, -0.8085924148466439, 0.08018442573009232, 0.6437246474792351, -0.1703644850878686, 0.20770024329739528, -0.616079687315265, -0.476275907633492, -0.6246447848285923, 0.15012967597993138, -0.4935476892360704, -0.4668356022723152, -0.657538701836808, 0.20409806308686976, -0.19385772556326905, 0.7252089374040593, 0.370275464445868, -0.4580588005134937, -0.7530573864285314, 0.6311094702169677, -0.6486814506791416, -0.10394353989970896, -0.22019792655815815, -0.6429155604766158, -0.6873788731331829, -0.7963337477434518, -0.7257713013464642, 0.6250537702194566, -0.3650864550453616, 0.5799979563825762, -0.6164604667363288, 0.4750232292649946, -0.5417145818946172, -0.6857923497267759, -0.4786522262334537, -0.5011321438275519, 0.4383442072210629, -0.6682750619627698, -0.5684126698755908, -0.6932440657334145, 0.7099601552738459, -0.3777680222579215, -0.4757125391508671, -0.4412609679068934, -0.4568337507315501, -0.5637780736252022, 0.1256904144544595, -0.3784610141229093, 0.4419987171665024, -0.047328633476322435, -0.8846395763008832, 0.3560202409933704, -0.23682773682773686, 0.3075810725726661, -0.2616600848112149, 0.4535019879091553, -0.7098224852071006, 0.5321914093626252, -0.14723550207421174, -0.012502799718274171, -0.758044643676353, -0.7939646589588664, -0.6460288212820762, -0.7080102923187244, -0.4352674374882497, 0.2644567282186436, -1.2501153696748657, -0.14363970078428934, -0.08618288099420167, -0.19363201624168136, 9.362545676172562e-05, 0.15692324146216566, 0.4455851988160292, -0.9245201348234876, -0.7466155256428813, -1.2290624306695657, -0.6318630808349095, -1.1311477460349226, 0.5279175694881294, -0.4794823978844193, 0.05773536127267776, -1.4261626899586215, -0.18467831049360026, -0.8480279118153906, 0.11468050780306738, -0.8017935402227128, -0.7894074074074073, 0.5004917255890661, -0.5319250468793401, 0.3484488205373901, -0.7120977286817337, 0.6433653342994002, -1.0826138966057277, -0.5758066837412033, -0.6900424195129761, 0.4449143313954233, -2.091328933253332, 0.6760793795397793, -0.6512171495956873, -0.585125556576541, -0.7292561950564687, -0.6295577704813105, -1.1323660390646038, 0.07197567026296757, -0.5540148353732803, -0.2467374005305041, -0.8038666490861459, -0.9381519569138724, 0.13726328119772113, -0.5318674617351709, -0.5076398128250801, -0.4489660000682045, -0.14950838635049166, -0.6621491846094472, 0.09328045665882044, 0.6156741250383202, -0.7835129986706684, 0.049221807386082506, 0.6335046030786882, -0.3511454334007743, 0.10123982722917013, -0.30963754928723075, -0.2116888053034005, -0.513767006802721, -0.5328404161029996, -0.16313457098955592, -0.7725990284005979, -0.038250312329820235, -0.6115591348568788, 0.6133594139758656, -0.812219272440267, 0.6136604582801243, -0.581916486807911, -0.6858960385663383, -0.7415964625508193, -0.04150880892223807, -0.36070857893452657, 0.06764734186482703, -0.5834072513085722, 0.13955131602190424, 0.5413472381720932, -0.8944381071533707, 0.2254780816883364, -0.8313093769525304, 0.5618596770978673, -0.6960684083203895, 0.7228465316880317, -0.8249990554275135, 0.6890552002224695, -0.5496996665543563, 0.4020405491340291, -0.4579253801414265, 0.3065584276863918, 0.4435607955131167, -0.5776310013236587, 0.2822194418943924, -0.4992959686553001, 0.4673924668779108, -0.5349019364448858, 0.5031308869962058, -0.8939342553164764, 0.3054761483704091, -0.5656188210060661, 0.4530263440569114, -0.3131176013528955, -0.9604214924830812, -0.4860154900421701, 0.5476271765107545, -0.6637249379934586, -0.469176703811612, -0.5949132939799178, -0.4862102911747156, -0.8852545766590391, 0.3660806663808129, -0.8483960780107614, 0.5339157459714376, -0.4685598377281947, 0.38323529411764706, -0.4225698147489828, 0.6158567543205999, -0.7261779036957391, 0.3873321086636794, -0.232602997037326, -0.6242524387238916, -0.5030227399266884, 0.4843458702879214, -0.6724859419397143, 0.6274079590974053, -0.13042621987066438, -0.026588944356507938, -0.6441981845440201, 0.09089833032334038, -0.4465907497508938, -0.5747037276449041, -0.5878722075986593, -0.9030618329969992, 0.42475675826048254, -0.5814968096470332, 0.4758282663789797, -0.6325513193666733, 0.6367236467236468, -0.7068268076371944, -0.3409072189650396, -0.29522447805936114, -0.29676017176191205, -0.8445344708545359, 0.5391290102571646, -0.6276573384578429, 0.6055311524188804, -0.3277759307573973, -0.4794323323735088, -0.5252469794033932, -0.7317687233389198, 0.5578949285922472, -0.8484817812789495, -0.5171669757609212, -0.40001475039761947, 0.0507016475034463, -0.7263260986071726, -0.6413265836829514, 0.3957813473392923, -0.3656186406808547, 0.4804459257931237, -0.5938278443350689, 0.6264980801303184, -0.574804686616794, 0.3812500202389164, -0.7850585397499923, 0.564081104574767, -0.5420093858808094, 0.3722206211620741, -0.5593031116932313, -0.836830704663914, 0.13071609414559435, 0.6239430171864037, -0.7786118151686487, 0.6187878787878789, -0.6870139694820545, 0.16471954782959908, -0.5720948475664109, -0.6304245836265541, -0.5656058751529986, -0.4840453962371721, -0.5999499598851973, 0.0140144305254305, -0.4124607178895775, -0.3734702484898551, -0.23845344796049014, -0.0002952808508362992, 0.007893904617603198, 0.1049383788116629, -1.7669291338582678, 0.313127300100368, 0.18091686091686088, 0.4668866850340068, -0.03964707491678443, -0.3377995684002102, -0.4211193788417989, 0.16763445871628058, 0.1789152953706986, -0.22930336264897466, -0.1352113719036241, -0.8858253512057235, 0.34031791743154743, -0.18323584602408385, -0.18217828798185945, -0.1542711664702912, 0.2305080482897385, -0.3255597137849697, 0.15826285700242382, 0.26323026549980705, -0.031702705896254235, 0.2544960044045517, -0.3263553408480945, 0.104207214888425, 0.10000837392360196, 0.05339653198393535, 0.3634865341178389, -0.0714819302555666, 0.27947270678286945, -0.3657171837173855, 0.3748875096254651, -0.2193891102257636, 0.04642193179610982, 0.19924281871040528, 0.009577209723479864, 0.08956312126340947, -0.08256118141629387, 0.13860194056067787, -0.25363957177012164, -0.011994479190127194, 0.06440897873516449, -0.30245329966778434, 0.21854285482919386, -0.4105145434754601, 0.1104642861778487, -0.08910402150145548, -0.15352152434721245, -0.17368051638657533, -0.33574294627222223, 0.33783661711716234, 0.13759045832216554, -0.5799166608375886, -0.32490173665722577, -0.2952491533623609, -0.11937853107344633, -0.2751335922201201, 0.38779127441814537, -0.15353798423676035, 0.25742285188155273, 0.00025761494472753554, 0.22174431441819387, -0.15494893030859005, 0.4261968331664627, 0.4362511868812103, -0.2424513402580724, 0.17324348360645536, -0.3880195040926925, -0.07609632246055076, -0.4148044660378626, -0.41012560640319307, -0.2619206145966709, 0.1842426054400044, -0.2253107729578317, 0.34642303593916496, -0.044085696748862535, 0.16566306397030411, 0.16800893596764466, 0.21633566442515015, -0.3500853424203988, 0.12411621789325578, 0.3030101966056534, -0.4676619232013234, 0.26316326530612244, -0.11271525352911338, 0.3626954897507431, -0.0063756623357770215, 0.16798392438771742, -0.1610263319415326, 0.2279813342287593, -0.4517521535404604, -0.6291339166543081, 0.22187584537640906, -0.10405847571248804, 0.43920259448686544, -0.3573899038969267, 0.3061024944578897, 0.5585450367990435, 0.3044417040536965, -0.1679588545301015, 0.10042348577546656, -0.3033156476752451], "xaxis": "x", "yaxis": "y"}],
{"barmode": "relative", "height": 600, "legend": {"tracegroupgap": 0}, "margin": {"t": 60}, "template": {"data": {"bar": [{"error_x": {"color": "#2a3f5f"}, "error_y": {"color": "#2a3f5f"}, "marker": {"line": {"color": "#E5ECF6", "width": 0.5}}, "type": "bar"}], "barpolar": [{"marker": {"line": {"color": "#E5ECF6", "width": 0.5}}, "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.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.0, "#f0f921"]], "type": "contour"}], "contourcarpet": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "type": "contourcarpet"}], "heatmap": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "heatmap"}], "heatmapgl": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "heatmapgl"}], "histogram": [{"marker": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "type": "histogram"}], "histogram2d": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "histogram2d"}], "histogram2dcontour": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "histogram2dcontour"}], "mesh3d": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "type": "mesh3d"}], "parcoords": [{"line": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "type": "parcoords"}], "scatter": [{"marker": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "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.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.0, "#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}, "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.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.0, "#f0f921"]], "sequentialminus": [[0.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.0, "#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": "", "zerolinecolor": "white", "zerolinewidth": 2}, "yaxis": {"automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "zerolinecolor": "white", "zerolinewidth": 2}}}, "xaxis": {"anchor": "y", "domain": [0.0, 0.98], "title": {"text": "smooth_speed"}}, "yaxis": {"anchor": "x", "domain": [0.0, 1.0], "title": {"text": "count"}}},
{"responsive": true}
).then(function(){
var gd = document.getElementById('27bbe1cd-259a-4c75-a2e9-44608b4dd48f');
var x = new MutationObserver(function (mutations, observer) {{
var display = window.getComputedStyle(gd).display;
if (!display || display === 'none') {{
console.log([gd, 'removed!']);
Plotly.purge(gd);
observer.disconnect();
}}
}});
// Listen for the removal of the full notebook cells
var notebookContainer = gd.closest('#notebook-container');
if (notebookContainer) {{
x.observe(notebookContainer, {childList: true});
}}
// Listen for the clearing of the current output cell
var outputEl = gd.closest('.output');
if (outputEl) {{
x.observe(outputEl, {childList: true});
}}
})
};
});
</script>
</div>
col_min_maxs.append([-1, 1])
</div>
空档滑行¶
iplot(px.histogram(data_df, x='without_gear', histnorm='probability'))
</div>
<div class="prompt"></div>
<div id="18e80d74-6b76-4c2e-a519-a38665490330" class="plotly-graph-div" style="height:600px; width:100%;"></div>
<script type="text/javascript">
require(["plotly"], function(Plotly) {
window.PLOTLYENV=window.PLOTLYENV || {};
if (document.getElementById("18e80d74-6b76-4c2e-a519-a38665490330")) {
Plotly.newPlot(
'18e80d74-6b76-4c2e-a519-a38665490330',
[{"alignmentgroup": "True", "bingroup": "x", "histnorm": "probability", "hoverlabel": {"namelength": 0}, "hovertemplate": "without_gear=%{x}<br>count=%{y}", "legendgroup": "", "marker": {"color": "#636efa"}, "name": "", "offsetgroup": "", "orientation": "v", "showlegend": false, "type": "histogram", "x": [0.15760242317079673, 0.026787849796699376, 0.0004160757285472105, -0.003305219340534543, 0.11468956558559465, -0.06656702797333035, 0.04777740517177137, -0.07952622673434856, 0.07936017011960822, -0.08664439227018242, 0.03310898827616153, -0.10394962059843846, 0.05663753245930711, -0.08526107072042301, 0.01809984209390881, -0.09491158308413863, -0.02441535242696345, -0.017052268273421274, 0.07907027488776537, 0.023378495071911382, -0.017829344835690486, -0.008523109778247467, 0.02709399049268331, -0.11660449904642273, 0.01960933787981824, -0.1555232558139535, 0.0017296118269580355, 0.023641523386762828, 0.07566909975669099, -0.13507741591030434, 0.09296531509526136, -0.07835849632181953, 0.008711447031573817, -0.004325448970652651, -0.017856921455582417, -0.003377002356168057, -0.012334146226573042, -0.0739594060214714, 0.10046129286157153, 0.004862919000889768, 0.08390179855059708, -0.043690418286875934, 0.10991935915483317, -0.06266876580315825, 0.11278195488721805, -0.0699950755199374, 0.060709314655433264, -0.1444684040642318, 0.06213465338732566, -0.1706229830294516, 0.03473263026616635, 0.031386530831347036, -0.08552775770010959, 0.1878522229179712, 0.0036562178574254256, 0.08231297672275772, -0.09151082835293363, 0.06533985143895651, -0.07192491856394803, 0.08756936187078873, -0.12833672776646302, 0.02670642700627708, 0.10132221902845644, -0.06371992162323539, 0.08762555243069506, -0.09605351778981404, 0.06288918020506579, -0.026979141562470815, 0.03490150442440328, -0.07020112588414802, 0.099193940765028, 0.09230769230769233, -0.015183498437603882, 0.04444223005117391, -0.09173975274402237, 0.0534841628959276, -0.09523809523809523, 0.07525456272405093, -0.11775164285624536, 0.04423586034472144, -0.04651636431524882, -0.008649918705635088, -0.09111598422585043, 0.07602635852424472, -0.1383022774327122, 0.05942420004677217, -0.08925525866969869, 0.06205352579174419, 0.00641328897810195, -0.015699563407452516, -0.02573686732964757, -0.0072884964448022985, 0.02151525314003544, -0.011772710449388643, -0.05342900467853697, 0.028830142840352707, -0.06965279900078397, 0.052151927104125965, -0.07470441261767724, 0.07151230949589682, -0.07199373286329808, 0.05143953934740883, 0.018703451905151217, 0.0493603960061369, -0.04897570968685982, 0.04899199026665315, 0.002854016783476632, -0.12159647674098542, 0.029243610125963063, -0.14156626506024098, -0.0013829695503925765, -0.04023398015684442, -0.007049965776865161, -0.033859148495791275, -0.020989483063902283, -0.029689244068682168, 0.02840733888374962, 0.0469394419184089, 0.0744973516376608, -0.03809874336190125, -0.019324053380092417, -0.0019262351961509968, 0.06409089306869087, -0.03982191534613426, 0.12086253544835265, -0.1767227018022111, 0.00948114493006133, -0.046082385813410336, -0.05843858893247768, 0.0002361465829620463, 0.06989500185702717, -0.08376273647044064, 0.020334489790117302, -0.043062252223293684, 0.003486495668421949, -0.0814084391259224, 0.005396221240940914, -0.08029184423414233, 0.03374481684040835, -0.11273361823361824, 0.07952759101178318, -0.058934836246319865, 0.07081081838761451, -0.039470815619785514, 0.08924454244359456, -0.06416644714178604, 0.04008896981300493, -0.06758696226913928, -0.019325580585634203, -0.0318543861751855, 0.05057177335938398, -0.12200435729847495, 0.04428440709277694, -0.1078811369509044, -0.009942167537104252, -0.11360852149690433, 0.10668315936103624, -0.06851328304079103, 0.038345750700743066, 0.06296538857208611, 0.0996324483627626, -0.023934663360726964, 0.0010662660302136334, -0.05244872517704706, -0.0193572389521588, 0.00026946233842785333, -0.07653585417985341, -0.026118105799402876, 0.02603195821420172, -0.1518032030222753, 0.017598513569519268, -0.043357635319896136, 0.06307588113646118, -0.08594730813287514, -0.03350424620487122, -0.08159326054062896, 0.10464259395725864, -0.04198061202538453, 0.0474487895716946, -0.10080669721107448, 0.018317620467467488, -0.0860545713802354, 0.03724388024050411, -0.047872340425531915, 0.0020221454564888913, 0.0043518697569914465, -0.07844934767833164, 0.017778073697666014, -0.0012585414284471685, 0.06552824066435682, -0.11561115870138322, 0.0459820275167013, -0.021740399923777208, 0.08268291249199901, -0.07415224332045034, 0.06897447525460175, -0.017535664235150378, 0.035071840052541346, -0.08086253369272238, 0.008235394522033826, -0.07259832580387987, 0.004361698432468114, 0.0486187194263813, 0.16925948973242064, -0.035350046058691936, 0.06173989582619975, -0.0810819171753836, -0.0905587668593449, 0.008137931034482751, -0.09409355011418956, 0.031092716419043712, -0.046137888583994285, -0.016249153689911984, 0.1264591439688716, -0.0836947222940243, 0.03461158555893209, -0.0973820303133332, 0.07971586424625099, -0.0438659813514609, 0.053181717112760214, -0.0233181588265048, -0.10681336983676867, 0.0632331962742301, 0.010065123236071172, 0.1135362395210938, -0.13478260869565215, -0.0417513435397191, -0.1281206027293789, 0.019212320912415363, 0.011222634214976313, -0.040149760577487946, 0.042892255892255884, -0.08943673979765829, 0.03856503307639151, -0.11674528301886793, 0.02845704609003333, -0.04404432218486512, 0.021725283616519486, -0.09661957031766977, -0.040506919830740416, -0.0451020801132431, 0.049144142993490784, -0.14454586257938215, 0.016557153268627892, -0.019173625216279244, 0.020160341676167724, -0.0751275718478844, 0.034163567262158814, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.05005575855331396, 0.10317996600937812, 0.05994995194060521, -0.09049582763695586, 0.026831785345717236, -0.015357736353002013, 0.015455950540958269, -0.07858328721638075, 0.043256710560725865, -0.0399529964747356, 0.022036238136324417, 0.014593175853018378, -0.05963517292794252, 0.15581203627370158, 0.007519264230673617, -0.061901079924740324, -0.06898317204036965, -0.09139971165602401, -0.033568346837840685, 0.004254292745679289, 0.0014665432886896699, -0.028326932147429425, -0.0010717238121481707, -0.0340738123367546, 0.021489175194209408, -0.0064312753648639795, -0.04301075268817205, -0.012214983713355049, -0.005331671596221735, -0.028290109676118138, 0.017113085974623368, 0.05912764405543399, -0.00016535103117887306, 0.07113310969840562, -0.049417728610138885, -0.014643180483507878, 0.013004722819305307, 0.15434083601286175, -0.08192620387742339, 0.040999359385009614, -0.02012426440471253, 0.0015756030530235455, -0.043931496649292634, 0.042913453384712516, -0.009361118363618907, 0.058043117744610274, -0.038839412660266484, 0.06686506542910235, -0.023234463878197484, 0.059938272332104275, -0.023996814578033567, -0.06225982740186777, -0.04304231116560757, -0.026854754440961345, -0.025160111057130147, 0.0051491555082741535, -0.02654176424668228, 0.004527202482741147, -0.049180327868852465, -0.0163826998689384, 0.024584717607973417, -0.026233603997501558, 0.06922043010752688, -0.045161290322580636, 0.0, -0.05217375161443456, 0.05417844127069284, -0.014824560362355825, 0.08832357255439477, -0.020788574721158984, 0.04475869372947333, -0.0334037327325918, 0.022463859786321348, 0.014735432016075016, -0.01498170348935128, 0.048972048972048966, -0.03563941299790356, 0.027466009938358862, 0.002527095474102719, -0.0053964497041420105, -0.02277788382006744, 0.04395604395604396, -0.011293861128576558, 0.03552532123960695, -0.019876627827278958, 0.013571869216533005, -0.0020763909393849947, -0.008191741868772327, -0.03705953827460511, 0.013831175878153395, -0.06593031038552792, 0.013018128191084166, 0.0, 0.005336651035416529, -0.014220886109713466, -0.06673735834051295, -0.031111111111111114, -0.003749537640115153, -0.052658295247814714, 0.02550327898615111, 0.04937584429879421, -0.023717993522984083, 0.02929404828855905, -0.020626432391138275, 0.004350632619330417, 0.013353954590976512, 0.0349283309382233, -0.023788404566840136, -0.03517051413264597, -0.014814814814814815, 0.02481906242299017, 0.00805574965134842, -0.03006265150762422, -0.011363636363636364, -0.028106508875739646, 0.028119023822078117, 0.00537715732462376, 0.045739373445118095, -0.01580135440180587, -0.0330278732340588, -0.05984272943932455, 0.03950471698113208, -0.05695227008378316, 0.03825107860675577, -0.0067360685854255965, 0.025383707201889018, 0.031895467043422006, -0.01724387516722241, 0.0, 0.02047464742398756, 0.02806263279860831, 0.02507266454784994, 0.08173111496564002, 0.06456691252979385, 0.09575457220747803, 0.01249277038750723, -0.002419205472544669, -0.006932560007336774, -0.022060792325871083, 0.041572722663048685, -0.0028953563342479713, -0.04250386398763524, 0.00348090678816651, 0.006255347597024828, 0.035183500151653016, 0.032374239215744345, -0.0689030612244898, 0.05798969072164949, 0.0026135033687903764, -0.0539564648729447, -0.037842842041195514, -0.05402378080303291, -0.007063507352469024, 0.1253246753246753, -0.07589210418523963, 0.02470672011041125, -0.0898029763152379, -0.05301458569093423, 0.07115758256146264, -0.031506665859462005, -0.0400828933613607, 0.04329174215259896, 0.03303303303303303, 0.005079243556539562, 0.06931667647924639, -0.05208635565613845, -0.04098111152053062, 0.027835359776759026, 0.016988729271424766, -0.08149784353659997, 0.03824196168813995, -0.0021656006674082434, 0.052987262453865605, 0.10900385291587178, 0.039985088677368115, -0.13561916969308555, -0.04743451219651877, 0.09532262722063373, -0.01590881460712341, -3.520156723499368e-05, -0.035854313572700525, -0.018902060575968216, 0.024505582771920442, 0.05702615330681805, -0.02553067859620621, 0.04135899698753682, -0.0144915892192497, 0.05712783948078065, -0.17398373983739834, -0.031000640279438968, 0.0274268806190964, -0.03514461605351832, -0.041438140149581, -0.08676826874445158, -0.09375558729317593, -0.00042906178489703073, 0.0004463416811422843, 0.03264823653492073, -0.1048884334016564, 0.004056795131845843, -0.07971620227038186, 0.02743611012363234, -0.1369907097141054, -0.013501286361125173, 0.004370468293073747, -0.048278700324129536, -0.029126987578089895, 0.025167251835862242, 0.04563786665580318, 0.03262662189282095, -0.07365285130538055, 0.0847854203409759, -0.02356020942408377, 0.008183330216811502, -0.021367573862913183, 0.025097377900707412, 0.014608920491273422, -0.020142832155152918, 0.05299408910706874, -0.08529109029328105, 0.1080435738808059, -0.0336962422032631, 0.02796978656555857, -0.07322485207100593, -0.0004637697997753807, 0.013837410427477144, 0.01527614571092832, -0.06585864050327275, -0.01220748743088304, 0.014417534803482353, -0.0356488710064857, -0.0004228515183056503, 0.011508877906943979, 0.09728506787330317, -0.0019921770750913614, 0.036869522107654346, -0.10793621878946856, -0.06718644414175504, -0.04975689439036948, 0.11383459032373915, -0.008203136550676657, -0.023705552089831567, 0.029341909087757013, -0.011739513026757948, 0.01846436391105666, -0.02108775904360653, 0.002362036494848625, -0.07148120854826824, 0.025832766825288917, -0.07597851112816577, 0.051941238195173135, -0.03009885378130875, 0.03943655879872261, -0.08827506705978852, 0.007843804206226795, -0.11240100182765857, 0.02551674250170796, -0.0664850136239782, -0.034647522491156726, -0.06545454545454546, -0.0204642166344294, -0.029033742437684362, 0.029873417721518983, -0.028946751114238795, 0.0010229061024654706, 0.0009888112884834654, 0.0700995839640042, -0.01355302866576226, -0.0015085771947527735, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.021101225846468532, -0.05912215572403785, 0.13105622655624166, -0.047439531368102784, 0.09352732424395444, 0.13267102615694165, 0.05309209746069815, -0.1044810965738212, 0.10055975932934393, -0.053213990310764514, -0.08325423316066291, 0.10050993022007512, -0.019405702344578654, 0.08292650021167418, -0.06223294588296456, -0.031864042927399194, 0.0006747668330424478, -0.019738984760104574, 0.05061231656654413, -0.09242652990043676, 0.08402114811195469, 0.09044368600682594, -0.03318544071277735, 0.16765340948666155, -0.04296013517915536, 0.008102280664459893, -0.024345277926122292, 0.035833039608291116, -0.031074767704417226, 0.011088619939301323, 0.1389533952208047, -0.056370479198238524, 0.04623824451410658, 0.0340199628778734, -0.06147800773463185, 0.03781933662667608, -0.028901125251315187, 0.10018438844499078, 0.10990555148497956, -0.11556329849012775, 0.059882285931270166, -0.05982051458057892, 0.09133204321883566, 0.007193973634651588, 0.042690597099140366, -0.024172845448682933, 0.02144234022895859, -0.06910332947221481, 0.003975602249327054, -0.027441672186649, 0.09207948238710084, -0.0012793414172878046, -0.025404433595349024, 0.06383689549544859, -0.05540479664969558, 0.06664670436761627, 0.05694891173510666, 0.049270990447461034, 0.019776440240756664, 0.13039692701664532, -0.10148876461754854, 0.06120296767355591, -0.13489295747360264, 0.4674642686645688, -0.036905115984964695, 0.07628032850176357, -0.06392526490995391, 0.07444482072044423, -0.08734722258636812, -0.036011614503868236, 0.09085783923487714, -0.02183673469387755, 0.024860476915271438, -0.05534454693434617, 0.03728315308122232, -0.08385636867211707, 0.006187121445858909, -0.1117695856233328, -0.003615898338087356, 0.06617232685748184, 0.009159015015456408, 0.08943616331821128, -0.13082363852470824, 0.003628617066216068, -0.054147323201596965, -0.02988194418500392, -0.053918512739978185, 0.04127579737335835, -0.014135630162129096, 0.010649410753541262], "xaxis": "x", "yaxis": "y"}],
{"barmode": "relative", "height": 600, "legend": {"tracegroupgap": 0}, "margin": {"t": 60}, "template": {"data": {"bar": [{"error_x": {"color": "#2a3f5f"}, "error_y": {"color": "#2a3f5f"}, "marker": {"line": {"color": "#E5ECF6", "width": 0.5}}, "type": "bar"}], "barpolar": [{"marker": {"line": {"color": "#E5ECF6", "width": 0.5}}, "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.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.0, "#f0f921"]], "type": "contour"}], "contourcarpet": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "type": "contourcarpet"}], "heatmap": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "heatmap"}], "heatmapgl": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "heatmapgl"}], "histogram": [{"marker": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "type": "histogram"}], "histogram2d": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "histogram2d"}], "histogram2dcontour": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "histogram2dcontour"}], "mesh3d": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "type": "mesh3d"}], "parcoords": [{"line": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "type": "parcoords"}], "scatter": [{"marker": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "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.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.0, "#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}, "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.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.0, "#f0f921"]], "sequentialminus": [[0.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.0, "#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": "", "zerolinecolor": "white", "zerolinewidth": 2}, "yaxis": {"automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "zerolinecolor": "white", "zerolinewidth": 2}}}, "xaxis": {"anchor": "y", "domain": [0.0, 0.98], "title": {"text": "without_gear"}}, "yaxis": {"anchor": "x", "domain": [0.0, 1.0], "title": {"text": "count"}}},
{"responsive": true}
).then(function(){
var gd = document.getElementById('18e80d74-6b76-4c2e-a519-a38665490330');
var x = new MutationObserver(function (mutations, observer) {{
var display = window.getComputedStyle(gd).display;
if (!display || display === 'none') {{
console.log([gd, 'removed!']);
Plotly.purge(gd);
observer.disconnect();
}}
}});
// Listen for the removal of the full notebook cells
var notebookContainer = gd.closest('#notebook-container');
if (notebookContainer) {{
x.observe(notebookContainer, {childList: true});
}}
// Listen for the clearing of the current output cell
var outputEl = gd.closest('.output');
if (outputEl) {{
x.observe(outputEl, {childList: true});
}}
})
};
});
</script>
</div>
col_min_maxs.append([-0.06, 0.06])
</div>
带档滑行¶
iplot(px.histogram(data_df, x='with_gear', histnorm='probability'))
</div>
<div class="prompt"></div>
<div id="bcf29a25-d13d-4fab-a161-24b52ab75d16" class="plotly-graph-div" style="height:600px; width:100%;"></div>
<script type="text/javascript">
require(["plotly"], function(Plotly) {
window.PLOTLYENV=window.PLOTLYENV || {};
if (document.getElementById("bcf29a25-d13d-4fab-a161-24b52ab75d16")) {
Plotly.newPlot(
'bcf29a25-d13d-4fab-a161-24b52ab75d16',
[{"alignmentgroup": "True", "bingroup": "x", "histnorm": "probability", "hoverlabel": {"namelength": 0}, "hovertemplate": "with_gear=%{x}<br>count=%{y}", "legendgroup": "", "marker": {"color": "#636efa"}, "name": "", "offsetgroup": "", "orientation": "v", "showlegend": false, "type": "histogram", "x": [-0.10782490836568412, -0.10412182093598024, 0.0003393574463732285, 0.0009481793813861106, 0.11540964232998653, -0.10312046038663536, 0.08105577911915939, 0.043196898300337794, 0.26637486745037225, -0.10811811450243816, 0.16862787668258794, -0.11047953794473277, 0.12543542972955854, -0.07624604716475174, 0.1550019977609759, -0.12476387343812716, 0.02539937082752756, -0.07942905612916434, 0.19375850174329265, -0.07025697525533753, 0.0483264899838248, -0.013262506175668707, 0.08524876237294537, -0.060171107758059464, 0.12204077154720044, 0.0014534883720930258, -0.044981486717561366, 0.02250177875298312, 0.09216650798688247, -0.054613754532264115, 0.08199606543524471, -0.00293887702558307, 0.12249177130318176, 0.062224412322966875, 0.20954063604240286, -0.022730135161112844, 0.07846510168165043, -0.06469495148603993, 0.11425102945943895, -0.06998265072546044, 0.08854854326203679, -0.06885696546629283, 0.12475931589081438, -0.09522923524641, 0.14080891884884625, -0.14064112682897212, 0.15344382553143346, -0.05538078538533221, 0.15173488055182496, -0.08369600627106047, -0.009956350031178562, 0.09830587528376353, -0.10905826668842826, 0.1429550139657926, -0.0961075342194794, 0.15974941268598278, -0.04903283850652272, 0.1739693706552084, -0.03838041061775134, 0.14940051525961154, -0.06575243267707626, 0.0025073805326535914, 0.026286289163552745, -0.022774025876978368, 0.11252399446453283, -0.04476094362137334, 0.1795285359801489, -0.04135439813793107, 0.13025770350692928, -0.05222120903203874, 0.1075334463448421, 0.01769052477267774, -0.060010970015291536, 0.12182798878802685, -0.13538156811703506, 0.16192664920219094, -0.08938752132787159, 0.17935922706892854, -0.10978970602401564, 0.09315616325416178, -0.1472204955437552, 0.2495836142284967, -0.056162237865330034, 0.08957066741823355, -0.08803949673514891, 0.11453845441518308, -0.02076053812465312, 0.1400717629980986, 0.05771708775864722, 0.08144227840389888, 0.00530505965116479, 0.1561823591227328, -0.03542402656319377, 0.14556761440827282, -0.053926960807758, 0.11821869677797073, -0.059831160835691864, 0.1405010540765799, -0.021962700218623118, 0.12976299580350947, 0.009028593811202495, 0.01573896353166987, 0.1617031027605555, -0.046205332411923, -0.03342112964588821, 0.140061238973943, 0.03156111412245227, -0.011174236168455823, 0.13412111206228855, -0.08570757330494203, 0.12603607608341685, -0.10310039460522412, 0.20685778971199914, 0.0235868495848025, 0.08076602488750642, -0.01748046643075973, 0.06609620721554117, -0.14025808552421568, 0.1885039455194033, -0.01668506931664826, 0.1492296249452042, -0.07269268134715026, 0.06045642702025891, -0.0921219050281747, 0.1351706176981991, -0.04442298955020445, 0.028133781423255108, -0.01635277204871799, -0.1163575137758226, -0.01710499764162914, 0.06256887744229518, -0.04908189875346135, 0.13346827822584867, -0.04483017250616093, 0.060576977521091674, -0.019804783701300108, 0.15450885548567644, -0.0650160394283161, 0.15769576804420693, -0.038555080721747376, 0.14605581785467875, -0.18533090440980732, 0.13967851811358045, -0.034835945295533244, 0.2083409577485407, -0.021008531074591174, 0.1279769797481291, -0.20398162286404914, 0.1538804359179694, -0.17253183853748266, 0.14143728690188867, 0.06685084673936073, 0.11535501542227958, -0.07056586243939261, 0.13324186362161045, -0.12624284537885178, 0.09835540399563412, -0.06239879896117044, -0.02892733676515612, -0.00024688099849265455, 0.1518733412034595, -0.04527692103091392, 0.04418054267090074, -0.009945009523053884, 0.03985527561637461, 0.11641088796261208, -0.033424379191090814, 0.035618349217276885, 0.13735843451784188, -0.04205760630519861, 0.14030273782470468, -0.05097389304359873, 0.12930534729847992, -0.0946254295532646, 0.22842315736324756, -0.08815687236739868, 0.09465852093089594, -0.08595985264063677, 0.12019863438857853, -0.08127542077516021, 0.1437792102306197, -0.0980912100925635, 0.14106843884660955, -0.06053698074974671, -0.010548972165133784, 0.1562768768934685, -0.02501864960297068, -0.029239954744849462, 0.021200297425214117, 0.08840675356101854, -0.0521279492134324, -0.022053342939678592, 0.013590503295816151, 0.17218136454482513, -0.0969876211281017, 0.2170294109697241, -0.13375778700440025, 0.14898869470081635, -0.11918784555818675, 0.180198603115872, 0.02215724618424246, 0.1134909962436795, -0.08503446768808066, 0.12394849955467982, -0.1114291354125543, 0.15192516083290702, -0.13817679975801572, -0.017341040462427744, 0.003862068965517218, -0.14115547213391644, 0.17277668376698108, -0.058186576701875735, 0.178584335261224, 0.080969225327202, -0.03298316150185221, 0.12540703527087635, -0.10789924186842748, 0.17011989412418208, 0.09121674627144877, -0.04920092276049918, 0.06583105715730905, -0.05976938610002885, 0.12429302676848199, -0.14787643111567048, 0.08619688303005063, 0.019495898640582262, 0.03677798852910627, -0.14567110598526273, -0.011455052346212968, 0.09941557268068517, -0.04838056979599427, 0.13268350168350168, -0.09714675457542343, 0.08001034895378546, -0.1349752551809465, 0.14420237008956827, -0.026149965575901275, 0.09244435263130713, -0.10472313683340886, 0.09535309173571227, -0.09769038214339616, 0.09122406942531833, 0.002894332235114358, 0.14266626563168794, -0.1039268788083954, 0.23213951776848785, -0.1818236643857634, 0.16089669329105946, -1.661487758945386, 0.2550383790001951, -2.7425925925925925, -0.1070566853709964, 0.08895274102079395, 0.07250753586848296, -0.015721470853451602, -0.10095023401625468, -0.1615009635177353, -0.053881760780172136, 0.011545040039092349, -0.08998300468906772, -0.1449819362964436, 0.035537062801232755, -0.09499661933739012, -0.1154214968144872, 0.04031795098255686, -0.0069292844347420566, 0.043969225613585065, -0.1897767332549941, 0.14306902502157032, -0.016787401574803157, -0.19016836578375312, 0.12603574273058812, -0.08704117988234321, 0.13594938013866334, -0.1056908305905342, 0.1232300446133852, -0.2672464334571037, 0.045503803344706106, 0.019762317928243955, -0.0943366349976417, 0.2119670905011219, -0.16631315678566247, 0.005794311251241052, -0.011257297308769204, -0.2713725774257936, 0.07892260987364733, -0.08734555385936457, 0.1006135232438723, -0.019536706648107718, 0.12983807439824946, -0.07808221117365255, 0.13639037240341514, -0.0361379644947625, -0.008813435940099841, 0.044350261975479165, -0.06756956358719733, -0.21461140485530728, 0.29340166559897496, -0.010649365264853564, 0.10870951654312264, -0.13060078537908215, 0.06749683045033429, -0.048594194823593576, 0.18131317434503666, -0.10350818475785448, 0.10482443703917596, -0.08011810688374946, 0.15476681313244356, -0.02526458656263675, 0.21652897952701414, -0.16165220945421607, 0.05587739463601532, -0.0732202134321493, 0.19168080827008024, -0.14334504293520686, 0.17133193995819876, 0.10055701476315553, -0.16347549749179718, 0.13118704846279594, -0.15952443175043296, 0.18403834449178333, -0.17277935565972144, 0.18252684152477494, -0.036968231110121, 0.08219355706634272, -0.005755621637266187, 0.11865084830241145, -0.03050582376425073, 0.1358534304529809, -0.12162825988329345, 0.023404214537355417, 0.059463367680522336, -0.16789536539433192, 0.11573636573636573, -0.0832529007617743, 0.0448581379420894, -0.12079679756004574, 0.08558579881656805, -0.1993110280951472, 0.1317180349438414, 0.004706764928907398, 0.04819140244408618, -0.18600101033820332, 0.13128537723086248, -0.11972835027628972, 0.16425432412107538, -0.10219681800808904, 0.03077302246234892, -0.12365904869843786, 0.06074746129777575, 0.09989805732702757, -0.09601695701061118, -0.04157025458418742, -0.07093195094388016, 0.09187156288806103, -0.151842202602081, -0.016224874650574622, -0.0493394478316041, -0.01471581527993196, -0.09502632743878288, 0.1562526521139399, -0.16610732657106414, -0.08664456337011528, 0.019167786468567368, 0.08297021065828251, -0.018227521313552302, 0.005146477797249194, 0.03975925925925925, -0.13326294239190187, 0.05263221127276327, -0.08642586964185332, 0.07204460914163333, -0.1247016980925929, 0.1169516869053334, -0.08614722969559546, 0.031919683054204936, -0.05263744513596544, -0.055501009109256524, -0.08266058515873469, 0.11348130053908355, -0.08363495079080402, 0.05402845758522912, -0.17092735570073267, 0.023084570931460883, 0.013394853388895234, -0.1762119880997544, 0.0696176489616355, -0.12469383922613746, 0.10666737278615493, -0.15255215383218945, 0.1260574785052482, -0.02829567627516373, 0.11828762630365836, -0.15934065934065933, 0.0602084351534625, 0.037155081135310734, -0.1197588640923255, -7.619674108183537e-05, -0.019759944821795383, -0.10736676443587008, 0.09991704540540786, -0.021928044193357088, -0.12662605735854146, 0.05303203068311392, -0.10205782312925173, 0.08464628912627703, 0.00020289446271321007, 0.11935724962630792, -0.006356152096614026, 0.07128832848746615, -0.13379789477843804, 0.1343294826720241, -0.12746970098547092, 0.052973909468645865, -0.10659610144623767, 0.0922922167735446, -0.05648857771596385, 0.06616326448244421, -0.0209285452809468, 0.06019879903449685, -0.039988517929694406, -0.12705638379929948, 0.052702752428613484, -0.0667465413248953, 0.08179934528482248, -0.04509168825991629, 0.14856709930117387, -0.17556008146639512, 0.0762647825594136, -0.05276070634037819, 0.06616862822553474, -0.1349268694123368, 0.14972622033242766, -0.006480096845403405, -0.14985548967428866, 0.08259764278572584, -0.018845708717157374, 0.08834368973644739, -0.035719267220751, 0.2375558589870904, -0.15752245048591462, 0.05825599705842386, -0.013179757354098612, 0.09981716694408138, -0.006298697555974342, 0.19345491110196994, -0.06467275287278013, 0.11905010243709692, -0.08128891706904681, 0.08218164211108807, -0.04116380820793161, 0.15305814237259366, -0.06014135447834339, 0.1301487414187643, -0.11933957040954656, 0.056805384244114326, -0.04451832225166225, 0.1227180527383367, -0.04427244582043344, 0.08899948651104002, -0.051515236724982864, 0.06915040802589766, -0.07795136802467653, 0.03600949170172652, -0.16468814772941398, 0.08759534979300994, -0.0379367681222656, 0.0928948675661176, -0.06841673544153465, 0.16418871252204584, -0.1779394455943829, 0.04057055313341666, 0.02547186221886713, -0.14326246679100266, 0.05369532428355958, -0.07032677619407199, 0.06457137677529542, -0.1045487422367808, 0.0807841927578702, -0.13813638499976671, 0.038152569974847735, -0.10787310979618672, 0.08214244219821076, -0.08486645551137767, 0.18755674498323405, -0.08093902213453356, 0.08234603198047552, -0.0841649170199393, 0.1125390343502282, -0.05503857989772366, 0.1121191459628204, -0.12114356232003293, -0.007142798359231442, 0.06979514671224715, -0.0811328087049451, 0.03716139032762754, -0.018418575836639372, 0.15632535529218616, 0.023854677438810614, -0.05217543604164904, 0.08783502652473907, -0.08448204453959195, 0.054518733119403584, -0.12756354361059727, 0.14673192270561985, -0.06837838886087731, 0.124047173664988, -0.10456622335344272, 0.03459810251966927, -0.17602307262080444, 0.04172103316777083, -0.13735277115090455, 0.13116901263335878, -0.04853766161240102, 0.0663660800800175, -0.14360892485521398, 0.0527755340779322, -0.16424242424242425, 0.10162389856006876, -0.09757959652748176, 0.12533428418612946, -0.12434904996481352, 0.09046161916418954, -0.09778160123798664, 0.10638693828937247, -0.1414483123159405, 0.23038489260487244, 0.030666485414422795, 0.019343332723614427, 0.049139988954803766, -0.016533304847829784, -0.025980428175411643, -0.003397981292606881, 0.020063148210103687, -0.09108521108521107, -0.03809486290576741, -0.027654381254576525, 0.03382348048322463, 0.01471239081203494, 0.0208894937330276, 0.007973666370477618, 0.02551459759736089, -0.003736959744658083, 0.11823712955904565, -0.04340996926828492, 0.1574851453360928, 0.11229450113378686, -0.02540677775907535, -0.013925217974513751, 0.02956698775811405, 0.17394408382817805, 0.2033733902642671, -0.06772421127259838, 0.1634980716851381, -0.09702093397745573, -0.015962674904844085, 0.011080096579252213, -0.32849698990270504, -0.0494157422564122, 0.10628114914162694, 0.33434473409399634, 0.12443027287127527, -0.04888269382132278, 0.06306597509333732, 0.022808623990676763, 0.08723856634556976, -0.050718580947737436, -0.08137363756960299, 0.06762298104579982, -0.05608327328061563, 0.04246244919972311, -0.02767912313831476, -0.06973602440803145, 0.05663977669548701, 0.006797671426386293, 0.121295983390621, -0.0057954648702672465, -0.060006181909944535, 0.09520818630910374, -0.004581678528193411, 0.1223962380118519, -0.05378847948931557, -0.07552041454480479, 0.09178999330488742, -0.00027307808242481296, 0.036913401064344466, 0.10455743879472693, 0.08773772777058647, -0.02707671871962676, 0.1408899424752012, -0.026334907481659675, 0.14135578579359856, -0.035718701700154565, 0.0041601650691312775, -0.033921088738087295, -0.054672524299893, 0.08320230130424598, -0.054503423393228535, 0.06735759805531832, -0.012221191730633879, 0.12454907521321182, -0.021352823158498124, -0.038207426376440465, 0.035071244623528064, 0.05345521992580817, 0.023485178727114208, -0.05842694439843728, -0.06902586681342872, -0.020883326398962454, -0.06551796945480602, 0.07895496732194125, 0.06464513799673141, 0.0007493859470242559, 0.05755294466357645, -0.07948979591836736, 0.052883539260453034, -0.12332688303186574, 0.04027818102634825, 0.21938394602340508, 0.031673062108699926, -0.013246733718630666, 0.13701584481983134, 0.056606851549755276, -0.08523763372207856, 0.10826569019130727, 0.02411471089660473, 0.15011649857429507, 0.029735262895106224, -0.07911514177905629, -0.06527173585964052, 0.04144956733993478, 0.042693675435913125, 0.11499975207021372], "xaxis": "x", "yaxis": "y"}],
{"barmode": "relative", "height": 600, "legend": {"tracegroupgap": 0}, "margin": {"t": 60}, "template": {"data": {"bar": [{"error_x": {"color": "#2a3f5f"}, "error_y": {"color": "#2a3f5f"}, "marker": {"line": {"color": "#E5ECF6", "width": 0.5}}, "type": "bar"}], "barpolar": [{"marker": {"line": {"color": "#E5ECF6", "width": 0.5}}, "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.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.0, "#f0f921"]], "type": "contour"}], "contourcarpet": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "type": "contourcarpet"}], "heatmap": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "heatmap"}], "heatmapgl": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "heatmapgl"}], "histogram": [{"marker": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "type": "histogram"}], "histogram2d": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "histogram2d"}], "histogram2dcontour": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "histogram2dcontour"}], "mesh3d": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "type": "mesh3d"}], "parcoords": [{"line": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "type": "parcoords"}], "scatter": [{"marker": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "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.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.0, "#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}, "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.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.0, "#f0f921"]], "sequentialminus": [[0.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.0, "#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": "", "zerolinecolor": "white", "zerolinewidth": 2}, "yaxis": {"automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "zerolinecolor": "white", "zerolinewidth": 2}}}, "xaxis": {"anchor": "y", "domain": [0.0, 0.98], "title": {"text": "with_gear"}}, "yaxis": {"anchor": "x", "domain": [0.0, 1.0], "title": {"text": "count"}}},
{"responsive": true}
).then(function(){
var gd = document.getElementById('bcf29a25-d13d-4fab-a161-24b52ab75d16');
var x = new MutationObserver(function (mutations, observer) {{
var display = window.getComputedStyle(gd).display;
if (!display || display === 'none') {{
console.log([gd, 'removed!']);
Plotly.purge(gd);
observer.disconnect();
}}
}});
// Listen for the removal of the full notebook cells
var notebookContainer = gd.closest('#notebook-container');
if (notebookContainer) {{
x.observe(notebookContainer, {childList: true});
}}
// Listen for the clearing of the current output cell
var outputEl = gd.closest('.output');
if (outputEl) {{
x.observe(outputEl, {childList: true});
}}
})
};
});
</script>
</div>
col_min_maxs.append([-0.02, 0.05])
</div>
data_df.describe()
</div>
<div class="prompt output_prompt">Out[28]:</div>
| distance | avg_speed | acs | acs_idle | idle_speed | smooth_speed | without_gear | with_gear | over_speed | economical_speed | sharp_turn | acceleration | deceleration | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| count | 633.000000 | 633.000000 | 633.000000 | 633.000000 | 633.000000 | 633.000000 | 633.000000 | 633.000000 | 633.000000 | 633.000000 | 633.000000 | 633.000000 | 633.000000 |
| mean | 0.229736 | -6.440642 | 0.042807 | -0.046857 | -0.060265 | -0.179363 | -0.003372 | 0.006495 | 0.000290 | 0.012537 | -0.000126 | -0.000056 | 0.000020 |
| std | 0.489846 | 28.344863 | 0.196066 | 0.128160 | 0.158991 | 0.502956 | 0.063343 | 0.165652 | 0.003622 | 0.210383 | 0.000283 | 0.000377 | 0.000121 |
| min | -0.426985 | -53.604094 | -0.994052 | -0.660708 | -0.529819 | -3.088889 | -0.176723 | -2.742593 | -0.015642 | -0.789326 | -0.004440 | -0.001327 | -0.001001 |
| 25% | -0.036451 | -34.058430 | -0.045746 | -0.121145 | -0.165821 | -0.565963 | -0.042504 | -0.068378 | 0.000000 | -0.123138 | -0.000224 | -0.000312 | -0.000039 |
| 50% | 0.148542 | -3.626165 | 0.000000 | -0.017720 | -0.039279 | -0.238453 | 0.000000 | 0.005794 | 0.000000 | 0.008953 | -0.000072 | -0.000044 | 0.000018 |
| 75% | 0.396871 | 20.102755 | 0.105704 | 0.016907 | 0.042837 | 0.227981 | 0.034733 | 0.098355 | 0.000000 | 0.169764 | 0.000008 | 0.000192 | 0.000086 |
| max | 8.932278 | 44.573739 | 1.556257 | 0.387177 | 0.471228 | 0.834543 | 0.467464 | 0.334345 | 0.047686 | 0.621732 | 0.001136 | 0.001022 | 0.000394 |
超速¶
iplot(px.histogram(data_df[data_df['over_speed'].abs() < 0.0005], x='over_speed', histnorm='probability'))
</div>
<div class="prompt"></div>
<div id="c880bbdd-f582-4107-b6ad-7e6f6dba61a5" class="plotly-graph-div" style="height:600px; width:100%;"></div>
<script type="text/javascript">
require(["plotly"], function(Plotly) {
window.PLOTLYENV=window.PLOTLYENV || {};
if (document.getElementById("c880bbdd-f582-4107-b6ad-7e6f6dba61a5")) {
Plotly.newPlot(
'c880bbdd-f582-4107-b6ad-7e6f6dba61a5',
[{"alignmentgroup": "True", "bingroup": "x", "histnorm": "probability", "hoverlabel": {"namelength": 0}, "hovertemplate": "over_speed=%{x}<br>count=%{y}", "legendgroup": "", "marker": {"color": "#636efa"}, "name": "", "offsetgroup": "", "orientation": "v", "showlegend": false, "type": "histogram", "x": [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.0004387889425186485, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], "xaxis": "x", "yaxis": "y"}],
{"barmode": "relative", "height": 600, "legend": {"tracegroupgap": 0}, "margin": {"t": 60}, "template": {"data": {"bar": [{"error_x": {"color": "#2a3f5f"}, "error_y": {"color": "#2a3f5f"}, "marker": {"line": {"color": "#E5ECF6", "width": 0.5}}, "type": "bar"}], "barpolar": [{"marker": {"line": {"color": "#E5ECF6", "width": 0.5}}, "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.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.0, "#f0f921"]], "type": "contour"}], "contourcarpet": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "type": "contourcarpet"}], "heatmap": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "heatmap"}], "heatmapgl": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "heatmapgl"}], "histogram": [{"marker": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "type": "histogram"}], "histogram2d": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "histogram2d"}], "histogram2dcontour": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "histogram2dcontour"}], "mesh3d": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "type": "mesh3d"}], "parcoords": [{"line": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "type": "parcoords"}], "scatter": [{"marker": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "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.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.0, "#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}, "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.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.0, "#f0f921"]], "sequentialminus": [[0.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.0, "#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": "", "zerolinecolor": "white", "zerolinewidth": 2}, "yaxis": {"automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "zerolinecolor": "white", "zerolinewidth": 2}}}, "xaxis": {"anchor": "y", "domain": [0.0, 0.98], "title": {"text": "over_speed"}}, "yaxis": {"anchor": "x", "domain": [0.0, 1.0], "title": {"text": "count"}}},
{"responsive": true}
).then(function(){
var gd = document.getElementById('c880bbdd-f582-4107-b6ad-7e6f6dba61a5');
var x = new MutationObserver(function (mutations, observer) {{
var display = window.getComputedStyle(gd).display;
if (!display || display === 'none') {{
console.log([gd, 'removed!']);
Plotly.purge(gd);
observer.disconnect();
}}
}});
// Listen for the removal of the full notebook cells
var notebookContainer = gd.closest('#notebook-container');
if (notebookContainer) {{
x.observe(notebookContainer, {childList: true});
}}
// Listen for the clearing of the current output cell
var outputEl = gd.closest('.output');
if (outputEl) {{
x.observe(outputEl, {childList: true});
}}
})
};
});
</script>
</div>
col_min_maxs.append(None)
</div>
经济速度¶
iplot(px.histogram(data_df, x='economical_speed', histnorm='probability'))
</div>
<div class="prompt"></div>
<div id="393067d2-d218-4211-b40b-dd04c2a6b71d" class="plotly-graph-div" style="height:600px; width:100%;"></div>
<script type="text/javascript">
require(["plotly"], function(Plotly) {
window.PLOTLYENV=window.PLOTLYENV || {};
if (document.getElementById("393067d2-d218-4211-b40b-dd04c2a6b71d")) {
Plotly.newPlot(
'393067d2-d218-4211-b40b-dd04c2a6b71d',
[{"alignmentgroup": "True", "bingroup": "x", "histnorm": "probability", "hoverlabel": {"namelength": 0}, "hovertemplate": "economical_speed=%{x}<br>count=%{y}", "legendgroup": "", "marker": {"color": "#636efa"}, "name": "", "offsetgroup": "", "orientation": "v", "showlegend": false, "type": "histogram", "x": [0.0, 0.0, 0.1279211695460213, -0.0033266321451470016, -0.02908057443464406, 0.11455842365999926, -0.35810231760935984, 0.13653699466056446, -0.18521316260561213, 0.17346938775510204, -0.2980026052974381, 0.21909547738693466, -0.315884476534296, 0.2191044616689032, -0.15244703380364752, 0.2307692307692308, 0.008953310840103298, 0.09071923718154963, -0.18155893536121676, 0.11363666140606855, 0.019245019562302127, 0.0021735056530381505, -0.17756762724082986, 0.26652675760755506, -0.21502590673575128, 0.2757267441860465, -0.059813116828910336, -0.08561169176014195, -0.2798053527980535, 0.1336675020885547, -0.23603031463314805, 0.08284332601531283, -0.19814701938315246, 0.11560081763761132, -0.11744467175004647, 0.2374957004904571, -0.0015334681408089301, 0.19137091162143355, -0.2035398230088496, 0.16654954321855234, -0.3373015873015873, 0.1563845050215208, -0.0890652557319224, 0.12448833548017747, -0.1834067928441794, 0.36464088397790057, -0.041493775933609964, 0.2820292347377472, -0.26661870669761645, 0.034671532846715335, -0.00040039821024187566, -0.24340949033391915, 0.3623376623376624, -0.7893258426966292, 0.3632358177070971, -0.4162826420890937, 0.1086048454469507, -0.2895791583166333, 0.1492295214922952, -0.09311831153388822, 0.164969450101833, -0.051685434101369, -0.19718309859154928, 0.07437457741717378, -0.133587786259542, 0.13285457809694792, -0.2509433962264151, 0.09416275448086704, -0.15886618325642715, 0.16189697465249386, -0.2574787483613848, 0.0, 0.41090186822684666, -0.1998097050428164, 0.23548922056384744, -0.2307692307692308, 0.3596421496542877, -0.16597387476637426, 0.2012012012012012, -0.14173383265029701, 0.12180579216354345, -0.13241563231153586, 0.15930232558139534, -0.17126867173974314, 0.07803790412486064, -0.306553911205074, 0.2272727272727273, -0.13474576271186442, 0.12398606516952056, -0.14303059532270618, 0.055743243243243236, -0.13713987416920284, 0.2836561923245623, -0.25111421878359, 0.19047619047619047, -0.212680795210574, 0.1042311661506708, -0.1720883323177778, 0.21693548387096773, -0.03886105442854537, 0.050910693301997656, -0.04376199616122842, -0.1027128462802366, -0.012876114753144034, 0.13823529411764707, -0.14365527729899624, -0.03409671993811299, 0.14547206165703275, -0.2604765398883046, 0.2551848512173129, -0.07210696080721221, 0.23632993512511585, -0.09258674248407307, 0.051370715649118916, -0.06279253670734575, 0.19838150426294915, -0.08206650220988798, 0.19899641537719945, -0.21419306020970705, 0.3491175491175491, -0.2299016190811553, 0.20281273131014066, 0.01921370476457579, 0.17543859649122806, -0.21505376344086025, 0.15, -0.0603165109744057, 0.0067767921403823475, 0.09856988442670657, -0.03434524568529553, -0.12450377798479065, 0.04470198675496689, -0.08622260521437836, 0.030274295510553956, -0.0929265047279316, 0.13223854796888504, -0.03981623277182236, 0.3015345831415938, -0.06790116449028362, 0.14660493827160495, -0.11428455471529647, 0.17812061711079946, -0.22113706608355588, 0.2519809825673534, -0.23946915771560326, 0.1198403209791485, -0.21355180688602415, 0.1741511500547645, -0.04842101598133769, 0.19109461966604824, -0.08295023560510288, 0.08728179551122195, -0.20219244823386115, 0.2172284644194757, -0.055998642707503474, 0.18251273344651955, -0.0565304436444332, 0.08626810354166486, -0.050225431518591934, -0.04588680513375082, -0.2917874396135265, 0.22841225626740946, -0.027965797685238325, 0.1606484893146647, 0.03225994906670287, -0.20061786872131698, 0.22160148975791435, -0.03339232996007209, -0.11407176364288985, 0.13745980707395494, -0.08575068355219058, 0.2684157416750757, -0.18390849447321336, 0.192, -0.11714266586977228, 0.22105263157894736, -0.3863741174792593, 0.19748305905130686, -0.1730229671011794, 0.07991513437057991, -0.3034724006300717, 0.17739130434782607, -0.1122107860588441, 0.1408308004052685, -0.05561920309395056, -0.019185612862233758, 0.2351632047477745, 0.01658543265327625, -0.09430919705799368, -0.12337164750957855, 0.13083451202263086, 0.03118638531030816, -0.10231577955221158, -0.08577268363094849, 0.14417744916820702, -0.18618888732051744, 0.09839572192513367, -0.21416536990985133, 0.20009257507019848, -0.14124387108141515, 0.12299607736657844, -0.10995548983510893, 0.19217554021006533, -0.4075260460521399, 0.27293064876957496, -0.1847382965609755, 0.3114224137931034, 0.22586807690730945, 0.0, 0.18496110630942086, -0.3131958793327573, 0.16976351351351351, -0.13202437373053486, 0.0, 0.04307857779072439, -0.1438939589428032, 0.1455004205214466, -0.35246842709529275, 0.02775644758505341, 0.04177297868200895, -0.006213454729387946, 0.4312267657992565, -0.07955441805823614, 0.3590772316950853, -0.11755498327058027, 0.2028343666961913, 0.038861039606196086, 0.3836156046887976, 0.013879830930778214, -0.07526559010701055, 0.1455004205214466, -0.4571759259259259, 0.2764578833693305, -0.15669292845691685, 0.125, -0.1030411178010379, 0.33439847360767644, -0.3083780922377731, 0.2581005586592179, -0.23066770497529246, 0.3944773175542407, -0.2380283358219873, 0.0111731843575419, -0.3218884120171674, 0.15873015873015872, -0.20200758878211508, 0.0247320692497939, -0.025343983090461958, 0.6217320261437909, -0.11511883699183978, 0.0, 0.2052646899109139, -0.04621499684940139, 0.08981119227709644, 0.08143407770073957, 0.3302629282989504, 0.040687090302448235, 0.09158483697728242, -0.016215333157055305, 0.0, 0.0, 0.0, 0.0, -0.2435109924039702, -0.10650508687602968, 0.4283426741393114, -0.5566582574230758, 0.4472972972972973, -0.2290388265746333, 0.0, 0.21774856203779785, -0.09322033898305083, 0.2638198414671196, -0.1978659243794943, 0.18386688281561292, -0.035943083149047775, 0.22322775263951736, 0.011898735947200615, 0.02692907758198887, 0.3382352941176471, -0.14706137070424752, 0.13933849401829698, -0.1034930954224476, -0.047960065268955736, 0.18962075848303392, -0.08011350520776256, 0.19730941704035876, 0.06775763223842675, 0.1846458650292287, -0.4444872355944566, 0.07065217391304347, -0.42668136714443217, 0.14187527275410056, 0.028792392580992456, -0.011385422242334506, 0.0, 0.24242424242424246, -0.5194805194805194, 0.2161560737891876, 0.03612110790220621, 0.14893617021276595, -0.224190869364574, 0.17916041979010494, -0.0659538412841888, 0.18723404255319148, -0.08433768371179111, 0.1647062016758064, -0.2445947060278717, 0.2029102667744543, -0.09386973180076627, 0.2325581395348837, 0.014865203761755487, 0.22570532915360506, -0.06753969345335688, 0.3946135831381733, -0.24105263157894735, 0.0, 0.34297108673978066, -0.3401360544217687, 0.2838773491592483, -0.41391509433962265, 0.289588801399825, -0.16433109297180826, 0.13857948322181468, -0.13077205474167727, 0.2397881996974281, -0.1871657598141553, 0.3421121949211837, -0.17540687160940324, 0.17998779743746188, -0.02049459669783293, -0.20469475654600053, 0.20087884494664154, -0.03108003108003108, 0.13366336633663367, 0.019884003905396148, 0.2614754098360656, 0.07024852071005916, 0.2834101382488479, -0.08718395815170009, 0.10557919762098156, -0.1015580284779294, 0.35651074589127685, -0.4692982456140351, 0.2945859872611465, -0.34416243654822337, 0.20539906103286384, -0.2658482434903612, 0.09267563527653214, -0.03742382319426346, -0.2633559066967645, 0.09727504908584644, 0.08141036884202005, 0.13578826237054084, -0.2636804446809769, 0.13085106382978726, -0.10336957004037804, 0.2488408037094281, 0.05334717566418172, 0.3203187250996016, -0.2254509018036072, 0.26763717805151177, 0.02560911998893937, -0.10737822682538274, -0.24975984630163306, 0.0591830389034067, 0.2314622314622315, -0.3887654320987654, 0.1645070422535211, -0.2495201535508637, 0.3876560332871013, 0.04546863551823254, 0.5024295432458697, -0.298653466281568, 0.2127659574468085, 0.0, 0.09648127128263337, 0.19882179675994108, 0.217425431711146, -0.4968202493261456, 0.05759539236861051, -0.05764893589790991, 0.20477386934673367, -0.02275316390148925, 0.05572363664040797, 0.06724137931034482, -0.028142589118198873, 0.2202546245426734, -0.14087886199215566, 0.3728222996515679, -0.17825758033384825, 0.12922344549726492, -0.13613613613613615, 0.12463851937536148, -0.6139315230224321, 0.05634881374867647, 0.20933014354066987, -0.2652534637996958, 0.06589072316435007, 0.380650277557494, -0.18729645400401, 0.010380238285061572, 0.2197452229299363, -0.016466999363236534, 0.18666666666666668, -0.2567873303167421, 0.09336609336609336, -0.104582399103139, 0.0976730627542685, -0.0799073113319963, 0.3240223463687151, -0.06411351079859366, 0.22520661157024796, -0.05753644892745451, 0.1186376021798365, -0.029758162538245526, 0.19787408013082586, -0.05513024430783117, 0.040014019978941724, -0.10888252148997137, 0.0, 0.05368927697367438, -0.048222696496909016, 0.20757967269595176, -0.04462850520941807, 0.04827586206896552, -0.07643648404751667, 0.3279022403258656, -0.037068802659916134, 0.17130144605116795, -0.1896341392571249, 0.19971570717839374, -0.0649475671191957, 0.0, 0.21658986175115208, -0.09510146103218678, 0.07203862379516024, -0.17618231350821878, 0.21551081282624907, -0.12313803376365445, 0.15597147950089127, -0.04225546720930525, 0.2372025955299207, -0.21148683117918013, 0.18522930315664085, -0.05098039215686274, 0.2592178770949721, -0.07833030958005739, 0.3021346469622332, -0.12999733198944655, 0.05246348081178225, -0.2199018876199436, 0.18038528896672504, -0.04914187643020596, 0.1122956645344705, 0.04802604529772439, 0.17269076305220885, -0.2261663286004057, 0.2554385964912281, -0.02150333767823992, 0.1503957783641161, -0.03354305120837518, 0.3063791554357592, -0.08725957296629609, 0.2540229885057471, -0.04579424643146319, 0.24957841483979765, -0.11957796014067995, 0.15728476821192053, -0.09285714285714286, 0.3711240310077519, 0.0259015769600462, -0.03599785423548485, 0.11431588534783672, -0.07575953458306399, 0.011539342124535876, -0.006353375029220515, 0.07869974337040206, -0.149895178197065, 0.1465576005453306, -0.33273163649065834, 0.38, -0.2858216180628171, 0.2668231611893584, -0.2485549132947977, 0.24093655589123866, -0.0008029699337579049, 0.26063829787234044, -0.017895748258467445, 0.19572368421052636, -0.0793021643948316, 0.0, 0.16107066144511314, -0.06061245102500639, 0.3458904109589041, -0.11145910752896517, 0.130844164869684, -0.08447488584474885, 0.07663301193068292, 0.3880126182965299, -0.19654311570333896, 0.05216095380029806, -0.18806214227309892, 0.15090252707581228, -0.15565068764144524, 0.3600305110602593, -0.16518847006651885, 0.2928270042194093, -0.3741819891759153, 0.4313131313131313, -0.05761359294689265, 0.4148003894839338, -0.23921873875297975, 0.30103271170378393, -0.19816053511705686, 0.26999266324284665, -0.1606202824276523, 0.3505050505050505, -0.6501182033096927, 0.1741654571843251, -0.3286384976525822, 0.6183908045977011, -0.3090750131141808, 0.421875, -0.24214659685863876, 0.1757779646761985, -0.14530776992936428, -0.2543422112076628, 0.1905828912871166, 0.02187527835675984, 0.06664188240453256, 0.16817474366253632, -0.05846853035987954, 0.1683673469387755, 0.5168660968660969, 0.22979041916167664, 0.2591590737795277, -0.4608855920105293, 0.14437269492073765, -0.041368356294625375, -0.04792299282470891, -0.13382737304121228, 0.03709379311803973, -0.0767894091410552, 0.14404894327030032, -0.4152005629838142, 0.0, -0.054807692307692314, -0.008333333333333333, -0.5330293726198163, 0.1440273037542662, 0.1299535880042842, 0.38461538461538464, 0.08616404308202154, 0.0, 0.20730897009966776, -0.1624355091578159, 0.16251100844056846, 0.17019183472700442, -0.24287604077503694, 0.11294964028776977, -0.3321976149914821, 0.23638286620835536, -0.2446056445079222, 0.0, 0.026870172698082097, 0.0, 0.15776815776815778, -0.3271280634091531, 0.11923252626770214, -0.1840747236507404, 0.0, 0.14307303273258434, -0.09009009009009007, 0.12112541726275633, -0.5142680838908068, 0.0, 0.21816105082809825, -0.22618207480592806, 0.2691924227318046, -0.1320754716981132, 0.0, 0.20650049137854012, -0.43406113537117896, 0.0, -0.3766037735849057, 0.0, -0.3668193434896611, 0.18231495280675608, -0.2118266119680477, 0.20074074074074075, -0.2953984699542755, 0.2679031427099433, -0.12263813394148275, 0.0, 0.09442304633941838, -0.46796657381615603, 0.13685193834656706, -0.4046492784092153, 0.0, -0.38041949616902176, 0.07417027589354902, 0.0, 0.0, -0.2241880535998183, 0.12950450450450451, 0.0, 0.25208140610545793, -0.09180357363739614, 0.1583372255955161, -0.1276054383304634, 0.08271515014463875, 0.1692836113837095, -0.6374288154754931, 0.0061224489795918356, -0.12220580774166592, 0.08849557522123894, -0.03967391304347826, 0.08930041152263374, 0.024057738572574174, 0.1569674319273892, -0.3652507102555781, 0.0, 0.14518535244173114, -0.30683504549308, 0.11979166666666667, -0.3431526560354842, 0.14889745348023706, 0.008620689655172414, 0.028946134288987832, -0.1689709288276229, 0.08526785714285715, -0.08488124163236971], "xaxis": "x", "yaxis": "y"}],
{"barmode": "relative", "height": 600, "legend": {"tracegroupgap": 0}, "margin": {"t": 60}, "template": {"data": {"bar": [{"error_x": {"color": "#2a3f5f"}, "error_y": {"color": "#2a3f5f"}, "marker": {"line": {"color": "#E5ECF6", "width": 0.5}}, "type": "bar"}], "barpolar": [{"marker": {"line": {"color": "#E5ECF6", "width": 0.5}}, "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.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.0, "#f0f921"]], "type": "contour"}], "contourcarpet": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "type": "contourcarpet"}], "heatmap": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "heatmap"}], "heatmapgl": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "heatmapgl"}], "histogram": [{"marker": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "type": "histogram"}], "histogram2d": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "histogram2d"}], "histogram2dcontour": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "histogram2dcontour"}], "mesh3d": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "type": "mesh3d"}], "parcoords": [{"line": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "type": "parcoords"}], "scatter": [{"marker": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "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.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.0, "#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}, "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.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.0, "#f0f921"]], "sequentialminus": [[0.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.0, "#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": "", "zerolinecolor": "white", "zerolinewidth": 2}, "yaxis": {"automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "zerolinecolor": "white", "zerolinewidth": 2}}}, "xaxis": {"anchor": "y", "domain": [0.0, 0.98], "title": {"text": "economical_speed"}}, "yaxis": {"anchor": "x", "domain": [0.0, 1.0], "title": {"text": "count"}}},
{"responsive": true}
).then(function(){
var gd = document.getElementById('393067d2-d218-4211-b40b-dd04c2a6b71d');
var x = new MutationObserver(function (mutations, observer) {{
var display = window.getComputedStyle(gd).display;
if (!display || display === 'none') {{
console.log([gd, 'removed!']);
Plotly.purge(gd);
observer.disconnect();
}}
}});
// Listen for the removal of the full notebook cells
var notebookContainer = gd.closest('#notebook-container');
if (notebookContainer) {{
x.observe(notebookContainer, {childList: true});
}}
// Listen for the clearing of the current output cell
var outputEl = gd.closest('.output');
if (outputEl) {{
x.observe(outputEl, {childList: true});
}}
})
};
});
</script>
</div>
col_min_maxs.append([-0.35, 0.4])
</div>
急转弯¶
iplot(px.histogram(data_df, x='sharp_turn', histnorm='probability'))
</div>
<div class="prompt"></div>
<div id="dcb37b92-fc8e-484e-ac46-2f7d23587d16" class="plotly-graph-div" style="height:600px; width:100%;"></div>
<script type="text/javascript">
require(["plotly"], function(Plotly) {
window.PLOTLYENV=window.PLOTLYENV || {};
if (document.getElementById("dcb37b92-fc8e-484e-ac46-2f7d23587d16")) {
Plotly.newPlot(
'dcb37b92-fc8e-484e-ac46-2f7d23587d16',
[{"alignmentgroup": "True", "bingroup": "x", "histnorm": "probability", "hoverlabel": {"namelength": 0}, "hovertemplate": "sharp_turn=%{x}<br>count=%{y}", "legendgroup": "", "marker": {"color": "#636efa"}, "name": "", "offsetgroup": "", "orientation": "v", "showlegend": false, "type": "histogram", "x": [-5.354360696327442e-05, 0.0011356795408646047, -0.0001273087525289416, 7.812887340085771e-05, -6.391367706582987e-05, -3.31955347559837e-05, -0.00011736023758973364, -0.0008990449959065418, -5.814886650284265e-05, -0.0005606586203901054, -5.2940003386417575e-05, -0.000182042342279323, 0.00025982716380673425, -0.00020573316881774994, 0.0001219693886517838, -0.000523515875156413, -0.0001919066460423504, 3.4851497777186084e-05, -2.52104235538427e-05, -0.00012308136080160637, -0.00028914788298432483, 2.115623525318584e-05, 6.140656941342265e-05, -0.00017692383813926342, 4.824656627703672e-05, -0.0002362893454414539, -5.616110158301698e-05, 5.890280368901033e-05, 7.358723045811636e-05, -0.00043523012766572266, -1.4613667777552966e-05, 0.00030086893218086774, 0.0, 0.0, -4.73243615884566e-05, 0.00015187927139303036, -1.9315402547671948e-05, -0.0002753171138714666, 0.0, -3.4037620103052775e-05, 0.0, -0.00041926383729642296, 2.2164593697460768e-05, -0.00015327809015315108, 0.00010086342574366645, -0.00044519628424273983, 6.161643189184123e-05, -0.000433764713086409, -5.7912044481720814e-05, -9.418399160379333e-05, 8.324211112290996e-05, -7.348497600142469e-05, -9.471141399280194e-05, 5.33492742636876e-05, -0.00016384927490057725, 0.0, -0.00048572737007812226, -1.1381150284659695e-05, -0.00041597049542894986, 6.701007652439489e-05, -0.0003436014765543601, 5.588216204484673e-05, 4.467543085901872e-05, -0.0006243372407860943, -4.368117982793708e-05, -0.00011091795974855332, 6.618598875404151e-05, -0.00029036425771605465, -7.341998936942994e-07, -0.00016619288745524572, 6.783626603638017e-05, -0.0002121381257575109, 0.0, 1.2329022790063776e-05, -0.00034807058465675283, 0.0, -0.00014365363911122552, -1.5032814619831171e-06, -0.0003488618532650686, -5.151880880369029e-05, -7.512127696071078e-05, 3.763077037880466e-05, -0.0002365906740371152, -0.0001969718071540838, -0.00016426247976260189, 1.7335224019300634e-05, -0.00037336212528893084, 5.798772969405174e-05, -0.00034127881709767764, -7.664599806405584e-05, -9.435787943719587e-05, 0.00017442328950457745, -0.00010836996038388045, -0.00010806247996507328, -0.0004078371663635336, -5.5253452166189346e-06, -0.00021226292900871266, -4.987133503008068e-05, -0.0003539557729351982, -9.336980932308309e-05, -6.206468979457985e-06, 1.0640764826477315e-06, 6.45683392412454e-05, 1.4391277844855675e-05, -0.0004863901786808471, -5.01111923098712e-05, 2.0480387030553758e-05, -0.0005349988368709496, 5.115381579535941e-06, -0.00042948012371177015, -1.4731541431673535e-05, -0.00022906138834524937, -8.013060841162591e-05, -6.729370029260088e-05, -0.00019062776197551729, -0.00020222135709082649, -0.0001388517511643602, -1.5654359477403014e-05, 7.697520263259881e-05, -0.00021923171481204624, 0.0, -0.0002738357319812689, 5.023354625280413e-05, -0.00014655326894512708, 0.0, -0.0005717805764927445, 0.00013781224825003477, -3.8752765285490256e-05, -0.00030015957950618613, -2.8564228436866394e-05, 1.4080537036610497e-06, -0.00024741624221971984, -5.342926815352144e-05, -0.00023187214508600245, -0.0002569609625770645, -0.00021405133687343227, -8.731893203947131e-05, -0.00014980008052568295, 4.980617833806194e-05, -0.0005150590233558109, 2.356794176054002e-05, -0.0002195043383111812, 0.0002507065115393378, -0.0003966797393083589, -4.746442965996144e-05, 0.0, -1.2461707936817012e-05, -0.00021077756606156561, 0.0, -0.0003937768080865558, -4.49538521168215e-05, -0.00018999048226479598, 5.6746786438808215e-05, -6.963439147952736e-05, 0.00011067159498341, -0.0002862152424616225, 2.8850251755389674e-05, -0.00026539040157037136, 4.183019640370477e-06, 5.6517344396370655e-05, 6.101696080503346e-05, -0.00038025570378107245, 8.404100777738825e-06, -0.00033171834956758424, -1.2503915935837448e-05, 9.044463587619023e-05, -0.00025080498570704017, -3.30264344685594e-05, -1.1595761986082245e-05, -0.0003112701933049899, 0.00012152248981229374, -0.00017111405794499636, 6.494192624898868e-05, -0.00032044500955467946, 1.5127586581067023e-06, -9.017239289483776e-05, 0.0001177882068512058, -0.00012232592272980164, 5.5897582786926516e-05, -0.0001310415462907709, -0.00010572318516833256, -0.0002024406658390245, -0.00011748000155065444, -0.0004316801713906249, 8.788942907947529e-05, 9.163992422065088e-05, -0.0001926303672859664, 2.9082322292240253e-05, 8.343424797481176e-05, 0.00012705628601629958, -0.00015336974233399922, 0.00011209688934302849, 0.00012204694457175129, -5.035664464710471e-05, -0.0002889146390059045, 0.00015486147911663068, -6.51920649922894e-05, -0.0001303935194118077, -0.00031336437713423406, 5.496368376980528e-05, 0.0, 0.0002156068266495926, -0.00018981379752059808, 0.00012670563829874094, -0.0001650638037530973, 4.834764730948755e-05, -0.00020229489964850304, -0.00023558056475570717, 3.730502653325298e-05, -0.0002424108187497333, -4.919682515837477e-05, -0.00034291817420314816, -3.9864896385808086e-05, -0.0011784691406646409, -0.00016691837789757958, 6.7316987643839825e-06, -0.0006676230759456537, 8.329223106490846e-05, -0.00011077683609611102, -0.00030143130302238475, 0.00019487494959258676, -0.0002743457365659535, 0.00023079814468562133, -0.00025591072524960764, -0.00021474471692645923, -0.00026085117467345364, -0.00011994193572364993, -0.00046745408259574563, 6.20580926824818e-05, 3.9873728416570384e-05, -0.00019890899388930503, 6.560425657029052e-05, -0.00041081333473840735, 5.84456472917616e-05, -0.00039927357456995337, -5.574944694370528e-05, -0.00021751775037506842, -5.9531522971835084e-05, -0.00021017244362243597, 0.00021194476748287938, -0.00017723729132434598, -6.048891144918943e-05, -0.0005547573783675989, 0.00013910628186834562, -0.0002198777963259982, 0.00014954205554586536, -0.00034791664029031565, 0.0, 0.0, 1.4063493339930088e-05, -0.00028040478340107523, -0.00014501343466633032, 2.9558135260494256e-05, 0.0, 3.8132258273356485e-05, -4.4926681990181874e-05, 4.4472729791608015e-05, 0.0, -4.823724958945214e-05, 0.00024997528784343544, -0.0019277407732516247, -0.00021731873052253828, -0.00014040806073272586, -0.00012721455619486898, -0.00021041369349263583, -0.00044174195027227607, 4.857864773524185e-05, 0.0, 2.868959019695603e-05, -0.00045919254550382655, -0.00045307886277166985, 0.00015662008999202363, 3.86789825635436e-05, -0.00019437917613606543, 2.6510970914910446e-05, -3.483947150875345e-05, -0.0001771021358217729, -0.0001901402792655196, 5.0409976681065584e-05, -0.00043521884501822886, 0.0, -0.0003813199378596159, -0.00015938255206808817, -9.370349495700085e-05, -0.00026093323600740934, -1.3811053231122315e-05, -0.0001906585925562618, -0.000245700942719311, -0.00012337317890308804, -6.357859244328614e-05, -0.0004234726751514412, 6.576487158299095e-05, 0.00010166566856194753, -1.7713201933242603e-05, 9.227700924801228e-05, 0.0, -0.00031873836737174316, 0.0, -0.00011337170263552228, 4.60400921290985e-05, -0.00019579577588082388, -0.00019199122943229572, -4.899020716209178e-05, 8.990733766138441e-05, -0.00014504065888501047, 5.841383404122108e-05, -0.00037358630183662966, 7.154733704357695e-05, -0.0001870422301688482, -5.196199485824459e-05, -0.0003285606024399348, -0.00019253389044102958, -0.0003483302831512281, -4.266429573569633e-05, -0.00040263594754653503, 5.996796289153295e-05, 0.0, -0.00031745431023072343, 5.5556573500897476e-05, -0.0002876908115168897, 0.00014817554069629629, -0.00031320273464361363, 5.8276433734389065e-05, -0.0004963964221088674, 3.961669685988079e-06, 4.491680880317077e-05, -0.00037110589717581264, -0.0002856876251479937, 2.8433716306853486e-05, -0.00046692873852840605, -5.696457751538838e-05, -9.38148447304568e-05, -0.0006422663072598958, -0.00015554649922729262, -0.00024119157444548315, -9.803195503599091e-06, -0.00016960840793234537, -0.00015353205419090212, -0.0003756937914049994, -8.275169098467599e-06, -0.000166285557226241, 0.00010603741702793963, -0.00022640945934543707, -0.00019005637423459662, -0.0002074705626883334, 7.323035346727109e-05, -0.0003895880196374645, 3.1948186299558645e-05, -0.0004352688753457277, -5.7946322880780235e-05, -5.469141590965296e-05, -0.0001644658779364118, -0.00014712620312687174, -0.00019528163258898955, -1.5134023437229379e-05, -0.0004755706039330415, -0.00020710859220808095, -7.379540437565306e-05, -0.00021051309943643148, -0.00032743447983127674, -5.8894140858565306e-05, -0.000190403556303678, -7.206520817563024e-05, -0.00014974069822761108, -0.00017058621333236742, -3.7274104071204795e-05, -0.0003084231546871257, 0.0001331890458836863, -0.0005191610372080111, -0.00023196474492584825, -0.00019543709259830282, -0.0001453746588293992, -0.00036533420622946155, -0.00018560570812218942, -0.00013629608193768791, 3.464101564534375e-05, -6.339426040991689e-05, -0.00014476497072091448, -0.00014322284098285245, 5.931543513856049e-05, 4.327932987189999e-05, 9.425685219159919e-05, -0.0001417896593707666, -0.0002491463269351397, 3.268678310851033e-05, -0.00029130611786818165, -5.5806565363107276e-05, 6.46206538300022e-05, 0.00011263536867667927, -0.00034265892280632357, 1.0916525920985733e-05, -0.00026466534677247865, 7.874791885208683e-05, -0.0003385494322337857, -6.207721184455426e-06, 3.7076047025005636e-05, -0.0004335477800277279, -0.0001907093698696161, -9.266325240128427e-05, -0.0002625712907681113, 0.0, 5.236892619647681e-05, -0.00044895718402314356, 4.067440996999389e-06, -9.564033625115828e-05, 6.953270140076715e-05, -0.0004502372449751901, -1.9700278979185515e-05, 7.913208876568599e-06, -2.466513120072136e-05, -0.0004952962673443995, 0.00017156882869109796, -0.00036556658264333484, -1.6418134220209993e-05, -0.0001997692739101808, 2.453039083086085e-05, -0.00012801553597631814, 0.0, -8.113500205922653e-05, 3.64449668142073e-05, 0.0005143364244387797, -0.0004110774129119976, 0.0, -0.00011414780770313875, 0.0, -0.0002958557663676502, -5.331275182545481e-05, 0.0, 0.00011759672759877714, -0.00015051609256216752, -5.106412907497115e-05, -0.000504817484884627, 4.876631155842346e-05, -0.0009929678517881866, -0.0001885263729047532, 7.207510885717214e-05, -0.0004185267208951746, 6.471566771738378e-05, -0.0007472796288433278, -3.1441331774578594e-05, -0.0005421936170608778, 0.0, -0.00015913029079014625, 7.473439874920005e-05, -0.0007927164480800973, 0.0, -0.00034137965487962665, -0.00014329977262574794, -0.0003515872018551709, -0.00013986101893049752, -0.00018176154819866524, 9.134073670820448e-05, -0.00013989679517825726, -4.595379526938994e-05, -0.0006096651063328262, -2.1773438621505453e-05, -7.24909563985268e-05, 7.997171297389109e-05, -0.00022719387395535195, 5.863147606773028e-05, -0.00023682329175795289, -7.829301044224275e-05, -0.00011469540341055241, -0.0003272967119979921, -0.00037613814310504353, 5.318565031171613e-05, -0.0002396123527419023, 6.195636163756516e-05, -0.0002906495956321252, -2.0062157045324253e-05, -0.0001870130160829449, 5.182879352152902e-05, -3.9089853657892345e-05, -0.00032294624993651436, -7.058858963049143e-05, -0.0001438213556026266, 0.00013364334682662256, -0.0002243249728964204, 0.0001283101875677477, -0.00034859492955228847, -7.482757717833127e-05, 7.972519254594211e-05, 6.44658816369606e-05, -0.00022496468766996104, 3.648198905487137e-05, -0.0006951076342585562, -8.779306193369918e-05, -8.631966355013912e-05, 0.0001097334404141073, -0.0004093193026298375, -6.990470521461807e-05, -0.00023476933086129332, -7.012158919006305e-05, -5.991591376021821e-05, -0.00022737860609846875, -0.00017891759334944348, -0.00014002121624247002, 0.00019781666056718203, -4.927250467311024e-05, 0.0, -1.0638102433269476e-05, -0.0006875864788194009, 7.235279553743351e-05, -0.00014062072925584616, 0.00011457666459133423, -0.0003980230968343498, -0.00016756516794533898, -0.00016905580332001908, -4.129848498245744e-05, -0.0003996731439163991, -1.1834655445115252e-05, -0.00028389363261936744, 0.0001825112912193407, -0.00023512783301396148, 4.144617741363772e-05, -0.0001466485656587065, -0.0002050364733684833, -0.000313371268620428, 0.0001709493869611919, -0.00039041950424385113, -0.00010860472466491317, -0.00015566573999983366, -0.00013363285940078072, -9.43607171110782e-06, 0.00013200432285608723, -0.0002939582218735507, 0.0, 8.26811842326868e-05, -0.00024964438550993293, -2.001212531777509e-05, 0.0, -2.850622632425777e-05, 0.0, -0.0019105927724985968, 0.0, -0.004440218588155218, 0.0, 5.376363120712544e-05, 0.0, 0.0, 0.0, 4.963719125366702e-05, -1.8266033125975e-05, -7.899998407405649e-05, -8.372875126001239e-05, 0.0001412553580128056, -0.00015717467484100745, 7.702639829759799e-06, 0.0, -2.0888939844852545e-05, -0.00010065194019631884, -0.00033269660460325516, -0.00017705194103043663, -0.00010840273623604664, 0.0, -9.128719427906391e-06, 4.6358090513351757e-05, -9.177802413127891e-05, -0.0003153671453706109, -4.4189303536277174e-05, -0.00014671135789530744, -9.460191143042316e-05, -0.00010529400169390948, 4.094514129316646e-05, 0.0003058914810996726, -3.4083726415094376e-05, -0.00024749388120416275, -0.0002059015757774484, -4.3551651955509385e-05, -0.00016500602095317543, 2.8015177840875536e-05, 0.0, -0.00018908506037057456, 0.0, -0.00030782752553602685, -1.2578698476666534e-05, 0.0002454674567102184, -0.00010526504626892347, -9.00404083066879e-05, -0.00027449668027280553, 0.0, 0.0, -0.0002090642852054156, 0.0, -2.3273507462555974e-05, 7.154698194385667e-05, 0.0, 0.0001095652159187355, -0.0001988500641942305, 2.8306596265643685e-05, -0.0002590921621203996, -0.00013901783387361202, 0.0, 0.0002234746296591933, 0.0, -0.00023664252839899648, -4.770357818745039e-05, -0.0001560547835559761, 8.69909679347136e-05, 0.00044889657718288553, 6.759123959120787e-05, 0.0, 0.0, -0.0009054054824978584, -4.464598435259805e-05, -0.0003197151749273829, -0.0002683884973033764, -0.00013126741851781984, 0.0, -0.00020402863845705237, -3.1324656473985795e-06, -0.0002879698251093903, -0.0002352684269339393, -5.5533376669937095e-05, -0.00026152739616070857, 5.218118964510789e-05, -0.0002577695084492201, 3.2440095013455296e-05, -0.0004907297632814672, 0.0, -0.0003207658171574116, -0.00012477747023642658, 0.0, -0.00023772656521727002, 0.0, -0.00025098916598316484, -9.365599930332696e-05, -0.0002461662797277878, 0.0, -0.0001953355698506256, 3.735294804560851e-05, -0.00018991972937178924, 0.0], "xaxis": "x", "yaxis": "y"}],
{"barmode": "relative", "height": 600, "legend": {"tracegroupgap": 0}, "margin": {"t": 60}, "template": {"data": {"bar": [{"error_x": {"color": "#2a3f5f"}, "error_y": {"color": "#2a3f5f"}, "marker": {"line": {"color": "#E5ECF6", "width": 0.5}}, "type": "bar"}], "barpolar": [{"marker": {"line": {"color": "#E5ECF6", "width": 0.5}}, "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.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.0, "#f0f921"]], "type": "contour"}], "contourcarpet": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "type": "contourcarpet"}], "heatmap": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "heatmap"}], "heatmapgl": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "heatmapgl"}], "histogram": [{"marker": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "type": "histogram"}], "histogram2d": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "histogram2d"}], "histogram2dcontour": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "histogram2dcontour"}], "mesh3d": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "type": "mesh3d"}], "parcoords": [{"line": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "type": "parcoords"}], "scatter": [{"marker": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "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.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.0, "#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}, "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.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.0, "#f0f921"]], "sequentialminus": [[0.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.0, "#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": "", "zerolinecolor": "white", "zerolinewidth": 2}, "yaxis": {"automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "zerolinecolor": "white", "zerolinewidth": 2}}}, "xaxis": {"anchor": "y", "domain": [0.0, 0.98], "title": {"text": "sharp_turn"}}, "yaxis": {"anchor": "x", "domain": [0.0, 1.0], "title": {"text": "count"}}},
{"responsive": true}
).then(function(){
var gd = document.getElementById('dcb37b92-fc8e-484e-ac46-2f7d23587d16');
var x = new MutationObserver(function (mutations, observer) {{
var display = window.getComputedStyle(gd).display;
if (!display || display === 'none') {{
console.log([gd, 'removed!']);
Plotly.purge(gd);
observer.disconnect();
}}
}});
// Listen for the removal of the full notebook cells
var notebookContainer = gd.closest('#notebook-container');
if (notebookContainer) {{
x.observe(notebookContainer, {childList: true});
}}
// Listen for the clearing of the current output cell
var outputEl = gd.closest('.output');
if (outputEl) {{
x.observe(outputEl, {childList: true});
}}
})
};
});
</script>
</div>
col_min_maxs.append([-0.0006, 0.00025])
</div>
急加速¶
iplot(px.histogram(data_df, x='acceleration', histnorm='probability'))
</div>
<div class="prompt"></div>
<div id="fae8968d-b919-4789-86d7-fa64ef7af129" class="plotly-graph-div" style="height:600px; width:100%;"></div>
<script type="text/javascript">
require(["plotly"], function(Plotly) {
window.PLOTLYENV=window.PLOTLYENV || {};
if (document.getElementById("fae8968d-b919-4789-86d7-fa64ef7af129")) {
Plotly.newPlot(
'fae8968d-b919-4789-86d7-fa64ef7af129',
[{"alignmentgroup": "True", "bingroup": "x", "histnorm": "probability", "hoverlabel": {"namelength": 0}, "hovertemplate": "acceleration=%{x}<br>count=%{y}", "legendgroup": "", "marker": {"color": "#636efa"}, "name": "", "offsetgroup": "", "orientation": "v", "showlegend": false, "type": "histogram", "x": [0.000165612373614155, -6.505342736990414e-05, -0.00023999446443022417, 0.00014544268158986974, 0.00014224980209104186, -0.0001403600374240489, 0.00035770642072004784, -0.0009866423262622206, 0.00026368207151166345, -0.0005606586203901054, 0.00018291286856534256, -0.00034564329180203015, 0.0007845829035571548, -0.00027431089175699994, 0.00042045388514050304, -0.0007219709823581882, 0.00021599509437876356, -9.42565082318317e-05, 0.0008190092113551246, -0.00013478808901416068, 0.00021040955321136728, -0.00014888556198333272, 0.0001228131388268453, -0.0003438682113918766, 0.00037698899921916095, -0.0003284612496552061, -0.00022456314405920507, -0.00016938436083074909, 0.0005151106132068147, -0.0006235446284370402, 0.0003128575724088036, -7.485246837911366e-05, -7.883224748615836e-05, -2.5104924849598786e-05, -0.00021167110557989083, -2.008377331492661e-05, -0.00024825330284985813, -1.6906182035494985e-05, 0.0005150925640822229, -0.00017018810051526388, 0.0005957410327275807, -0.00037154483465220685, 0.00020554706645586722, 2.612599792416897e-05, 0.00042757845748184783, -0.00032483414407339354, 0.0007673460514439821, -0.0002453205858514672, 0.0003924801372358317, -0.00028255197481137997, -5.7796983128497435e-05, 0.0008884247070244135, -0.00013094743213279091, 0.000100836083627339, -6.284757423674172e-05, 0.0006190494905323327, -0.0002776968995151061, 0.00029207955706776897, -0.00018907918126405716, 0.00032207464639055224, -0.0004295018456929502, 8.37616385844269e-05, 0.00013882908626530163, -0.00011290327980486264, 0.0003318649624410563, -0.00022183591949710664, 0.0003803833167871145, -0.0008275105930190117, 7.770610176807439e-05, -0.00022459456822685928, 8.360151179415647e-05, 0.0008055150469434569, -0.0001821367358077605, 0.0005038681621021615, -0.0003466791659613275, 0.0004684200230834509, -0.0002217831597328696, 0.00033234571624974013, -0.0003912600051563844, 0.0002516452418376351, -0.0011372460519547395, 0.00010696563772282575, -0.0003803999789616311, 0.0004837744178831957, -0.0006078377587514557, 0.0008071714513450546, -0.00011619430020773396, 0.0005720460004107132, -1.603544673005783e-05, 0.0003786040093114773, -0.000345360169422277, 0.00023538025757046616, -0.0002167399207677609, 0.0006059513023810564, -0.000737625185016271, 9.54895545988603e-05, -0.0005980934708060175, 0.0004934640296532877, -0.0007519934166973775, 8.052598793253132e-05, -0.0005465907422623317, -0.00019575345471472964, -3.384013532750871e-05, 7.84931638500054e-07, -0.0008821113649009267, 0.0006767259394894098, 4.453638764516019e-06, -0.0006912819542946314, 0.0004687863018261008, -0.0007515902164955977, 0.0004140472749339194, -0.0008703221915048374, 8.239708940613295e-05, -1.0035019571014197e-05, 3.216984807311203e-05, -0.00016636755856759818, 0.00018781069093360512, -6.076854158080321e-05, 0.0002732040679418349, -8.401487297727715e-05, 1.1709316808762105e-05, -0.0005621452254566494, 0.00017969076033090006, -0.0002683391309195398, 0.00020247355146032976, -0.0006964058033139412, -0.00026942830846658793, -0.00016632549050300973, -0.0003350797459927473, -0.00016993865305445807, 0.0005488403813786553, -0.0006971554808460503, 0.00010005862064387087, 0.0001062447481031354, 0.00018944680083242592, -0.00022173679065889834, -2.955806251860854e-05, -0.00039882574950242644, 0.0002216682441706089, -0.000376750765646708, 0.0009254496323941172, -0.0005417296006750298, 0.00044246104927863684, -0.0005265216419939981, 0.000424452407847281, -0.00021281867631040076, 0.00020246263824559409, -0.0006757892831901904, 0.00023180701873520463, -0.00034844951371978733, 0.0001012752161666624, -0.0005146140331641066, 0.0004283141110162747, -0.00022561101748100898, 0.00031004398752312385, -0.0011938448786453998, 0.0007208339530665064, -0.0004939737447036585, -0.00019254696174477142, 5.093546645043161e-05, 0.0006233390623225839, -0.0002911871912256917, -4.2280536350119925e-05, -7.2260003166311495e-06, 9.447960819453011e-05, 0.00023072243551037154, -0.0001691611887150785, 0.000155552671859526, 8.280062338773509e-05, -0.0003988943439968292, 0.0006311396459038305, -0.000380834029691614, 0.0005274810254627882, -0.00032044500955467946, 8.602804237311959e-05, -0.0002060618816012527, 0.000351695118451646, 7.109022446363217e-05, -8.495105397491156e-06, -0.0006044316917404125, 0.0006068698490536076, -0.0004995686105426629, 0.0006084839240654942, -0.0006511498688633011, -0.00019955012394204144, 5.858308295887874e-05, -0.0003064703790779513, 8.702719745735452e-05, -0.000143378061298866, 0.0004983907485828126, -0.00046010922700199765, -8.447140172498712e-05, 0.00019759041466690195, 2.031683599603592e-05, -0.0006500579377632851, 0.00025385309090692696, -0.0004223465726093629, 8.118561840019058e-05, -0.0009068794390913301, 0.0006099963836614992, 5.808767321133386e-06, 0.0002070954252063672, -0.00032493855336437644, 0.0003773350131877636, -0.0003597098679269459, 0.0005204148617661121, -0.0003371581660808383, -0.0007067416942671215, 0.00018652513266626493, -0.0005656252437493776, 0.0008233351062491603, -0.00033287598634873007, 0.00019500744947677391, -0.001327035440417107, -0.0003025555724477997, 0.0007670630006832045, -0.0005376480644134676, 0.00047799172320003635, 6.570729218745949e-05, -0.00013844606661575498, -1.8595336506399288e-05, -0.00016815276206801402, 0.0002645060360353651, -0.0001222060061157863, -5.082035251972514e-05, -0.0003247648211957007, -0.0001940887097547015, -0.0006708278872373713, -4.414813462827482e-05, -8.073338384819764e-05, -0.0008066163315932806, 0.0004746452500954959, -0.00017227659213135498, 0.0001714913473890467, -0.0004246736145141872, 0.0003288935210132293, -8.446817306484131e-05, 0.000595831790986526, -0.0004407606840011072, 0.00018815081456991133, -0.0006610248898247822, 0.0003280575252001173, -0.0007257550392203737, 0.00020381274980257237, -0.0002650804920195759, 0.00043924776110945896, -0.000563665383285438, 9.400523378156592e-05, -0.00017955811775527292, 5.625397335972035e-05, 0.0, -0.00011800440404219077, 2.9558135260494256e-05, 2.3458492178311834e-05, 1.7185581474865347e-07, -6.199798578988178e-05, 1.58194733219596e-05, 0.0, 9.516197286230598e-05, 0.00018045342325516365, 0.0002476395446413975, -0.00031188354225202187, 0.00041886981996696655, -1.0435924978756422e-05, -0.00012239929158777387, -0.00044174195027227607, -0.00017950522952375764, -0.0002658144364283764, 0.00017247957332368138, 0.0010223993791701387, -0.0006668730697591838, 0.0006264803599680945, 0.0001906658971559255, 0.00022803132402383862, -0.0006405715937172338, 0.000489238273924727, -0.000740372287601425, -0.0002498197189124888, 0.0002070853161523276, -0.0003377680428485268, -9.241130091648359e-05, -0.0005907362072984008, 0.0003137573866870879, 0.0001576156723226747, -0.0005587567694711738, -0.00012155713210359175, -0.00010083057426760482, 4.115666415780339e-05, -0.0002629585192262464, 0.0005336402600168935, -0.00048130404667089783, 0.0004028079978326877, -0.0002618954857285836, -7.015449316321047e-05, 9.23192382096504e-05, -1.4458344423247155e-05, -0.000267713328920222, 0.0005782807069965523, -6.630052895602446e-06, -7.96604857657718e-06, -0.0003027893572365129, 0.00031616258912494646, -0.0004300595341411176, 0.00027690654111468674, -0.000495973069839657, 0.0002377184804731936, -0.00022126613957897413, 0.0004350766125670723, -0.0003311448637996556, -3.771288094461567e-05, -0.0005923922622009675, -5.003114537819311e-06, -0.00017577082126959, -2.1537565632820496e-05, -0.00016105437901861399, 0.00039774028884406894, -0.00038243704261156696, -0.00045862041140231545, 0.0003176263168497832, -0.00023783836213098975, 0.00022705500510011205, -0.0006577113098132253, 1.0266785804744231e-05, -0.00011938064294361066, 0.0005983338824465421, 2.436037813090069e-05, -1.324952613194092e-05, -0.00017010568973441952, 7.570282896166582e-05, -0.0003697673525429714, -9.274332859912491e-05, -3.993077000999211e-05, -0.000533325244693041, 5.8742802935232436e-05, -0.00018089368083411235, -1.2042934535328495e-05, -0.00025428537762275493, 0.0002563321262705224, -0.0004594675860486666, -9.557242552523232e-05, 3.9272592467578455e-05, -0.00010285208379017212, -0.00016923172228084147, 0.00021616108910955327, -0.00041934810988630855, 0.0003113375698128085, -0.0004696770908767298, 0.00011662522823623692, -0.0005706124732466122, -0.000142267384685714, -1.9788270928292717e-05, -0.00010534583780470663, 2.427981179457713e-05, -0.0004349944780294697, 0.00021176368636674018, -0.0003335708255352547, -2.3744443505771728e-05, 2.315872644119703e-05, -0.00021051309943643148, -5.976800013986151e-05, 0.00048061764053115115, -0.000380807112607356, -0.00017855056109938132, -7.110602691293085e-05, 0.0001386959703329308, -2.9943898156245714e-05, -0.000337620285340024, 8.34509076905044e-05, -0.0004118114652777917, 0.00024030728281258413, -0.00031173079554845553, 0.0003976589441267575, -0.0002740006546720961, -0.00025069515041067756, -0.00011957905720271582, -7.149125281074429e-05, -0.00013744964017174463, 0.0001657815266599, -0.00015384429859463235, 0.000233126639010546, 1.9775744399487722e-06, 0.0005999557771868003, -0.00023131199217586381, 0.0002090624422549772, 0.00029463612647271064, -0.0007552544109260346, -5.5806565363107276e-05, -9.957148593662933e-05, 0.00016914241950895806, -0.0003586805891646736, 0.0005454298599444099, -4.253980216472331e-05, 0.00039755930303328745, -0.00023921236742476142, 8.84243308071565e-05, 0.00034706099104297566, -0.0005433912550135593, 0.0002257513530490479, -0.00012028571027801367, -0.0002826970113197685, 8.084434578315649e-05, 0.00013028414990012702, -0.0008513483998118258, 0.00031197156225610726, -0.0004960683504552249, 0.0003957296943185287, -0.0006753558674627853, 0.0002952534181992529, -2.726505070494082e-05, -4.933026240144272e-05, -0.00012137880345498245, -0.00014913002571228056, -0.00035731582818230315, 0.0004265793787312199, -0.0001997692739101808, 4.9060781661721706e-05, -0.0001420320001745311, 0.00019460243296953966, 0.00010816751872259408, 0.00011876503468513828, -0.0003491944567874392, -0.00043515378504963736, 0.00012170751572020049, -7.062394626992727e-05, 9.025449502158254e-05, -0.0003784481248666654, 0.00028991750663065897, -0.0001901456612790844, 4.761819373041629e-05, -0.00012668526250196718, 6.847896435224234e-05, 0.00011020712871376602, 0.00011488557184688801, -0.0011478307324802536, -0.0005655791187142594, 0.0003586479141893456, -0.0005645513179390921, 0.00016438582407963222, -0.000500314246144109, -8.209611534192253e-05, -0.0004988740309173497, -7.91813070197533e-05, -0.0002370615727231679, 0.0004753242886692531, -0.000505149630035388, 7.243877629546682e-05, -0.00025603474115972, 0.0002027803293862654, -4.680166465898476e-05, -5.016687569784045e-05, -2.5018715925272865e-07, 7.028851603070607e-05, -0.00036062718982047236, 0.0002948446247565479, -0.00037029131355506166, -0.0002849850681786878, -0.00044449951896057823, 0.00020643464735582118, -0.0003419155722300807, 0.0002923036220741044, -0.00038860022429303874, -7.010260694783399e-05, -0.0002676226079579556, -0.00010500980150158691, -0.0005265934003470611, 0.0006973600763768273, -0.00023525821687699785, 6.550861071835169e-05, -0.00047874218815373163, 3.3228030675160167e-06, -0.0008832485285480777, 0.00043426917927977536, -8.6175925919885e-05, -0.00038753549992381734, -0.00019343934150070196, -0.00035338243422784613, 0.00034467162307539223, -0.00031664008177692917, 0.00032077546891936924, -0.000479261658482143, 1.6672119811703868e-05, -0.0002674334116376939, 0.0005125600090075569, -0.0003674097119703957, 0.00012132906494496636, -0.0006135039049695902, 5.623916857770202e-05, -0.0003435339976300749, 2.0883423930006408e-05, -0.0005221486811222083, 0.0002528124918350528, 0.0005990401070639392, -2.911636519798577e-05, 1.2035401092439863e-06, -0.00027031209199451073, 0.00013925336203030083, -2.7575995702549494e-05, 0.0004615722079900914, 0.00018717596644228144, 4.986080678603873e-05, 0.00019170271548682972, -0.0003437932394097005, -9.180934241546853e-06, -0.0006090429544577059, 0.0002803585827439688, -0.0005174375574014301, 0.00032888475377343515, -0.00016905580332001908, 0.00018542681928018973, -0.0005595424014829588, 0.0004298353996469016, -0.0010409433196043474, 0.0004250779758391451, -0.00017372203685132718, -0.00014650378731162857, -0.0005132699798054729, 9.388891065382408e-05, -0.00049995112944443, 0.00033765857733521816, -0.0004363580194635736, 0.0003670079622723821, -0.0005448300899994178, 0.00024147483224738989, -0.000265575968882841, 0.0003960129685682617, -0.0004265113754211063, 1.5746159954618782e-05, -5.5208818319998587e-05, 2.8861091591986406e-05, 5.0548605985724814e-05, -2.6310579880922493e-05, -4.2759339486386656e-05, -3.293671526941837e-05, 0.00011953049455984135, -7.994190241641636e-05, -0.00020994635762603195, -1.5026216804572974e-05, 5.376363120712544e-05, -5.339913117199285e-05, 0.0, 0.0, 1.2409297813416756e-05, -4.5881910495106126e-05, -7.561012315290935e-05, -0.00015006616938963721, 0.0005409433329572592, -0.0001437948242947074, 0.0003834341698875188, -0.0004732611144559426, 3.6523361835945296e-05, -0.000521205840851594, -0.0005134130868346866, -0.00031857247668467235, -0.000384160603581334, 0.00011744252085000652, -0.0002587141751492588, 0.000423111222928966, -0.00014344461665646418, -6.255395685517225e-05, -3.626685465558509e-05, -0.0008611661330869348, 0.000145278787252632, -0.00036034933429008616, 0.0003242863511075158, 0.0007708679982084351, -0.0009206682681480227, 0.0005804712658252849, -0.0002883499216453911, -0.00014835099266638665, -0.00034008771387451087, 0.0004972695418462643, 0.0004681194572225672, -0.0007284262478916526, 0.00019516975523688318, -0.0007002963227080211, 0.00019065982321312552, 0.0002454674567102184, -0.00021920311202854674, 0.00014168844504429873, -0.00019879186717727435, -4.4314131623004186e-05, 0.0008476107544336253, -0.00022213982065245216, 0.00011018986891150628, -0.00023251870018589936, 8.617262645162109e-05, 0.0, 0.00016219255716317518, -0.00017242963393384963, 0.0003951679743957598, -0.0009396669142698072, 0.00011214689398900237, -0.00027549909669654835, 0.00037331665002385874, 0.0003220959711432286, -0.0009109155681361008, -0.0001082184678833362, -0.00012105458185784168, 0.00013901830531415132, 0.00045379715801394316, 0.00017169180376743354, -0.00016388111176765394, 0.0002485914831783813, 7.13326767877873e-05, 6.009742349404942e-05, -0.0004120133296664975, 0.0005549957622801357, -0.0004398972304375995, 0.0004890338535094444, -0.0005992203798478543, -0.0002187448505464988, -0.0002831430820664985, -0.0003859211771087793, -7.124423274814698e-05, -0.0007764932112507894, 0.00014939425161757642, -0.0005984000090348867, 0.0003977459415269092, -0.0005304428740059028, 0.00027123624021848454, -0.000659764983961124, -7.759073667445312e-05, 0.0005439579212711392, -0.0005291955790245461, 0.00013721575490764464, -0.0004501109206910546, 6.842099872224818e-05, -0.0007733986618458439, 0.00011630941119733172, -0.0003308297114516642, 0.0002579538728851174, -0.0001402270982975329, 8.888767311610415e-05], "xaxis": "x", "yaxis": "y"}],
{"barmode": "relative", "height": 600, "legend": {"tracegroupgap": 0}, "margin": {"t": 60}, "template": {"data": {"bar": [{"error_x": {"color": "#2a3f5f"}, "error_y": {"color": "#2a3f5f"}, "marker": {"line": {"color": "#E5ECF6", "width": 0.5}}, "type": "bar"}], "barpolar": [{"marker": {"line": {"color": "#E5ECF6", "width": 0.5}}, "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.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.0, "#f0f921"]], "type": "contour"}], "contourcarpet": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "type": "contourcarpet"}], "heatmap": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "heatmap"}], "heatmapgl": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "heatmapgl"}], "histogram": [{"marker": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "type": "histogram"}], "histogram2d": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "histogram2d"}], "histogram2dcontour": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "histogram2dcontour"}], "mesh3d": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "type": "mesh3d"}], "parcoords": [{"line": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "type": "parcoords"}], "scatter": [{"marker": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "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.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.0, "#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}, "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.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.0, "#f0f921"]], "sequentialminus": [[0.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.0, "#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": "", "zerolinecolor": "white", "zerolinewidth": 2}, "yaxis": {"automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "zerolinecolor": "white", "zerolinewidth": 2}}}, "xaxis": {"anchor": "y", "domain": [0.0, 0.98], "title": {"text": "acceleration"}}, "yaxis": {"anchor": "x", "domain": [0.0, 1.0], "title": {"text": "count"}}},
{"responsive": true}
).then(function(){
var gd = document.getElementById('fae8968d-b919-4789-86d7-fa64ef7af129');
var x = new MutationObserver(function (mutations, observer) {{
var display = window.getComputedStyle(gd).display;
if (!display || display === 'none') {{
console.log([gd, 'removed!']);
Plotly.purge(gd);
observer.disconnect();
}}
}});
// Listen for the removal of the full notebook cells
var notebookContainer = gd.closest('#notebook-container');
if (notebookContainer) {{
x.observe(notebookContainer, {childList: true});
}}
// Listen for the clearing of the current output cell
var outputEl = gd.closest('.output');
if (outputEl) {{
x.observe(outputEl, {childList: true});
}}
})
};
});
</script>
</div>
急减速¶
iplot(px.histogram(data_df, x='deceleration', histnorm='probability'))
</div>
<div class="prompt"></div>
<div id="540f8bbf-0865-443c-9f22-8fb352a670c4" class="plotly-graph-div" style="height:600px; width:100%;"></div>
<script type="text/javascript">
require(["plotly"], function(Plotly) {
window.PLOTLYENV=window.PLOTLYENV || {};
if (document.getElementById("540f8bbf-0865-443c-9f22-8fb352a670c4")) {
Plotly.newPlot(
'540f8bbf-0865-443c-9f22-8fb352a670c4',
[{"alignmentgroup": "True", "bingroup": "x", "histnorm": "probability", "hoverlabel": {"namelength": 0}, "hovertemplate": "deceleration=%{x}<br>count=%{y}", "legendgroup": "", "marker": {"color": "#636efa"}, "name": "", "offsetgroup": "", "orientation": "v", "showlegend": false, "type": "histogram", "x": [-0.00012171850384845039, -0.00045840654150917893, 0.00020558616942107136, 0.00012566056126125537, 3.605611989845536e-06, 0.0, 0.00014251999749293444, 4.2318167118690425e-05, 0.0001266599348391163, -3.260558123467266e-05, 0.0001668509629612827, -0.00010553712681627064, 0.00025982716380673425, 0.00015322011285726238, 0.00013287853248881412, -5.208440676138489e-05, -0.00014658423044000443, 3.4851497777186084e-05, -2.52104235538427e-05, -2.341345642510869e-05, -7.947865172317831e-05, -7.224796594524461e-05, 0.00029263375485791493, 4.922069197814099e-05, 0.00014114628643225704, 5.194553701394961e-05, 2.802637594293327e-05, 3.0029616336843212e-05, -0.00017795448108204792, 0.00010124314993906624, 0.000101913878783275, -3.742623418955683e-05, 0.0, 7.267664481519876e-05, 8.389140075326898e-05, 0.0, -3.8630805095343895e-05, 0.0, -5.0631870343782894e-05, 0.00011692950141570876, -3.52795026891816e-05, 3.919876962009555e-05, 0.00014511900854220506, 8.079219465690395e-05, 7.528386866483832e-05, -0.00010223600195202356, 0.00018484929567552368, -3.9614282066766087e-05, 5.556583100240918e-05, 4.50643831292868e-05, 5.5775502014446974e-05, 9.366007767682288e-05, 5.847539585281299e-05, -5.862464900036164e-06, 2.9551658919670507e-05, 7.039555998052859e-05, -3.4833214476044926e-05, 9.862442460977408e-05, 1.8906066450417785e-05, 0.0001296949076383157, -8.590036913859003e-05, -2.812589447095293e-05, -4.227403401489599e-05, 3.800878236377085e-05, 6.259102371149891e-05, 0.00017719378901977418, 6.618598875404151e-05, -6.962132231966755e-05, 3.958725077773151e-05, 0.00019647591574456345, 6.783626603638017e-05, 0.00020137876173586421, 6.255613804210611e-05, 0.0002667891964182687, -4.2813113734381456e-05, 0.00015450024913993586, 0.00014615074694049432, 0.00016767613958685316, -3.997899235768011e-05, 6.006318504547915e-05, 6.426778058619982e-06, 3.17040969652164e-05, 5.064301254062603e-05, 9.891486198451936e-05, -6.583815916469851e-05, 1.7335224019300634e-05, 9.3982349915642e-05, 0.00018650229737321715, 4.718296088213719e-05, 5.058333415283702e-05, 0.00013135856499514487, 0.00017442328950457745, 2.24131955428185e-05, 4.424118365729435e-05, 2.01525733004145e-05, -2.7626726083094673e-06, -9.131697029337514e-05, 0.00012460934095822514, 8.88141448136369e-05, -9.92145434201555e-06, -6.486995068211996e-05, 5.320382413238659e-07, 0.00017834091576686786, 2.3462175315759445e-05, 5.493845891100984e-05, 6.754214009887488e-05, -4.709573638286922e-05, 8.868289280584876e-05, -5.9661783718677354e-05, 0.0, 0.00016631638417397492, 1.5492927637237146e-05, -8.013060841162591e-05, 0.00015672351280823874, 0.00010826153109910858, 0.0001369644770686416, 0.00015434193990947114, -2.9459822625997222e-05, 0.00019622886530923608, 5.1201968857491935e-05, -0.0001341463679730918, 6.233105433886652e-05, -3.573848546656028e-05, -0.00017699973443873024, -0.00010277439122869312, 1.1232896667375607e-05, 5.488885404159555e-05, 1.230486429208973e-05, -3.492016648656124e-05, 2.778522667016012e-05, 7.040268518305247e-07, 8.50435510353438e-05, -5.342926815352144e-05, 0.0, 7.115636929820876e-05, -2.634529980331451e-05, -2.2168546888956425e-05, -2.432554818821909e-05, 9.049147416955696e-05, -0.00010013425022850191, 9.893032119461767e-05, 5.83917071292568e-05, 2.483102723197092e-06, -9.738142701422932e-05, 0.0001746238651077718, 0.0, -2.4923415873634024e-05, -9.198748118993531e-05, -0.00020603439260390933, -7.318401707555406e-05, -2.0151804110281267e-05, 0.0001107148272605622, -6.701085863648461e-05, 0.00021170619374840183, 0.000276678987458525, -9.796781759781918e-05, 0.0002498947349406321, 2.6960211118581384e-05, 6.278188268776557e-05, -2.9933235581967047e-05, -4.0510886576697456e-05, 0.00013360276883307118, 6.1778093842296735e-06, 0.00012907433966871808, -1.211479368424734e-05, 0.00016058353569328092, 9.985229647093044e-06, -3.194780320395609e-05, -0.00017556671927639305, -1.191526171366924e-05, 6.0761244906146886e-05, 8.345201369255745e-06, 0.00020940328709093955, 1.80392545371881e-05, 0.0001660050501138124, -5.1434191623154386e-05, 0.0001177882068512058, 0.00019176948349754175, 0.00011037931467427117, -4.773510073493418e-05, -5.02067840878463e-06, -2.7207056918272306e-05, -8.141856100130865e-06, -3.629611777363796e-06, 3.0617722367305026e-05, -0.0001144862688035804, -3.753281141171048e-05, -0.00011215367020100288, -8.495930021275754e-05, -0.00013689068149868523, -8.962018325386687e-05, -8.422602651408509e-05, -4.650347447660066e-05, 0.00017138676993735006, -0.00010082372476236648, 4.9495805895148134e-05, 9.918994732895236e-05, 7.954700353735391e-05, -0.00013639950009531145, 6.250862701523608e-05, 7.438138770791549e-05, 0.0001606411948067913, 0.00021875616670727864, 6.335281914937047e-05, 7.631702249084322e-05, 0.0001933905892379502, -0.00015226908614716282, -0.00011779028237785358, -0.0007475505779440277, -3.7363108022970256e-05, 8.950682937366589e-05, 5.0396412666207083e-05, -0.00020018788841949376, 0.00014856629975246643, 0.0002608900280071515, 0.00012223408447688074, 0.00011814299934237107, 0.000228115030005311, -4.314928009429038e-05, -7.8159806011278e-05, 5.320634232511641e-05, -0.00010619297449793947, -6.969535858223615e-05, 9.680228810123754e-05, 7.164566779724134e-07, 6.65119408144797e-05, 5.12491931847524e-05, -0.00015581802753191517, 2.7553781621856917e-06, 0.00015949491366628154, -8.054084479424756e-05, 0.00013891624019231216, -3.5338813885219175e-05, -7.691188972476234e-07, -0.0001495494138502879, 4.4594427381394814e-05, 0.00012108732103707528, 5.9617616516530944e-05, 4.964168445124326e-05, 4.703770364247784e-05, -0.00017723729132434598, 0.0003941561339989661, 4.17643958092738e-05, -5.337652395061611e-05, -2.2601347846788848e-05, 7.477102777293268e-05, -4.179042284996458e-05, 0.00013996790529316753, -4.608295536069811e-05, 2.812698667986017e-05, 0.0, -4.0163502577401775e-05, 5.911627052098851e-05, -3.8765807629651035e-05, 4.296395368716337e-08, -8.985336398036375e-05, 8.99406896413063e-05, -4.6425463571283835e-05, 0.00010503753418803882, 3.105727055896507e-05, 0.0, -4.346374610450766e-05, -0.00011661432357206972, -1.0435924978756422e-05, 4.973801589958295e-05, -6.310599289603943e-05, 4.857864773524185e-05, 6.220592074448598e-05, -2.1773716754175864e-05, -0.0003687069007432524, -1.863873530015764e-05, 0.00023493013498803545, 0.00014299942286694412, 0.0002640065625999401, 3.8622644610656544e-05, 6.550863201729887e-06, -1.5981872157166642e-05, -8.096246553726191e-06, 8.106037444966373e-05, 9.7450802169702e-05, 7.234358958936593e-05, 3.957724357797972e-05, -0.0001381580698462429, 3.0288186339051647e-05, 0.0, -4.143315969336695e-05, -0.0001654509489893606, 3.4193966612543706e-05, 4.547442803147364e-05, 0.00020185200865012706, -5.783137151945667e-05, -4.1108566578765085e-05, -5.9199141224500695e-05, 8.926432423597293e-05, 6.150392984479546e-05, 0.0, 0.00010205007690304235, 0.0, 5.337082486995993e-05, -0.00010004623283477418, 0.0, 0.00011292307079049826, 0.00012576216114702275, 0.0001294726103941765, -0.00013337142262713077, 5.841383404122108e-05, 0.00014082916603743584, 0.0, 0.00012881878961412243, 1.4249113913628922e-05, -0.00016428030121996736, 7.64701184470645e-05, 4.2337025623421555e-05, 0.0, 0.0, 2.448383488517967e-06, 0.0, 0.0, 5.5556573500897476e-05, 2.778219589257737e-05, 0.00013859215258496101, 9.398968626981071e-05, 1.0266785804744231e-05, -1.6963403924820363e-05, 0.00024012588691581444, 0.00013475042640951232, 0.00011575225004610632, 4.416002912657576e-05, 6.628513078768639e-05, 7.129785687251205e-05, -5.542848018358999e-05, 0.0002155362988818588, 0.00011550327402078376, 7.100322017604043e-05, 0.00010517718044335904, -9.803195503599091e-06, 8.493143824193579e-05, -8.526589437589991e-05, 0.0, -4.778621276261616e-05, 9.470111154299211e-05, -9.415954203003868e-05, -7.546981978181234e-05, 0.00011315973680976421, -4.904255915939082e-05, 0.00012804455099081808, 0.0, 5.272885563711962e-05, 2.923808164307431e-05, -5.5925327590374e-05, 0.0, 5.1438773278863535e-06, -2.405998778559564e-05, 3.549874800457054e-05, -1.5134023437229379e-05, 9.3771315222357e-05, 5.1991985105424924e-06, 5.643659783616082e-05, -0.00015035687643477394, 0.0002078984795515537, 9.921849290778742e-05, 0.0, -0.00010971027160313968, -2.046887057582524e-05, -0.00011372414222157828, 3.6614384462914215e-05, -7.175963799578576e-05, 4.439634862789544e-05, -1.4960458247855627e-05, 4.453620690943853e-05, -2.0996538173073983e-05, 3.3819599019920976e-05, 4.691574474133397e-05, 0.0, 0.0, 3.464101564534375e-05, 0.000210932564232024, -0.00010331958905593947, -0.00014322284098285245, 5.931543513856049e-05, 0.0, 9.425685219159919e-05, -1.8627503119713886e-05, -4.1466767696828856e-05, -2.641950721165618e-05, -2.6989116255580577e-05, -1.1331371452348405e-05, 5.297037646112649e-05, 0.00011263536867667927, 0.00010502023640582948, 1.0916525920985733e-05, 0.00010574529703328725, 8.491844288050065e-05, -1.5034461701870831e-05, -6.904305014139995e-05, 2.969102262824397e-05, 7.128694335202174e-05, -1.2972282224182025e-05, 3.096129990195138e-05, 0.00016175530329051165, 0.00018798429568532487, -5.058206254149483e-05, -9.422868410154946e-05, -0.00011502676650964439, -0.00016535611681840827, 0.0001390654028015343, 1.5441361451334534e-05, 4.780771087966057e-05, 5.100467733464662e-05, 5.443846753182851e-05, -8.254937789073327e-05, 4.560600736873867e-05, 4.98212000609327e-05, 8.859950259028597e-05, -4.746999483298722e-06, -2.390535828401425e-05, -8.351382603475206e-05, 0.00016703282497096097, -1.1269790621257124e-05, -4.0522248857536347e-05, -0.0008635308812262188, 3.2929231697099904e-05, 0.0001418015123920789, -3.5311973134963644e-05, 5.0917881748710464e-05, -4.807869087060452e-05, 0.00011181522531832849, -5.139447769014067e-08, 0.0002351934551975543, -0.00015051609256216752, 5.977154671360674e-05, 7.618069031763859e-06, 4.876631155842346e-05, -0.0004964839258940933, 5.163125567456554e-05, 0.00012244352978678922, 3.892887483589387e-05, 6.471566771738378e-05, 0.00012135486443438554, 0.00017467058840027328, -3.7330728199245854e-05, -0.00011266849826601181, -7.793128193302166e-05, 0.0, -5.0943736222151944e-05, -1.6130346275562946e-06, -8.534491371990666e-05, -7.688858730445091e-05, 0.0001232854074144239, 5.48804467558966e-05, -3.0418684946070564e-05, 0.00012033045780440656, -2.6944533154652634e-05, 2.5708590940439003e-05, -0.00016582176428985127, -9.49950227262293e-05, 4.540532995299956e-05, -6.505364921093431e-06, -5.792322978589069e-05, -5.735083867090982e-05, 4.3701501169460967e-05, -1.168376782463899e-05, 5.866241778585111e-05, 0.0001509173419960993, 0.0, -6.444894033766543e-05, -7.696802700403112e-05, 0.00018586908491269552, 5.6738045664769715e-06, -1.3374771363549502e-05, 0.0001029024509033828, 0.0003002427736578456, -4.4241586999458e-05, -1.370832192207736e-05, -1.7420720746573026e-05, -1.23419095574407e-05, 8.088627776443016e-05, -6.154340592033916e-05, 0.0001283101875677477, 7.376725186017809e-05, -8.313549965927802e-05, 7.972519254594211e-05, 6.383247281933502e-05, 3.626605160718753e-05, -1.2299445637259555e-05, 1.2092965863110227e-05, 0.00017386896933382527, 5.109393550189083e-05, -1.7770003296820175e-05, -7.083116715272475e-05, 8.030378919614487e-05, 0.0, 0.00010142135811614509, 0.00012223890773892438, 8.586697179208401e-05, -2.732272808357327e-05, 6.904914073426309e-05, 0.00014586980858388282, 3.298952643502478e-05, 4.986080678603873e-05, 0.00023425512521990766, 8.647494631769558e-05, -4.535733201026361e-05, 0.0, -6.032987166285051e-05, 0.0, 0.0001305274986018319, -0.00012572475482435912, 5.492585892965368e-05, 0.0, 0.0001089381818423648, -0.00014257509281057632, 0.0, 0.0, -9.61915078697047e-05, 4.2144308231372895e-05, 0.00010493453575575291, 0.0, -4.2401965871656755e-06, -2.2969257609861248e-05, 8.786289808421455e-05, -2.520810852148124e-05, 4.035719648480124e-05, 5.4598902581825484e-05, 0.00013200432285608723, 0.0, -6.006059129014543e-05, 2.7472365912688198e-05, 5.772218318397281e-05, -4.743884983800237e-06, -2.6310579880922493e-05, -3.352027956571715e-05, 0.0, 3.9843498186613786e-05, -7.994190241641636e-05, 0.00019182181887905214, -4.507865041371893e-05, 0.00010752726241425088, -3.559942078132856e-05, -4.418962427719269e-05, 0.0, 4.8543198721455957e-05, -1.8266033125975e-05, -2.5768351204494314e-05, -6.1704173403529544e-06, 6.2423132833361e-05, 0.00017055452538730745, 7.702639829759799e-06, -0.0010012592545371676, 0.00013225357516067056, -6.710129346421257e-05, 5.066004079060797e-05, 1.806824561338433e-05, 5.7061899948394873e-05, -0.0002699254334452908, 2.983390840287641e-05, 0.00028403695138891073, 3.630392884782671e-05, -0.00018207281565735527, -0.00010046755862441604, -0.00011975907662416196, -4.730095571521159e-05, -0.00019422866011062527, -2.7846024341902667e-05, -0.0005933650758215849, -6.816745283018875e-05, 0.00027598838234314923, 9.505679515989e-05, 0.0001506118920888929, -6.813716948929356e-05, 0.00012554305287137252, 0.00014924319814260358, -0.00017938373666950497, 0.00011744093470099428, 5.973696436973286e-05, 0.00011419795932156255, 0.0, -3.7015686420907775e-05, -1.0969249019736294e-05, -7.570481309553115e-05, 5.4342536956998636e-05, 0.0002825369181445418, -4.835062476460141e-05, 5.509493445575314e-05, -8.214650992516696e-05, 6.30878433581911e-05, 0.0, 0.00010548198871179202, -0.00010078786384461674, 0.00015240587050517517, -0.00011189665883763213, 0.00018042204395725032, -5.9974012517082706e-05, 2.1473348130079712e-07, 0.0, -5.405686117761158e-05, 2.349762230909605e-05, 7.401389758712844e-05, 4.776141067339726e-05, 0.00014963219239429518, 0.00010410056417622568, -5.632575519485404e-05, 0.0, -4.014421731169914e-05, 0.00011447492291702971, -5.732973599842681e-05, 0.0002744614198611707, -8.751161234521321e-05, 5.562594660559572e-05, -0.00011727096886491028, 0.0001199700339972644, -2.9583275712930793e-05, -5.650682847882672e-05, -1.4248846549629394e-05, -1.476116837325123e-05, 0.0001831354986475646, 2.0246811243241565e-05, 9.873108526794016e-05, 2.451073975453171e-05, 5.353159215585578e-05, -0.00017861625822500674, -5.172715778296874e-05, 0.0, -0.00019903915160030295, 0.0002286929248460744, -0.00011947305282473384, 6.277185634643743e-05, -7.44426263214729e-06, -3.7077213339982207e-05, -0.00011928284588287041, 6.767236922293272e-05, 0.00012713565531051132, 1.2301123878622287e-05], "xaxis": "x", "yaxis": "y"}],
{"barmode": "relative", "height": 600, "legend": {"tracegroupgap": 0}, "margin": {"t": 60}, "template": {"data": {"bar": [{"error_x": {"color": "#2a3f5f"}, "error_y": {"color": "#2a3f5f"}, "marker": {"line": {"color": "#E5ECF6", "width": 0.5}}, "type": "bar"}], "barpolar": [{"marker": {"line": {"color": "#E5ECF6", "width": 0.5}}, "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.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.0, "#f0f921"]], "type": "contour"}], "contourcarpet": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "type": "contourcarpet"}], "heatmap": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "heatmap"}], "heatmapgl": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "heatmapgl"}], "histogram": [{"marker": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "type": "histogram"}], "histogram2d": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "histogram2d"}], "histogram2dcontour": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "histogram2dcontour"}], "mesh3d": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "type": "mesh3d"}], "parcoords": [{"line": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "type": "parcoords"}], "scatter": [{"marker": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "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.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.0, "#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}, "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.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.0, "#f0f921"]], "sequentialminus": [[0.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.0, "#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": "", "zerolinecolor": "white", "zerolinewidth": 2}, "yaxis": {"automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "zerolinecolor": "white", "zerolinewidth": 2}}}, "xaxis": {"anchor": "y", "domain": [0.0, 0.98], "title": {"text": "deceleration"}}, "yaxis": {"anchor": "x", "domain": [0.0, 1.0], "title": {"text": "count"}}},
{"responsive": true}
).then(function(){
var gd = document.getElementById('540f8bbf-0865-443c-9f22-8fb352a670c4');
var x = new MutationObserver(function (mutations, observer) {{
var display = window.getComputedStyle(gd).display;
if (!display || display === 'none') {{
console.log([gd, 'removed!']);
Plotly.purge(gd);
observer.disconnect();
}}
}});
// Listen for the removal of the full notebook cells
var notebookContainer = gd.closest('#notebook-container');
if (notebookContainer) {{
x.observe(notebookContainer, {childList: true});
}}
// Listen for the clearing of the current output cell
var outputEl = gd.closest('.output');
if (outputEl) {{
x.observe(outputEl, {childList: true});
}}
})
};
});
</script>
</div>
col_min_maxs.append(None)
</div>
print(col_min_maxs)
</div>
<div class="prompt"></div>
[[-0.4, 1.2], [-70, 60], [-0.2, 0.3], [-0.3, 0.3], [-0.7, 0.4], [-1, 1], [-0.06, 0.06], [-0.02, 0.05], None, [-0.35, 0.4], [-0.0006, 0.00025], None]
相关系数¶
from scipy.stats import pearsonr
for idx, col in enumerate(data_df.columns[1:]):
print('{:>20s}: {} {}'.format(col, idx + 1, pearsonr(data_df.loc[:, 'distance'], data_df.loc[:, col])))
</div>
<div class="prompt"></div>
avg_speed: 1 (-0.4806056935158062, 6.771838194917686e-38)
acs: 2 (0.025909353896178537, 0.5152485744583909)
acs_idle: 3 (-0.3700028295037353, 5.705255667186981e-22)
idle_speed: 4 (-0.3228488553373969, 8.032180151372731e-17)
smooth_speed: 5 (0.2785124836395245, 9.67637030815978e-13)
without_gear: 6 (-0.2567446649900016, 5.489270993302441e-11)
with_gear: 7 (-0.2168626382253659, 3.566268286835245e-08)
over_speed: 8 (0.046565596512352606, 0.24204694520483655)
economical_speed: 9 (0.3582354174754291, 1.32959542617395e-20)
sharp_turn: 10 (-0.49814240667459775, 5.278312542744376e-41)
acceleration: 11 (-0.49021488077200454, 1.4122058291001258e-39)
deceleration: 12 (-0.07419675772517359, 0.06209243092334431)
from sklearn.preprocessing import MinMaxScaler
from sklearn.preprocessing import StandardScaler
</div>
data_x = data_df.copy()
data_x.pop('over_speed')
data_x.pop('deceleration')
data_x.head()
</div>
<div class="prompt output_prompt">Out[41]:</div>
| distance | avg_speed | acs | acs_idle | idle_speed | smooth_speed | without_gear | with_gear | economical_speed | sharp_turn | acceleration | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 0.339039 | -12.078710 | 0.259306 | 0.314533 | 0.165292 | -0.239653 | 0.157602 | -0.107825 | 0.000000 | -0.000054 | 0.000166 |
| 1 | 0.614563 | -2.027863 | 0.000000 | 0.000000 | 0.471228 | -0.561469 | 0.026788 | -0.104122 | 0.000000 | 0.001136 | -0.000065 |
| 2 | 0.238495 | -23.937845 | 0.000000 | 0.000000 | -0.342079 | -0.582975 | 0.000416 | 0.000339 | 0.127921 | -0.000127 | -0.000240 |
| 3 | -0.228120 | 2.818354 | 0.029315 | 0.071177 | 0.103766 | -0.062362 | -0.003305 | 0.000948 | -0.003327 | 0.000078 | 0.000145 |
| 4 | -0.053401 | 32.830485 | 0.070601 | 0.048295 | 0.122727 | -0.691631 | 0.114690 | 0.115410 | -0.029081 | -0.000064 | 0.000142 |
data_x.shape
</div>
<div class="prompt output_prompt">Out[42]:</div>
(633, 11)
data_x.describe()
</div>
<div class="prompt output_prompt">Out[43]:</div>
| distance | avg_speed | acs | acs_idle | idle_speed | smooth_speed | without_gear | with_gear | economical_speed | sharp_turn | acceleration | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| count | 633.000000 | 633.000000 | 633.000000 | 633.000000 | 633.000000 | 633.000000 | 633.000000 | 633.000000 | 633.000000 | 633.000000 | 633.000000 |
| mean | 0.229736 | -6.440642 | 0.042807 | -0.046857 | -0.060265 | -0.179363 | -0.003372 | 0.006495 | 0.012537 | -0.000126 | -0.000056 |
| std | 0.489846 | 28.344863 | 0.196066 | 0.128160 | 0.158991 | 0.502956 | 0.063343 | 0.165652 | 0.210383 | 0.000283 | 0.000377 |
| min | -0.426985 | -53.604094 | -0.994052 | -0.660708 | -0.529819 | -3.088889 | -0.176723 | -2.742593 | -0.789326 | -0.004440 | -0.001327 |
| 25% | -0.036451 | -34.058430 | -0.045746 | -0.121145 | -0.165821 | -0.565963 | -0.042504 | -0.068378 | -0.123138 | -0.000224 | -0.000312 |
| 50% | 0.148542 | -3.626165 | 0.000000 | -0.017720 | -0.039279 | -0.238453 | 0.000000 | 0.005794 | 0.008953 | -0.000072 | -0.000044 |
| 75% | 0.396871 | 20.102755 | 0.105704 | 0.016907 | 0.042837 | 0.227981 | 0.034733 | 0.098355 | 0.169764 | 0.000008 | 0.000192 |
| max | 8.932278 | 44.573739 | 1.556257 | 0.387177 | 0.471228 | 0.834543 | 0.467464 | 0.334345 | 0.621732 | 0.001136 | 0.001022 |
min_maxs2 = {
'avg_speed': [data_x['avg_speed'].quantile(0.01, interpolation='lower'), data_x['avg_speed'].quantile(0.99, interpolation='lower')],
'idle_speed': [data_x['idle_speed'].quantile(0.01, interpolation='lower'), data_x['idle_speed'].quantile(0.99, interpolation='lower')],
'smooth_speed': [data_x['smooth_speed'].quantile(0.01, interpolation='lower'), data_x['smooth_speed'].quantile(0.99, interpolation='lower')],
'without_gear': [data_x['without_gear'].quantile(0.01, interpolation='lower'), data_x['without_gear'].quantile(0.99, interpolation='lower')],
'with_gear': [data_x['with_gear'].quantile(0.01, interpolation='lower'), data_x['with_gear'].quantile(0.99, interpolation='lower')],
}
</div>
min_maxs = {}
for col in data_x.columns:
if col == 'distance':
continue
min_maxs[col] = [data_x[col].quantile(0.01, interpolation='lower'), data_x[col].quantile(0.99, interpolation='lower')]
</div>
for key, value in min_maxs.items():
data_x = data_x[(data_x[key] >= value[0]) & (data_x[key] <= value[1])].reset_index(drop=True)
data_x.head()
</div>
<div class="prompt output_prompt">Out[46]:</div>
| distance | avg_speed | acs | acs_idle | idle_speed | smooth_speed | without_gear | with_gear | economical_speed | sharp_turn | acceleration | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 0.238495 | -23.937845 | 0.000000 | 0.000000 | -0.342079 | -0.582975 | 0.000416 | 0.000339 | 0.127921 | -0.000127 | -0.000240 |
| 1 | -0.228120 | 2.818354 | 0.029315 | 0.071177 | 0.103766 | -0.062362 | -0.003305 | 0.000948 | -0.003327 | 0.000078 | 0.000145 |
| 2 | -0.053401 | 32.830485 | 0.070601 | 0.048295 | 0.122727 | -0.691631 | 0.114690 | 0.115410 | -0.029081 | -0.000064 | 0.000142 |
| 3 | 0.138776 | -29.274609 | 0.000000 | 0.000000 | -0.018761 | 0.354382 | -0.066567 | -0.103120 | 0.114558 | -0.000033 | -0.000140 |
| 4 | -0.068668 | 27.737001 | 0.000000 | 0.000000 | -0.056566 | -0.507694 | 0.047777 | 0.081056 | -0.358102 | -0.000117 | 0.000358 |
min_maxs = min_maxs2
</div>
min_maxs
</div>
<div class="prompt output_prompt">Out[48]:</div>
{'avg_speed': [-51.621932734195525, 41.412472523975026],
'idle_speed': [-0.4410424367192252, 0.28424100553722353],
'smooth_speed': [-1.4261626899586215, 0.6907720409622349],
'without_gear': [-0.1444684040642318, 0.1389533952208047],
'with_gear': [-0.20398162286404914, 0.23038489260487244]}
data_x.shape
</div>
<div class="prompt output_prompt">Out[49]:</div>
(528, 11)
数据切割¶
data_x = data_x[data_x['distance'].abs() < 0.5].reset_index(drop=True)
</div>
data_x.shape
</div>
<div class="prompt output_prompt">Out[51]:</div>
(453, 11)
iplot(px.histogram(data_x, x='acs_idle', histnorm='probability'))
</div>
<div class="prompt"></div>
<div id="79074f16-a819-4fc7-a637-614fd36f51ad" class="plotly-graph-div" style="height:600px; width:100%;"></div>
<script type="text/javascript">
require(["plotly"], function(Plotly) {
window.PLOTLYENV=window.PLOTLYENV || {};
if (document.getElementById("79074f16-a819-4fc7-a637-614fd36f51ad")) {
Plotly.newPlot(
'79074f16-a819-4fc7-a637-614fd36f51ad',
[{"alignmentgroup": "True", "bingroup": "x", "histnorm": "probability", "hoverlabel": {"namelength": 0}, "hovertemplate": "acs_idle=%{x}<br>count=%{y}", "legendgroup": "", "marker": {"color": "#636efa"}, "name": "", "offsetgroup": "", "orientation": "v", "showlegend": false, "type": "histogram", "x": [0.0, 0.07117735589708449, 0.048295454545454544, 0.0, 0.0, -0.2295954577714691, 0.1700705532862978, -0.11064785118665812, -0.0760470242468773, 0.16904761904761906, -0.2544127188133798, -0.049347630720876286, 0.0, -0.1934553135706664, -0.2140165230980332, -0.11229368918371027, -0.11244635193133047, 0.04176710532120985, 0.19861162904104876, -0.00965565226934939, -0.014963824813144178, -0.11316112158183825, 0.14248704663212436, 0.01690651690651691, -0.2321779308198125, 0.013388259526261586, -0.19545743190217868, -0.21808634567282545, 0.2418502202643172, -0.1166225749559083, 0.043700787401574806, -0.08339272694503838, 0.05132382892057027, -0.05123496411555161, 0.03300455235204856, 0.02123881810788832, 0.025409044293105143, 0.0, 0.0, 0.0, 0.0, 0.16214995483288167, 0.06002087259029967, 0.06299810246679317, 0.016484065165160017, 0.08619227972923671, -0.13202084944243114, 0.08237640315680961, -0.13600647658750836, 0.003138665699982104, -0.17826015457983885, 0.09210027910685807, 0.12833827615238333, -0.15954453382951655, -0.08415147265077139, 0.04671461439518832, -0.113280531492787, -0.16322701688555347, 0.02018844341685889, -0.2480701754385965, -0.27258541727187113, 0.1796064808132131, 0.04140625, -0.1252764834544301, -0.06535646207184592, -0.025144964752373072, -0.10910460404996893, 0.08833216796084349, -0.09191104484283244, 0.2337933918862401, -0.25175821249765784, -0.045646370512304746, -0.3303994265658214, -0.09543913341118672, -0.06449610579507857, 0.10790529450874403, 0.09875520128821487, -0.1081593927893738, -0.1335180633218688, -0.1030548116705558, 0.07495741056218057, 0.06887878721561687, -0.0009963123310813317, -0.0022572201445959267, -0.2437664277586181, -0.13263606937713995, -0.2406366216189399, -0.09237813780251652, 0.1270410195141378, -0.09575012800819252, 0.21129755106781428, -0.18788569301275498, 0.0, 0.111507889923228, -0.024121070598426442, -0.0605759682224429, -0.08379213340652257, 0.1400034036678116, -0.2840163934426229, -0.013115586303959842, -0.23494521118429254, -0.17671754775840792, -0.2961779695592944, -0.14279197080291972, 0.11226476314081764, -0.14667198086887204, 0.06152877697841728, -0.06958762886597937, -0.09166132063153233, -0.2472242783123612, -0.04274079345567991, 0.0008994111478583533, -0.059757626410363564, 0.047394366061946816, -0.16905444126074498, -0.17625815400266534, 0.06532528245399356, -0.059226627508565825, 0.17238255370006866, 0.08771753049559866, -0.08367671179834191, -0.12981386384345125, -0.012009457429759672, -0.19943383018527872, -0.11946606925150023, -0.2575493393035311, -0.13007284079084286, -0.0022385458277265897, -0.28720170141851586, -0.052176550421903584, 0.2188097799071763, -0.0020964360587002093, 0.2862046517133219, -0.10831420055182968, -0.19901049379706706, -0.2115539632781012, -0.07025558940761442, -0.02911888189991726, 0.060251412250501124, 0.030188937568455643, 0.0011464793787622216, 0.01607792802499508, 0.09458975277678253, -0.06859942275680395, 0.08272582990209121, 0.09861431286678136, -0.31521042515067604, 0.03531785766819026, 0.04845411103132465, -0.0435951332443528, -0.07750596742983856, 0.07138835994693643, 0.0, 0.04135338345864661, -0.03555243108916718, 0.0, 0.0, 0.0, 0.06456291903042805, 0.05378234044317972, -0.0073253980255341125, 0.057963958215065614, -0.19520277806154565, 0.01413171033929807, 0.171176776393238, 0.04204496192089885, -0.147034248239009, 0.1274864376130199, -0.1410488245931284, -0.09777790952836957, -0.15587846763540292, 0.03691316291821195, -0.08565022421524664, -0.023348368267444942, 0.011442786069651741, -0.055729710902124696, -0.021095671546069283, -0.10885848925760884, 0.0, -0.0022517491066913406, -0.08522515816896167, -0.0007792373499246608, -0.10943095901313173, -0.017720413492526406, 0.027586840036411785, -0.1133828996282528, 0.0034791252485089465, -0.27814432989690724, 0.0, 0.0, 0.0, -0.02488702546533111, 0.0, -0.011642156862745098, 0.0, -0.06975414522584332, 0.0, 0.03587786259541985, -0.07529568571071163, 0.0, 0.0, 0.0, -0.08857084382421955, -0.12936292688326784, -0.006978155339805826, 0.0, -0.023073789176113163, -0.2453688081332468, -0.059447969601413415, 0.0, -0.0654914343062408, -0.012941444376411815, -0.09647036236261904, 0.17466063348416289, -0.11655308202508395, 0.06873977086743044, -0.12140586503458195, 0.0014832103327678534, -0.17484217211137618, -0.16716749664597402, 0.026424834902377747, -0.032833219982158234, -0.011552377123754315, -0.06852245881377411, -0.0077695046940757535, 0.0, -0.03603013429413692, -0.07480196746121832, -0.08491627607590002, 0.10683567224988684, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.07261687581632004, 0.021074970329692442, -0.08563921846654292, -0.15108774132464012, -0.03227888960619755, -0.016854843992877094, -0.07611737271667314, 0.003914927935639328, -0.029471960704052395, -0.11317661562667895, -0.05707749870341557, 0.0, 0.051243208954062175, -0.029792753184161483, -0.051752921535893164, -0.012446967990846077, -0.026546107736707632, -0.031571722717913524, 0.057954468393419924, -0.06182540620340854, -0.0593758168632645, -0.13160088680841606, -0.07088753685619231, -0.11413919723124973, 0.0812562358096371, 0.0015508566080789654, -0.12935865003470526, 0.2667987810678312, -0.04673937800132828, -0.03926264962733292, 0.2418162095149543, -0.13276283802599592, -0.2145951885718771, -0.0721875, 0.02404152412410051, 0.009718267553244016, 0.0, -0.03146206045650833, 0.025207400968050058, -0.16394723485924956, 0.014085318431892159, -0.0388565914728668, 0.0737994350282486, 0.0, 0.21590089113862607, -0.17430623890551353, 0.06331546672240387, 0.016824851258485717, 0.0, -0.012106454489333972, -0.1402809812818028, -0.19989026839170146, -0.023267143776320196, -0.02035002035002035, -0.06584166402348553, 0.04502271788517142, -0.06367432150313153, 0.007098240199059778, 0.0, -0.17059739640384805, -0.15197195359855314, 0.053641629675738885, -0.08780136210523218, 0.002791996277338297, -0.13782402486266598, 0.14781319495922907, -0.24603852781818886, 0.1121511345039586, -0.21863406567479327, 0.15575125738340662, -0.004903240451733723, -0.14763869784502526, 0.1459394254673897, 0.06135530738371461, -0.2060422529643888, 0.08985381301801339, -0.005665373984030549, -0.07287037300613303, -0.09947906332502177, -0.11692628962528305, -0.08899221887080286, -0.09013184515032248, -0.24039187083979005, 0.014683405055012075, -0.20618983655884812, 0.0022939137208096844, 0.04175326202324888, -0.2849228581822042, -0.21922840031901344, 0.029863187595146362, 0.11155971026185174, -0.06643732031590269, 0.009244476122594436, -0.04799168033913992, -0.04174192665571976, 0.003522528209379379, -0.1438121901035518, 0.0211127163735598, -0.13040319651289506, 0.08094812164579608, 0.0, 0.0, 0.0, 0.0, 0.0, 0.062361228083607674, -0.1616503414911978, 0.05014168545766296, -0.0058489062726350865, 0.0, 0.029354784366576826, 0.21278884410518267, -0.0716950579428057, 0.06626854683507585, -0.08540415965436689, -0.02753906342172449, 0.06455610257000825, -0.05337334418967071, 0.003178387539227161, 0.009577150888854807, 0.0, -0.017562133087237246, 0.08543754742753074, 0.04000853485064011, -0.003229150469082051, -0.05586592178770949, 0.044980800877674164, -0.11759399549145935, 0.036988110964332896, 0.0, -0.05910780669144981, 0.0, -0.001195219123505976, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.12962962962962965, 0.06342056777498176, -0.3020909301461281, 0.1737382760160786, 0.029175185134705375, -0.1410499175528501, 0.0, -0.017909993316974113, 0.0, -0.06378132118451026, 0.03248730964467005, -0.039447982835985364, -0.0936495449065352, 0.01134610590323662, -0.1921711899791232, 0.07225777740103417, 0.1323922759105557, 0.0013407428502012347, -0.03159335775740932, 0.07112316618084479, -0.09263565891472868, -0.08592571296245419, -0.0013595076249092244, -0.0976134976134976, -0.01175746222852432, 0.0, 0.01757105943152455, 0.0498466283834734, -0.14023840601519472, 0.04596472474612507, -0.14409448818897638, 0.04665854195929384, -0.21918052496106769, 0.07929073268651722, 0.07477079672906456, -0.1740955300779233, 0.08275995914198163, -0.06895786903629678, -0.2705160658493111, -0.10324675324675324, 0.0686257173379157, 0.0, -0.029959460464405813, 0.08662450529005347, -0.10030172441508316, 0.1069000881659149, 0.10606060606060606, -0.05449398443029016, 0.0, 0.0, 0.0, 0.07490144546649145, -0.17687299113700822, 0.05849043007033323, -0.0010874122025606864, -0.10005613390125406, -0.1023623043315434, 0.02686415034241121, -0.2608880496666953, 0.14239106340764934, -0.12286171484663773, 0.06694357763346546, -0.12114523527953155, 0.0, -0.01667857993805099, 0.0, -0.0190795677049158, -0.015618493905461744, -0.00687190615912759, -0.006572769953051643, -0.01276595744680851, 0.006069802731411229, -0.01118294804775232, 0.0], "xaxis": "x", "yaxis": "y"}],
{"barmode": "relative", "height": 600, "legend": {"tracegroupgap": 0}, "margin": {"t": 60}, "template": {"data": {"bar": [{"error_x": {"color": "#2a3f5f"}, "error_y": {"color": "#2a3f5f"}, "marker": {"line": {"color": "#E5ECF6", "width": 0.5}}, "type": "bar"}], "barpolar": [{"marker": {"line": {"color": "#E5ECF6", "width": 0.5}}, "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.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.0, "#f0f921"]], "type": "contour"}], "contourcarpet": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "type": "contourcarpet"}], "heatmap": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "heatmap"}], "heatmapgl": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "heatmapgl"}], "histogram": [{"marker": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "type": "histogram"}], "histogram2d": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "histogram2d"}], "histogram2dcontour": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "histogram2dcontour"}], "mesh3d": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "type": "mesh3d"}], "parcoords": [{"line": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "type": "parcoords"}], "scatter": [{"marker": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "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.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.0, "#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}, "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.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.0, "#f0f921"]], "sequentialminus": [[0.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.0, "#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": "", "zerolinecolor": "white", "zerolinewidth": 2}, "yaxis": {"automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "zerolinecolor": "white", "zerolinewidth": 2}}}, "xaxis": {"anchor": "y", "domain": [0.0, 0.98], "title": {"text": "acs_idle"}}, "yaxis": {"anchor": "x", "domain": [0.0, 1.0], "title": {"text": "count"}}},
{"responsive": true}
).then(function(){
var gd = document.getElementById('79074f16-a819-4fc7-a637-614fd36f51ad');
var x = new MutationObserver(function (mutations, observer) {{
var display = window.getComputedStyle(gd).display;
if (!display || display === 'none') {{
console.log([gd, 'removed!']);
Plotly.purge(gd);
observer.disconnect();
}}
}});
// Listen for the removal of the full notebook cells
var notebookContainer = gd.closest('#notebook-container');
if (notebookContainer) {{
x.observe(notebookContainer, {childList: true});
}}
// Listen for the clearing of the current output cell
var outputEl = gd.closest('.output');
if (outputEl) {{
x.observe(outputEl, {childList: true});
}}
})
};
});
</script>
</div>
min_maxs
</div>
<div class="prompt output_prompt">Out[54]:</div>
{'avg_speed': [-51.621932734195525, 41.412472523975026],
'idle_speed': [-0.4410424367192252, 0.28424100553722353],
'smooth_speed': [-1.4261626899586215, 0.6907720409622349],
'without_gear': [-0.1444684040642318, 0.1389533952208047],
'with_gear': [-0.20398162286404914, 0.23038489260487244]}
stds = [col for col in data_x.columns if col not in list(min_maxs) + ['distance']]
stds
</div>
<div class="prompt output_prompt">Out[56]:</div>
['acs', 'acs_idle', 'economical_speed', 'sharp_turn', 'acceleration']
data_x.describe()
</div>
<div class="prompt output_prompt">Out[57]:</div>
| distance | avg_speed | acs | acs_idle | idle_speed | smooth_speed | without_gear | with_gear | economical_speed | sharp_turn | acceleration | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| count | 453.000000 | 453.000000 | 453.000000 | 453.000000 | 453.000000 | 453.000000 | 453.000000 | 453.000000 | 453.000000 | 453.000000 | 453.000000 |
| mean | 0.104706 | -0.850899 | 0.039484 | -0.030939 | -0.046611 | -0.255106 | 0.001487 | 0.035037 | -0.020283 | -0.000079 | -0.000006 |
| std | 0.203774 | 26.753502 | 0.155878 | 0.105407 | 0.144603 | 0.404190 | 0.054409 | 0.094853 | 0.190077 | 0.000152 | 0.000334 |
| min | -0.426985 | -51.520323 | -0.335255 | -0.330399 | -0.436964 | -1.406471 | -0.138302 | -0.203982 | -0.514268 | -0.000695 | -0.000940 |
| 25% | -0.060484 | -26.207044 | -0.044206 | -0.095439 | -0.145260 | -0.574704 | -0.033859 | -0.036968 | -0.152447 | -0.000182 | -0.000219 |
| 50% | 0.096973 | 3.548778 | 0.001166 | -0.005849 | -0.019430 | -0.350080 | 0.001730 | 0.042694 | -0.033392 | -0.000047 | 0.000000 |
| 75% | 0.269420 | 22.896486 | 0.103145 | 0.025409 | 0.053965 | 0.048863 | 0.038242 | 0.115736 | 0.129223 | 0.000030 | 0.000216 |
| max | 0.498554 | 41.412473 | 0.676811 | 0.286205 | 0.284241 | 0.679493 | 0.138953 | 0.230385 | 0.428343 | 0.000245 | 0.000767 |
minmax_scaler = MinMaxScaler()
std_scaler = StandardScaler()
</div>
data_x['acs'].std() ** 2
</div>
<div class="prompt output_prompt">Out[59]:</div>
0.024297971088833834
x1 = data_x[min_maxs.keys()].values
x2 = data_x[stds].values
</div>
x1 = minmax_scaler.fit_transform(x1)
x2 = std_scaler.fit_transform(x2)
</div>
minmax_scaler.data_min_
</div>
<div class="prompt output_prompt">Out[62]:</div>
array([-51.52032262, -0.43696419, -1.4064708 , -0.13830228,
-0.20398162])
minmax_scaler.data_max_
</div>
<div class="prompt output_prompt">Out[63]:</div>
array([41.41247252, 0.28424101, 0.67949319, 0.1389534 , 0.23038489])
std_scaler.var_
</div>
<div class="prompt output_prompt">Out[64]:</div>
array([2.42443332e-02, 1.10860194e-02, 3.60496195e-02, 2.29959783e-08,
1.11296355e-07])
std_scaler.mean_
</div>
<div class="prompt output_prompt">Out[65]:</div>
array([ 3.94835887e-02, -3.09393541e-02, -2.02834151e-02, -7.88421458e-05,
-6.35169372e-06])
# std_scaler.var_
</div>
# print(x1.shape, x2.shape)
</div>
x = np.concatenate([x1, x2], axis=1)
# x = x2
</div>
# x = (data_x - data_x.mean()).iloc[:, 1:].values
</div>
after_df = pd.DataFrame(x, columns=list(min_maxs.keys()) + stds)
print(after_df.shape, data_x.shape)
after_df['distance'] = data_x['distance']
for col in stds:
after_df = after_df[after_df[col].abs() <= 3].reset_index(drop=True)
after_df.describe()
</div>
<div class="prompt"></div>
(453, 10) (453, 11)
<div class="prompt output_prompt">Out[70]:</div>
| avg_speed | idle_speed | smooth_speed | without_gear | with_gear | acs | acs_idle | economical_speed | sharp_turn | acceleration | distance | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| count | 440.000000 | 440.000000 | 440.000000 | 440.000000 | 440.000000 | 440.000000 | 440.000000 | 440.000000 | 440.000000 | 440.000000 | 440.000000 |
| mean | 0.544840 | 0.540288 | 0.551291 | 0.505293 | 0.550379 | -0.072003 | 0.014984 | -0.003437 | 0.016661 | -0.002541 | 0.102004 |
| std | 0.287738 | 0.200288 | 0.193503 | 0.195712 | 0.219310 | 0.876400 | 0.972739 | 0.999704 | 0.961396 | 0.996219 | 0.202384 |
| min | 0.000000 | 0.000000 | 0.000000 | 0.000000 | 0.000000 | -2.406705 | -2.844141 | -2.601735 | -2.753512 | -2.797615 | -0.426985 |
| 25% | 0.275532 | 0.402921 | 0.399683 | 0.378846 | 0.374730 | -0.547633 | -0.577304 | -0.714329 | -0.656314 | -0.636992 | -0.058288 |
| 50% | 0.590539 | 0.574636 | 0.504421 | 0.506732 | 0.567631 | -0.253578 | 0.243660 | -0.069439 | 0.206128 | 0.019039 | 0.096232 |
| 75% | 0.799941 | 0.680800 | 0.698807 | 0.636874 | 0.737920 | 0.345690 | 0.537584 | 0.782284 | 0.718773 | 0.656972 | 0.253238 |
| max | 1.000000 | 1.000000 | 1.000000 | 1.000000 | 1.000000 | 2.891058 | 2.827787 | 2.362839 | 2.138621 | 2.319161 | 0.498554 |
after_df.shape
</div>
<div class="prompt output_prompt">Out[71]:</div>
(440, 11)
for col in stds:
after_df[col] = after_df[col] / 6 + 0.5
</div>
from sklearn.linear_model import LogisticRegression
from sklearn import linear_model
</div>
iplot(px.histogram(after_df, x='distance', histnorm='probability'))
</div>
<div class="prompt"></div>
<div id="5a221eec-e246-4780-be7c-97a85403450f" class="plotly-graph-div" style="height:600px; width:100%;"></div>
<script type="text/javascript">
require(["plotly"], function(Plotly) {
window.PLOTLYENV=window.PLOTLYENV || {};
if (document.getElementById("5a221eec-e246-4780-be7c-97a85403450f")) {
Plotly.newPlot(
'5a221eec-e246-4780-be7c-97a85403450f',
[{"alignmentgroup": "True", "bingroup": "x", "histnorm": "probability", "hoverlabel": {"namelength": 0}, "hovertemplate": "distance=%{x}<br>count=%{y}", "legendgroup": "", "marker": {"color": "#636efa"}, "name": "", "offsetgroup": "", "orientation": "v", "showlegend": false, "type": "histogram", "x": [0.23849530235853697, -0.2281196195489309, -0.05340121379051255, 0.13877600542906054, -0.06866767388985806, -0.20677707747628996, 0.34295152643490856, 0.3427295214787367, -0.17888330764984586, 0.308563646111224, 0.12270992049758946, 0.11745735285385295, 0.0696906456722417, 0.27349803347452273, -0.08479001281307286, 0.4378004942948437, -0.1760119011847162, -0.07662598019817712, -0.08908440824237808, -0.2464399791154688, 0.0723205375627276, -0.07305308037501013, -0.12046255585218303, 0.3253144600415623, 0.11736428226002005, 0.17679123640600136, 0.4657233313159159, -0.2840065973794482, -0.19803848779128008, -0.3054678214813551, 0.336179200990828, -0.3397747423516132, 0.33945236325260275, -0.3556643352792885, -0.14943707110819324, 0.006022339612571147, 0.2147598055325408, 0.13186279081731578, 0.4042011621602275, -0.10255616570026847, -0.0689998733922339, -0.08198891999295399, -0.18893034489520832, -0.1510587522159973, 0.45994965796247794, -0.2490626487965815, 0.31356349323999977, 0.018208667631459896, 0.4940985792834605, -0.08397223531954634, -0.18485040557241306, -0.15923195916021415, 0.2382030971216387, -0.1555099452283577, -0.2081494136956078, -0.06565323756235397, -0.0026065069752541077, 0.39076804361588, 0.4908944804496396, -0.3282033732291688, 0.15729512762097464, 0.04801754658684243, 0.3145704257466646, -0.029343242590138208, 0.24123050399524404, -0.11310012678838965, 0.4929683166697405, -0.12557952888455734, 0.4096829057171334, -0.08314109294563732, 0.1111386777848966, 0.1183153339708305, -0.009347512289401227, -0.08615017978797823, 0.01041178091050421, 0.4901277636383092, -0.057556600871571224, 0.05209497227256765, -0.0789689014020043, -0.05594740782125107, -0.009296798945405804, 0.09604512486227268, 0.10956456529610126, 0.10733834833765266, 0.17472790243761693, 0.4007594290774759, 0.01287903870739604, 0.17601713044909695, -0.0018944604362193247, 0.12976941483406046, 0.11672220714030025, -0.08141169489890909, 0.0524922039847544, 0.3281058324843782, 0.003973392134374976, -0.1763244827716295, 0.04667652852783944, 0.034593482002730484, 0.2419506912376053, 0.3211534726125709, 0.20373657945979676, 0.1847876222238971, -0.014060390181272808, 0.2530565788807586, -0.301061223911974, 0.17925532112276898, 0.02944147273157771, 0.44772081727418267, -0.007385770783366441, 0.007722686794157552, 0.14402311455334527, -0.09130210388841098, 0.3156798154386171, 0.09926123062742387, -0.16676838891278198, 0.174278160604171, -0.10986952586424936, -0.053086689184349, -0.12615643930487452, 0.4230831707394465, 0.008162380780230237, 0.3217035143228295, -0.0604839030094213, 0.08845344005090737, -0.3482908748706689, 0.03903377872586145, 0.09121677610164358, -0.12906909592730387, -0.2244699100559944, -0.03645090693492903, 0.26431113774256243, 0.025329376137406268, -0.05290404078377964, 0.4361967875981039, -0.13620666759062214, -0.08289680208650063, -0.11799312327530664, -0.0077320941087468675, -0.07065320846989298, -0.2817320795859768, 0.4425558518624759, -0.0704122702115677, -0.12705696197017302, 0.28545698370776784, -0.238483071539118, 0.3144893559845781, 0.03516238456564569, 0.4232874012881447, -0.2605183650826084, 0.15123941694070894, 0.07742475759732502, 0.1569276750924915, 0.2469493595411303, -0.10111562774355144, 0.0783494119788557, -0.1663971724126886, -0.11542075192270995, 0.2997544941282886, 0.2945535688155594, 0.17403820502780887, 0.06989894698181986, -0.03367876822863358, 0.4099431202533648, -0.0131695214026597, 0.4852061138948187, 0.20565758248059665, 0.4392646275525476, -0.12592435696130655, 0.004945246176914386, 0.3222355042909089, -0.11748821577564605, 0.34782651681057297, 0.013159558202994416, -0.047570356260229874, 0.19758065783764667, -0.0007225695885472173, 0.1290105399430954, -0.046427462642453454, 0.47931118062012, -0.07178552920564141, -0.2325792446794993, 0.4458628941441687, -0.1790498076089081, 0.22411863490405515, 0.1290430560854161, -0.04494200501645007, -0.10202807596871157, 0.07556287403934814, 0.03016972399457285, 0.1962696897230265, 0.12811734143125242, 0.21372821705587253, 0.1679860701483613, 0.4259864785028331, 0.1885495384229692, -0.0183113923542062, 0.23872743539391594, -0.06832185559615556, 0.3275735325768876, 0.06717720544761141, 0.4188675877710609, 0.10512553753475706, 0.4866088550907857, 0.20293387329894294, -0.426985247253961, 0.4165418564614984, 0.301035282887238, 0.07065725654856725, 0.35651160711355523, -0.2335039932079465, 0.4520308375249367, -0.2999776097714466, 0.16458470321137253, 0.062113082491762624, 0.13346326892160376, 0.35798833112265016, -0.08323607721347825, 0.4356555320365088, 0.022660563399570455, 0.2263192748071452, 0.4877606196257105, 0.3079878342186908, 0.4334710152127213, 0.14075433167775442, 0.3182224003086518, -0.16559327762135811, -0.04445851316392868, 0.4121013574992396, 0.3101078861505806, -0.08686757900684539, 0.15416921359237845, -0.13829625895247422, 0.12925528860404878, 0.3292137123374854, -0.06710025307742062, 0.13701159070515456, 0.04476109780754589, 0.24880703411356864, 0.028915135697010094, 0.09641982509408664, 0.12112350234281323, -0.08272279812493444, 0.2095763964962125, 0.33159586369905303, 0.20943939544619794, 0.10761317763379964, 0.11038729285703908, 0.3199161711585681, 0.08977030873669034, 0.2842607615722197, 0.3045336088229198, 0.11528344905603415, -0.061690279680746474, 0.2834740384979708, 0.44112995247554704, 0.3220008713461804, 0.11122601893890538, -0.11467762190203745, 0.0625278222640493, 0.15851904830532448, -0.2010243233158251, 0.08509439576850664, 0.31493081239547793, 0.054919001237185405, 0.33836069458553863, 0.27657280537368045, 0.2021711420562593, 0.02323791738207981, -0.05426314937161558, 0.0038236680894112585, 0.1802872097135404, 0.006702402307323219, 0.3051157930446373, -0.0909758345046785, 0.20114276170283166, -0.053763786515365286, 0.30269591175810584, -0.06630531799446082, 0.2803398582210115, -0.06349690800905439, -0.00999229874130758, 0.4884947005990454, -0.034153138781098824, 0.32666953164266777, 0.3600653687131168, 0.005030522419055661, -0.15514672947834318, 0.2265413807460728, -0.037962143356708784, 0.46751415941903, 0.1421788260695811, 0.07675918085566802, 0.24462318158360485, 0.4383215402780217, 0.1682783029620767, 0.2381329223660165, 0.14218751052568468, 0.056424233865752786, 0.09788097453312616, -0.046413372173996666, -0.07283915271890895, -0.03246642924649845, 0.4605600459771471, -0.13503101288204455, 0.3802666695299903, -0.08594195881682397, 0.04089278547546793, 0.1873179563022496, 0.18282240274383432, 0.3351711404936861, 0.13770003503817896, 0.3554672839481554, 0.22662125661318, 0.1385690724826243, 0.4985540287300743, -0.050061052314983256, -0.007334113708353018, 0.21272037918069173, -0.292663968049949, 0.04787405627788677, -0.014333673681351078, 0.18192150522290815, 0.005856280879718234, 0.1384781474848804, 0.2694196517898477, 0.0621240401357106, 0.23113136580948426, 0.17345304881773838, 0.4160871902053578, -0.26140465483118225, 0.1427190390084423, -0.009922987308016551, 0.21593038412804644, 0.11428122835171185, 0.005925684865398351, 0.34471535322371794, 0.059100645779598386, 0.04845426710016487, 0.3919092028945483, 0.19138878134289672, -0.009845802220472044, 0.4088622510722415, -0.21219701362327134, 0.2537824329620233, 0.05309177707401047, -0.08185325932609244, 0.2887135247588977, 0.10863643256172728, -0.03904913256185827, 0.2763606896392505, 0.10695922497027176, 0.08552585715456118, -0.07378562898370755, -0.002494444520381167, 0.1728252998669031, -0.04105198247677955, 0.3931852123264299, 0.07690459956772489, 0.0010628318097001266, -0.0017099692931280552, 0.13446246647857318, 0.1596365341507544, 0.06167477698757184, -0.07738514087500692, 0.2218134233885929, 0.11042957302694556, -0.08510770117285749, 0.05106004321885571, 0.049358455935747836, 0.012167365950928044, 0.1872637349695676, -0.13478553716044495, -0.16287538092220902, -0.28200152729876804, 0.09033391626661412, 0.4134478354582571, 0.06777937004404233, 0.3460767231172197, -0.12666106227201235, 0.057966494770021575, -0.1270200787736121, 0.3614835086591801, 0.15846121560455506, 0.09091796079360416, 0.4062378908497071, -0.08693251296614013, 0.27919885591781, 0.15665904867073044, 0.3367672416173275, -0.06519328533477264, 0.18821569091910773, 0.007218129686374919, 0.4722998148577546, 0.14038105900254694, -0.14373612677108294, -0.04400950457553465, -0.02394888945254392, -0.0655454732512919, 0.1853366738397704, 0.0616630598055985, 0.2635447657278505, -0.04151547869058958, -0.027172680185502673, 0.36450576096496, -0.06057349924394673, 0.3796110644205117, -0.1300446477013899, -0.09700390935770886, 0.3545455896499434, 0.14854190711327053, 0.22726989839142075, -0.18489034115333525, 0.09697284008441033, -0.07461209299092575, 0.08501001636345751, 0.3426517048511202, 0.23823915864270265, -0.21897564490911947, 0.3711226223788755, -0.07571611274855039, 0.18239356659775607, 0.33447233392737497, 0.17718021805144635, 0.2303596468181024, 0.4627637276969248, -0.07406498167189046, 0.34735834082103945, -0.14987515342948132, 0.2942851423771835, 0.4234193079361728, 0.12863742796031194, 0.032625715970097564, 0.4334953513743873, 0.09867713922198183, 0.4237128730200461, 0.2281712798426514, 0.1990178545130119, 0.0941495549386926, -0.35015803770567544, 0.11775229230944227], "xaxis": "x", "yaxis": "y"}],
{"barmode": "relative", "height": 600, "legend": {"tracegroupgap": 0}, "margin": {"t": 60}, "template": {"data": {"bar": [{"error_x": {"color": "#2a3f5f"}, "error_y": {"color": "#2a3f5f"}, "marker": {"line": {"color": "#E5ECF6", "width": 0.5}}, "type": "bar"}], "barpolar": [{"marker": {"line": {"color": "#E5ECF6", "width": 0.5}}, "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.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.0, "#f0f921"]], "type": "contour"}], "contourcarpet": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "type": "contourcarpet"}], "heatmap": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "heatmap"}], "heatmapgl": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "heatmapgl"}], "histogram": [{"marker": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "type": "histogram"}], "histogram2d": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "histogram2d"}], "histogram2dcontour": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "colorscale": [[0.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.0, "#f0f921"]], "type": "histogram2dcontour"}], "mesh3d": [{"colorbar": {"outlinewidth": 0, "ticks": ""}, "type": "mesh3d"}], "parcoords": [{"line": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "type": "parcoords"}], "scatter": [{"marker": {"colorbar": {"outlinewidth": 0, "ticks": ""}}, "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.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.0, "#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}, "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.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.0, "#f0f921"]], "sequentialminus": [[0.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.0, "#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": "", "zerolinecolor": "white", "zerolinewidth": 2}, "yaxis": {"automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "zerolinecolor": "white", "zerolinewidth": 2}}}, "xaxis": {"anchor": "y", "domain": [0.0, 0.98], "title": {"text": "distance"}}, "yaxis": {"anchor": "x", "domain": [0.0, 1.0], "title": {"text": "count"}}},
{"responsive": true}
).then(function(){
var gd = document.getElementById('5a221eec-e246-4780-be7c-97a85403450f');
var x = new MutationObserver(function (mutations, observer) {{
var display = window.getComputedStyle(gd).display;
if (!display || display === 'none') {{
console.log([gd, 'removed!']);
Plotly.purge(gd);
observer.disconnect();
}}
}});
// Listen for the removal of the full notebook cells
var notebookContainer = gd.closest('#notebook-container');
if (notebookContainer) {{
x.observe(notebookContainer, {childList: true});
}}
// Listen for the clearing of the current output cell
var outputEl = gd.closest('.output');
if (outputEl) {{
x.observe(outputEl, {childList: true});
}}
})
};
});
</script>
</div>
X = after_df.iloc[:, :-1]
y = after_df.loc[:, 'distance'] - after_df.loc[:, 'distance'].mean()
from sklearn.model_selection import train_test_split
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=53)
</div>
reg = linear_model.LinearRegression()
</div>
reg.fit(X_train, y_train)
</div>
<div class="prompt output_prompt">Out[77]:</div>
LinearRegression(copy_X=True, fit_intercept=True, n_jobs=None, normalize=False)
after_df.head()
</div>
<div class="prompt output_prompt">Out[78]:</div>
| avg_speed | idle_speed | smooth_speed | without_gear | with_gear | acs | acs_idle | economical_speed | sharp_turn | acceleration | distance | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 0.296800 | 0.131564 | 0.394779 | 0.500326 | 0.470388 | 0.457737 | 0.548975 | 0.630095 | 0.446732 | 0.383276 | 0.238495 |
| 1 | 0.584709 | 0.749760 | 0.644359 | 0.486905 | 0.471790 | 0.489116 | 0.661643 | 0.514885 | 0.672521 | 0.575834 | -0.228120 |
| 2 | 0.907654 | 0.776050 | 0.342690 | 0.912486 | 0.735304 | 0.533308 | 0.625423 | 0.492278 | 0.516407 | 0.574239 | -0.053401 |
| 3 | 0.239374 | 0.579867 | 0.844144 | 0.258733 | 0.232203 | 0.457737 | 0.548975 | 0.618365 | 0.550169 | 0.433052 | 0.138776 |
| 4 | 0.852846 | 0.527447 | 0.430869 | 0.671148 | 0.656214 | 0.457737 | 0.548975 | 0.203461 | 0.457666 | 0.681878 | -0.068668 |
reg.coef_
</div>
<div class="prompt output_prompt">Out[79]:</div>
array([-0.28016056, -0.13911922, -0.1505462 , -0.02798608, 0.00107875,
0.06146868, -0.3391931 , -0.21884858, -0.20782035, -0.32308545])
from scipy.stats import pearsonr
for idx, col in enumerate(data_df.columns[1:]):
print('{:>20s}: {} {}'.format(col, idx + 1, pearsonr(data_df.loc[:, 'distance'], data_df.loc[:, col])))
</div>
<div class="prompt"></div>
avg_speed: 1 (-0.4806056935158062, 6.771838194917686e-38)
acs: 2 (0.025909353896178537, 0.5152485744583909)
acs_idle: 3 (-0.3700028295037353, 5.705255667186981e-22)
idle_speed: 4 (-0.3228488553373969, 8.032180151372731e-17)
smooth_speed: 5 (0.2785124836395245, 9.67637030815978e-13)
without_gear: 6 (-0.2567446649900016, 5.489270993302441e-11)
with_gear: 7 (-0.2168626382253659, 3.566268286835245e-08)
over_speed: 8 (0.046565596512352606, 0.24204694520483655)
economical_speed: 9 (0.3582354174754291, 1.32959542617395e-20)
sharp_turn: 10 (-0.49814240667459775, 5.278312542744376e-41)
acceleration: 11 (-0.49021488077200454, 1.4122058291001258e-39)
deceleration: 12 (-0.07419675772517359, 0.06209243092334431)
from sklearn.metrics import mean_squared_error, r2_score, mean_absolute_error
</div>
mean_absolute_error(y_test, reg.predict(X_test))
</div>
<div class="prompt output_prompt">Out[82]:</div>
0.09102681542495218
r2_score(y_test, reg.predict(X_test))
</div>
<div class="prompt output_prompt">Out[83]:</div>
0.6527850673214266
after_df.head()
</div>
<div class="prompt output_prompt">Out[84]:</div>
| avg_speed | idle_speed | smooth_speed | without_gear | with_gear | acs | acs_idle | economical_speed | sharp_turn | acceleration | distance | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 0.296800 | 0.131564 | 0.394779 | 0.500326 | 0.470388 | 0.457737 | 0.548975 | 0.630095 | 0.446732 | 0.383276 | 0.238495 |
| 1 | 0.584709 | 0.749760 | 0.644359 | 0.486905 | 0.471790 | 0.489116 | 0.661643 | 0.514885 | 0.672521 | 0.575834 | -0.228120 |
| 2 | 0.907654 | 0.776050 | 0.342690 | 0.912486 | 0.735304 | 0.533308 | 0.625423 | 0.492278 | 0.516407 | 0.574239 | -0.053401 |
| 3 | 0.239374 | 0.579867 | 0.844144 | 0.258733 | 0.232203 | 0.457737 | 0.548975 | 0.618365 | 0.550169 | 0.433052 | 0.138776 |
| 4 | 0.852846 | 0.527447 | 0.430869 | 0.671148 | 0.656214 | 0.457737 | 0.548975 | 0.203461 | 0.457666 | 0.681878 | -0.068668 |
X = after_df.iloc[:, [0, 1, 2, 3, 5, 6, 7, 8, 9]]
y = after_df.loc[:, 'distance']
from sklearn.model_selection import train_test_split
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=53)
</div>
X.columns
</div>
<div class="prompt output_prompt">Out[86]:</div>
Index(['avg_speed', 'idle_speed', 'smooth_speed', 'without_gear', 'acs',
'acs_idle', 'economical_speed', 'sharp_turn', 'acceleration'],
dtype='object')
reg.fit(X_train, y_train)
reg.coef_
</div>
<div class="prompt output_prompt">Out[87]:</div>
array([-0.27961133, -0.13924411, -0.15054304, -0.02811706, 0.06150276,
-0.33922744, -0.2191993 , -0.20771092, -0.32300866])
mean_absolute_error(y_test, reg.predict(X_test))
</div>
<div class="prompt output_prompt">Out[88]:</div>
0.09103503726488799
r2_score(y_test, reg.predict(X_test))
</div>
<div class="prompt output_prompt">Out[89]:</div>
0.6526890643994555

浙公网安备 33010602011771号