using Plots, Dates

a=[
"21.693180629997933" "
15:09:05.389";
"14.849758469419463" "15:09:05.58";
"18.871073102595346" "15:09:05.581";
"17.705181430195292" "15:09:05.583";
"15.210479632070335" "15:09:05.584";
"15.271612129811938" "15:09:05.586";
"15.239694384551788" "15:09:05.588";
"14.305067502483697" "15:09:05.589";
"13.482562423502614" "15:09:05.591";
"12.876001722397385" "15:09:05.593";
"12.805594833628685" "15:09:05.594";
"12.457738102830431" "15:09:05.596";
"11.605904207061823" "15:09:05.598";
"11.194548534361212" "15:09:05.599";
"11.240457357737089" "15:09:05.601";
"11.190018463507247" "15:09:05.603";
"10.54234617836919" "15:09:05.604";
"9.771247999681453" "15:09:05.606";
"9.971748447964599" "15:09:05.608";
"9.961127631863747" "15:09:05.609";
"9.585688886522933" "15:09:05.611";
"8.831398877508802" "15:09:05.612";
"8.772680290843674" "15:09:05.614";
"8.892681182576261" "15:09:05.615";
"8.47483656117191" "15:09:05.617";
"8.051257038356551" "15:09:05.619";
"7.836416224615945" "15:09:05.621";
"7.6973318939204525" "15:09:05.623";
"7.56861396088807" "15:09:05.638";
"7.21708085332945" "15:09:05.639";
"7.041396300087717" "15:09:05.641";
"6.976721507394556" "15:09:05.643";
"6.774189584976573" "15:09:05.645";
"6.606433801017014" "15:09:05.646";
"6.491238479787147" "15:09:05.648";
"6.465407956324111" "15:09:05.65";
"6.33759611310141" "15:09:05.652";
"6.2663196306267235" "15:09:05.654";
"6.243419793892277" "15:09:05.657";
"6.32328832395769" "15:09:05.658";
"6.619533222380913" "15:09:05.66";
"6.683464169573939" "15:09:05.662";
"6.226088942942654" "15:09:05.663";
"5.837544256661132" "15:09:05.665";
"6.001552472892467" "15:09:05.667";
"6.142284234786329" "15:09:05.669";
"5.713154173254792" "15:09:05.67";
"5.627224369412082" "15:09:05.672";
"5.798986357032883" "15:09:05.674";
"5.5638203596149545" "15:09:05.675";
"77.91969" "15:11:53.607";
"88.45319" "15:11:54.244";
"94.22918" "15:11:54.709";
"96.63985" "15:11:55.078";
"97.462326" "15:11:55.439";
"97.221504" "15:11:55.793";
"96.14967" "15:11:56.172";
"94.2463" "15:11:56.536";
"91.18372" "15:11:56.845";
"85.45838" "15:11:57.249";
"84.35536" "15:11:57.636";
"86.03393" "15:11:58.014";
"89.09288" "15:11:58.443";
"90.427055" "15:11:58.786";
"90.72829" "15:11:59.117";
"90.3256" "15:11:59.496";
"89.34307" "15:11:59.824";
"87.82792" "15:12:00.2";
"85.00899" "15:12:00.591";
"80.95103" "15:12:01.045";
"78.994484" "15:12:01.431";
"83.956985" "15:12:01.817";
"81.82451" "15:12:02.181";
"78.20917" "15:12:02.474";
"79.43976" "15:12:02.809";
"80.80074" "15:12:03.23";
"80.69117" "15:12:03.623";
"78.97905" "15:12:04.01";
"82.39736" "15:12:04.375";
"77.42406" "15:12:04.68";
"77.60327" "15:12:05.089";
"77.83742" "15:12:05.447";
"78.21078" "15:12:05.801";
"78.11332" "15:12:06.13";
"76.9447" "15:12:06.588";
"76.84605" "15:12:06.885";
"75.77428" "15:12:07.186";
"76.31214" "15:12:07.566";
"76.18572" "15:12:07.958";
"76.10903" "15:12:08.369";
"75.55867" "15:12:08.703";
"75.36168" "15:12:09.108";
"74.78529" "15:12:09.51";
"74.687485" "15:12:09.894";
"74.37139" "15:12:10.237";
"74.36885" "15:12:10.681";
"74.062386" "15:12:11.04";
"74.10397" "15:12:11.398";
"73.71966" "15:12:11.787";
"73.50538" "15:12:12.149";
"103.78020466853134" "15:12:12.151";
"71.39917545838638" "15:12:12.152";
"43.835507904825384" "15:12:12.154";
"26.037818480506466" "15:12:12.155";
"22.466109727815276" "15:12:12.157";
"25.573757293590923" "15:12:12.158";
"29.028966350800705" "15:12:12.16";
"30.835888518567454" "15:12:12.162";
"30.104994695305347" "15:12:12.164";
"27.536860817441028" "15:12:12.165";
"24.383022026604706" "15:12:12.167";
"21.29960591113438" "15:12:12.169";
"17.747236100309646" "15:12:12.17";
"14.206853881666227" "15:12:12.172";
"11.992404667204356" "15:12:12.173";
"11.588198002152236" "15:12:12.175";
"11.7388534104683" "15:12:12.176";
"11.980444916622721" "15:12:12.178";
"12.587588881517497" "15:12:12.18";
"12.769639450593779" "15:12:12.181";
"11.583519151470709" "15:12:12.183";
"9.501164335292207" "15:12:12.185";
"8.654295580582641" "15:12:12.187";
"9.01548765256084" "15:12:12.189";
"8.594953734742683" "15:12:12.191";
"8.147538233592984" "15:12:12.192";
"8.471366362882927" "15:12:12.194";
"8.24035846217022" "15:12:12.196";
"7.523414724306299" "15:12:12.198";
"7.189982395776787" "15:12:12.2";
"6.508849669389" "15:12:12.202";
"5.851533928189284" "15:12:12.203";
"6.4037789888217125" "15:12:12.205";
"6.783906378051663" "15:12:12.207";
"6.618028982643132" "15:12:12.208";
"6.232803966905912" "15:12:12.21";
"5.8461338103875065" "15:12:12.212";
"5.4375080999554735" "15:12:12.214";
"5.300198820924965" "15:12:12.216";
"5.587699213538676" "15:12:12.217";
"5.40344208807284" "15:12:12.219";
"5.291385393476899" "15:12:12.227";
"4.984261057651273" "15:12:12.229";
"4.881643671665893" "15:12:12.231";
"4.93980303827467" "15:12:12.232";
"4.802080297751322" "15:12:12.234";
"4.744227552063704" "15:12:12.236";
"4.524137289118702" "15:12:12.238";
"4.389026696913442" "15:12:12.239";
"4.450599357746215" "15:12:12.241";
"64.41709" "15:12:13.458";
"63.632217" "15:12:14.301";
"46.92427" "15:12:15.097";
"32.96313" "15:12:15.942";
"29.291273" "15:12:16.558";
"25.644917" "15:12:17.104";
"23.561989" "15:12:17.76";
"52.707478" "15:12:18.683";
"22.207323" "15:12:19.651";
"23.706646" "15:12:20.61";
"14.20956" "15:12:21.684";
"25.883623" "15:12:22.636";
"18.306864" "15:12:23.996";
"6.875953" "15:12:25.484";
"11.9977" "15:12:26.321";
"7.160552" "15:12:27.511";
"14.344087" "15:12:28.546";
"8.279809" "15:12:29.848";
"7.8758035" "15:12:30.775";
"6.038576" "15:12:31.813";
"2.2966294" "15:12:32.899";
"4.332708" "15:12:33.531";
"6.4547825" "15:12:34.351";
"5.7979975" "15:12:35.247";
"4.0804954" "15:12:36.187";
"2.7464151" "15:12:36.936";
"2.3627076" "15:12:37.706";
"3.2782743" "15:12:38.453";
"2.6265779" "15:12:39.358";
"3.2288523" "15:12:40.17";
"2.7752945" "15:12:40.948";
"1.186291" "15:12:41.789";
"1.6154346" "15:12:42.472";
"2.494385" "15:12:43.135";
"1.9619559" "15:12:43.949";
"1.1906984" "15:12:44.74";
"1.4041933" "15:12:45.398";
"1.347243" "15:12:46.142";
"0.81995565" "15:12:46.901";
"1.5716455" "15:12:47.564";
"0.86126065" "15:12:48.435";
"0.6891742" "15:12:49.155";
"1.0051694" "15:12:49.865";
"0.7354157" "15:12:50.641";
"0.67939365" "15:12:51.28";
"0.8814287" "15:12:51.875";
"0.53287417" "15:12:52.639";
"0.4200542" "15:12:53.325";
"0.66252524" "15:12:53.93";
"0.49660772" "15:12:54.602";
"17.675070570669615" "15:12:54.604";
"14.570600872069344" "15:12:54.606";
"12.050048514403779" "15:12:54.607";
"9.678179637714395" "15:12:54.608";
"10.152522356746942" "15:12:54.61";
"10.22044639649735" "15:12:54.612";
"8.04914110373006" "15:12:54.613";
"7.032138587621534" "15:12:54.615";
"8.230037639094844" "15:12:54.616";
"8.112301095722152" "15:12:54.618";
"6.82777864639771" "15:12:54.62";
"6.175164073087483" "15:12:54.621";
"5.709938230935337" "15:12:54.623";
"5.843172529033399" "15:12:54.624";
"5.980040523007635" "15:12:54.626";
"5.1580553635125685" "15:12:54.627";
"5.092255952432414" "15:12:54.629";
"5.459202269494638" "15:12:54.631";
"5.049653865780248" "15:12:54.632";
"4.467758722562376" "15:12:54.634";
"4.324186417796585" "15:12:54.636";
"4.752285597590552" "15:12:54.637";
"4.531041848894491" "15:12:54.639";
"4.09737535292966" "15:12:54.641";
"4.204933133294741" "15:12:54.647";
"3.9613821548000945" "15:12:54.649";
"3.9099247196684535" "15:12:54.651";
"3.6989380596096066" "15:12:54.652";
"3.6227483875970634" "15:12:54.654";
"3.5715589688151126" "15:12:54.656";
"3.532335251351003" "15:12:54.658";
"3.447700079042611" "15:12:54.659";
"3.296995317481246" "15:12:54.661";
"3.2295508862437052" "15:12:54.663";
"3.259050918846149" "15:12:54.665";
"3.006368540790016" "15:12:54.666";
"3.1330418058276033" "15:12:54.668";
"2.97521086419771" "15:12:54.671";
"2.8645573897595584" "15:12:54.673";
"2.8758895799615374" "15:12:54.675";
"2.827000684053438" "15:12:54.677";
"2.894350970873364" "15:12:54.678";
"3.0104642745408046" "15:12:54.68";
"2.9511782418400787" "15:12:54.682";
"2.6087699579605776" "15:12:54.684";
"2.4392316464460313" "15:12:54.685";
"2.4049713120039122" "15:12:54.687";
"2.503992372666395" "15:12:54.689";
"2.632122117518553" "15:12:54.691";
"2.6686821823890137" "15:12:54.692";
"124.01136" "15:12:55.768";
"120.530655" "15:12:56.904";
"130.76521" "15:12:57.876";
"128.29715" "15:12:59.114";
"132.95764" "15:13:02.378";
"133.61787" "15:13:02.963";
"131.75017" "15:13:03.371";
"128.18472" "15:13:03.796";
"123.39702" "15:13:04.245";
"118.72645" "15:13:04.737";
"115.100555" "15:13:05.239";
"111.79445" "15:13:05.738";
"109.15439" "15:13:06.218";
"112.42572" "15:13:07.253";
"111.7254" "15:13:08.565";
"107.00366" "15:13:09.416";
"108.18689" "15:13:09.945";
"108.58419" "15:13:10.436";
"108.5795" "15:13:11.015";
"108.48891" "15:13:11.459";
"108.35627" "15:13:11.848";
"108.194405" "15:13:12.256";
"108.10015" "15:13:12.729";
"107.76345" "15:13:13.326";
"107.23125" "15:13:13.933";
"106.53842" "15:13:14.611";
"105.88434" "15:13:15.007";
"105.334015" "15:13:15.438";
"104.64102" "15:13:16.08";
"103.829285" "15:13:16.664";
"102.915405" "15:13:17.288";
"101.906334" "15:13:17.909";
"100.79671" "15:13:18.449";
"99.87119" "15:13:18.911";
"98.782524" "15:13:19.475";
"97.74554" "15:13:19.908";
"96.41364" "15:13:20.404";
"94.55979" "15:13:20.859";
"91.341" "15:13:21.272";
"95.19458" "15:13:21.788";
"96.5668" "15:13:22.447";
"95.09491" "15:13:22.994";
"94.69362" "15:13:23.822";
"93.513855" "15:13:24.176";
"87.31163" "15:13:24.688";
"91.13651" "15:13:25.186";
"92.91186" "15:13:25.539";
"93.84257" "15:13:25.932";
"94.31615" "15:13:26.388";
"94.47222" "15:13:26.814";
"158.3530547348604" "15:13:26.816";
"133.21145896256962" "15:13:26.817";
"109.95818779174513" "15:13:26.818";
"89.37608376298566" "15:13:26.82";
"71.49050970650565" "15:13:26.821";
"57.846327114885334" "15:13:26.822";
"47.12060542162359" "15:13:26.823";
"37.89888007616456" "15:13:26.825";
"31.234619085237597" "15:13:26.826";
"27.780180162198516" "15:13:26.827";
"26.97730221566408" "15:13:26.828";
"28.624742707782985" "15:13:26.833";
"31.09468259053384" "15:13:26.834";
"32.250395519855594" "15:13:26.836";
"30.987321283873293" "15:13:26.837";
"27.367452840014725" "15:13:26.839";
"22.172456814405077" "15:13:26.84";
"16.92889659112651" "15:13:26.842";
"14.416349034228634" "15:13:26.843";
"14.881528572265081" "15:13:26.845";
"15.034067016651338" "15:13:26.847";
"14.532645649427373" "15:13:26.848";
"14.12980102068133" "15:13:26.85";
"13.331876850835851" "15:13:26.852";
"11.734434891357704" "15:13:26.853";
"9.79347304696053" "15:13:26.855";
"8.923428367225746" "15:13:26.857";
"9.500625495678467" "15:13:26.858";
"9.889106080223089" "15:13:26.86";
"9.576257519493089" "15:13:26.862";
"9.022203282268617" "15:13:26.864";
"8.230390385103814" "15:13:26.865";
"7.010404205800276" "15:13:26.867";
"6.027325078165178" "15:13:26.868";
"6.367077396523484" "15:13:26.87";
"6.500906299478687" "15:13:26.872";
"6.185294860217844" "15:13:26.873";
"5.905033135434491" "15:13:26.875";
"5.147103971289184" "15:13:26.876";
"4.755633322769082" "15:13:26.878";
"5.22930110660714" "15:13:26.879";
"5.097657354332236" "15:13:26.881";
"4.534309628634492" "15:13:26.883";
"3.993775575867627" "15:13:26.884";
"4.193965508165071" "15:13:26.886";
"4.521357031684894" "15:13:26.888";
"4.183303506044945" "15:13:26.89";
"3.7814488560591353" "15:13:26.891";
"3.3334368323626533" "15:13:26.893";
"3.623635121442286" "15:13:26.895";
"110.57353" "15:13:51.7";
"86.8244" "15:13:53.062";
"75.86707" "15:13:54.028";
"80.52017" "15:13:55.181";
"85.348114" "15:13:55.98";
"89.67025" "15:13:56.805";
"87.89375" "15:13:57.68";
"82.94136" "15:13:58.481";
"80.68053" "15:13:59.305";
"79.259125" "15:14:00.198";
"77.48437" "15:14:01.046";
"75.9717" "15:14:09.98";
"75.012375" "15:14:16.305";
"74.05318" "15:14:20.039";
"73.15254" "15:14:21.313";
"73.09031" "15:14:22.013";
"73.19003" "15:14:22.772";
"70.64611" "15:14:23.539";
"72.2913" "15:14:24.406";
"69.248245" "15:14:25.049";
"70.624664" "15:14:25.979";
"74.0138" "15:14:27.701";
"75.61718" "15:14:28.513";
"76.62279" "15:14:29.01";
"77.35976" "15:14:29.795";
"77.80881" "15:14:30.175";
"78.013214" "15:14:30.579";
"77.79789" "15:14:31.101";
"77.46091" "15:14:32.717";
"76.46782" "15:14:33.256";
"74.392006" "15:14:34.05";
"71.76419" "15:14:34.821";
"70.16536" "15:14:35.617";
"74.769485" "15:14:36.476";
"69.258385" "15:14:37.203";
"68.651634" "15:14:38.079";
"69.92104" "15:14:38.893";
"69.79346" "15:14:39.805";
"70.064224" "15:14:40.852";
"71.08431" "15:14:41.71";
"71.802895" "15:14:42.492";
"73.09411" "15:14:52.021";
"73.53909" "15:14:53.08";
"73.58596" "15:14:54.119";
"73.637695" "15:14:55.077";
"73.821686" "15:14:55.634";
"73.91312" "15:14:56.178";
"73.79058" "15:15:00.104";
"73.53084" "15:15:01.445";
"73.30578" "15:15:01.951";
"96.27300961370284" "15:15:01.953";
"78.43964693255776" "15:15:01.955";
"62.89331744201945" "15:15:01.957";
"47.19305295496835" "15:15:01.958";
"33.2131786101106" "15:15:01.96";
"23.211070527480693" "15:15:01.961";
"17.833322001818093" "15:15:01.963";
"18.78514599416313" "15:15:01.965";
"22.42366990923824" "15:15:01.967";
"24.148420827834173" "15:15:01.968";
"23.93792049010538" "15:15:01.97";
"22.849654311851463" "15:15:01.972";
"21.26536706481854" "15:15:01.974";
"18.80688075798271" "15:15:01.975";
"15.685917335595885" "15:15:01.977";
"13.196725287320543" "15:15:01.978";
"11.256649177207132" "15:15:01.98";
"9.661792943746024" "15:15:01.982";
"10.26180257958145" "15:15:01.983";
"10.852587373452849" "15:15:01.985";
"11.396074140007112" "15:15:01.987";
"11.894937219323069" "15:15:01.988";
"11.35520112096304" "15:15:01.99";
"10.427744469785017" "15:15:01.992";
"9.526417877752873" "15:15:01.994";
"8.28665452707891" "15:15:01.996";
"7.849091548214682" "15:15:01.998";
"7.669730159660486" "15:15:02";
"7.861044694877725" "15:15:02.001";
"8.04182667626384" "15:15:02.003";
"7.871354809346516" "15:15:02.005";
"7.627199538480839" "15:15:02.011";
"6.819161819138998" "15:15:02.012";
"6.3060252420365" "15:15:02.014";
"5.771065768577108" "15:15:02.016";
"5.784233780445008" "15:15:02.017";
"5.845757087879443" "15:15:02.019";
"5.927953817799761" "15:15:02.021";
"5.692619285524822" "15:15:02.023";
"5.263192174206345" "15:15:02.025";
"4.914356844013468" "15:15:02.027";
"4.6623280580615" "15:15:02.029";
"4.7387990784480545" "15:15:02.031";
"4.780357490230598" "15:15:02.033";
"4.669946580162062" "15:15:02.035";
"4.569636303179074" "15:15:02.037";
"4.456541512195911" "15:15:02.039";
"4.302276110299467" "15:15:02.04";
"4.165433772364541" "15:15:02.042";
"4.036534754423933" "15:15:02.044";
"66.81997" "15:15:14.322";
"59.855667" "15:15:15.771";
"37.67311" "15:15:17.079";
"59.809708" "15:15:18.092";
"83.349525" "15:15:21.05";
"859.32135" "15:15:24.092";
"1505.0326" "15:15:27.17";
"1782.3123" "15:15:49.881";
"1940.5017" "15:15:50.962";
"2057.049" "15:15:51.849";
"2008.4354" "15:15:54.444";
"1695.337" "15:16:12.839";
"1547.6293" "15:16:14.358";
"1142.6104" "15:16:16.373";
"741.1111" "15:16:19.662";
"821.3444" "15:16:33.699";
"187.79512" "15:16:51.611";
"172.14047" "15:16:54.041";
"164.72462" "15:16:55.532";
"159.62753" "15:16:57.177";
"154.88857" "15:16:59.282";
"150.65578" "15:17:05.735";
"146.64275" "15:17:12.948";
"143.15862" "15:17:13.432";
"140.07317" "15:17:14.029";
"137.26106" "15:17:17.153";
"134.77591" "15:17:17.761";
"132.59354" "15:17:21.48";
"130.64209" "15:17:22.095";
"128.69514" "15:17:33.931";
"126.85361" "15:17:34.528";
"125.0247" "15:17:35.128";
"123.163956" "15:17:35.754";
"121.26326" "15:17:36.403";
"119.48151" "15:17:40.147";
"117.63254" "15:17:40.809";
"115.721245" "15:17:41.692";
"113.977936" "15:17:42.349";
"112.719696" "15:17:48.318";
"113.039085" "15:17:49.479";
"114.776535" "15:17:52.55";
"117.75608" "15:17:54.216";
"120.59915" "15:17:55.607";
"119.04658" "15:17:58.143";
"118.475395" "15:18:00.489";
"115.34969" "15:18:03.021";
"97.04737" "15:18:05.972";
"94.84225" "15:18:06.501";
"97.21866" "15:18:06.945";
"99.53592" "15:18:07.431";
]




function parse_dates(x)
    t=split(x,(':','.'))
    w=map(x->parse(Float64,x),t)
    Dates.Time(w...)
end
function norm_time(x)
    abs_times = x
    start_time = abs_times[1]
    norm_times = Vector(undef,length(abs_times))
    for i in 1:length(abs_times)
        norm_times[i] = abs_times[i]-start_time
    end
    norm_times
end

loss_values = map(x->parse(Float64,x),a[:,1])
time_values = map(x->parse_dates(x),a[:,2])
norm_time_vals = norm_time(time_values)

plot(time_values[1:50],loss_values[1:50],linecolor="blue")
plot!(time_values[51:100],loss_values[51:100],linecolor="red")
plot!(time_values[101:150],loss_values[101:150],linecolor="blue")
plot!(time_values[151:150],loss_values[151:150],linecolor="red")
plot!(time_values[201:250],loss_values[201:250],linecolor="blue")
plot!(time_values[251:300],loss_values[251:300],linecolor="red")
plot!(time_values[301:350],loss_values[301:350],linecolor="blue")
plot!(time_values[351:400],loss_values[351:400],linecolor="red")
plot!(time_values[401:450],loss_values[401:450],linecolor="blue")
plot!(time_values[451:500],loss_values[451:500],linecolor="red")
Int64(norm_time_vals[1])

print(loss_values[500])
