{"title":"Learning in motion.","description":"What happens when data arrives one observation at a time—and changes its mind halfway through?","theme":"blue","kind":"Online learning","cases":[{"id":"stationary","name":"Stable data stream","title":"Learn without a training batch","unit":"Running mean squared error ↓","parameter":"Observed outcomes","x":[1,5,9,13,17,21,25,29,33,37,41,45,49,53,57,61,65,69,73,77,81,85,89,93,97,101,105,109,113,117,121,125,129,133,137,141,145,149,153,157,161,165,169,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,233,237,241,245,249,253,257,261,265,269,273,277,281,285,289,293,297,301,305,309,313,317,321,325,329,333,337,341,345,349,353,357,361,365,369,373,377,381,385,389,393,397,400],"series":[{"label":"OGD","values":[0.4237504,0.1293625,0.0818155,0.0636972,0.0540247,0.048293,0.044313,0.0415372,0.0388515,0.0367846,0.0355014,0.034676,0.0336065,0.0329926,0.0325934,0.0320803,0.0317458,0.0314005,0.0307854,0.030298,0.0301068,0.0297479,0.0293052,0.0289298,0.0285658,0.0284991,0.0283476,0.0280523,0.0279473,0.0278405,0.0276734,0.0274668,0.0272223,0.0272111,0.0271174,0.0270922,0.0269249,0.0269097,0.0267735,0.0265601,0.0264405,0.0262864,0.0261098,0.0260203,0.0258616,0.0257799,0.0257186,0.0256867,0.0256044,0.0254983,0.0254325,0.0253376,0.0252508,0.0251295,0.0250803,0.0249741,0.0249361,0.0249986,0.0249424,0.0248599,0.0248925,0.0249166,0.024934,0.0248955,0.0248781,0.0248356,0.0248174,0.0247506,0.0247035,0.0246929,0.0246846,0.0246715,0.0246864,0.0246367,0.0245513,0.0245825,0.0245189,0.0245012,0.0244583,0.0244944,0.0244812,0.0244492,0.0244375,0.0244275,0.0243898,0.024324,0.0243161,0.0242783,0.0242287,0.0241789,0.0241499,0.0241533,0.0241168,0.0241463,0.0241638,0.0240874,0.0240538,0.0240249,0.0239927,0.0240169,0.0240033],"low":[0.3684909,0.1206279,0.0765792,0.0601863,0.0508894,0.0455855,0.0416456,0.039144,0.036699,0.0347288,0.0337127,0.0329565,0.0320113,0.0314207,0.0310377,0.0305871,0.0303158,0.0300083,0.0294271,0.0289505,0.0287872,0.028512,0.0281256,0.0277631,0.0274539,0.0274014,0.0272622,0.0269988,0.0269116,0.0268309,0.0266927,0.0265309,0.0262754,0.0262951,0.0262302,0.0262613,0.0260784,0.0260902,0.0259589,0.0257908,0.0256888,0.0255669,0.0253942,0.0252944,0.025176,0.0250795,0.0250178,0.0249772,0.0248614,0.0247726,0.0247137,0.0246456,0.0245626,0.0244513,0.0244,0.0242965,0.0242813,0.0243491,0.024281,0.0242188,0.024253,0.0243027,0.0243101,0.0242704,0.0242663,0.0242259,0.0242052,0.0241491,0.0240961,0.0240884,0.0240877,0.0240963,0.0241227,0.0240602,0.0239818,0.0240192,0.0239626,0.0239524,0.023929,0.023968,0.0239547,0.0239191,0.0239253,0.0239166,0.0238801,0.0238367,0.0238367,0.0238036,0.0237568,0.0237004,0.0236641,0.0236764,0.0236482,0.023663,0.0236938,0.0236192,0.0235757,0.0235385,0.0235056,0.0235271,0.0235171],"high":[0.4790099,0.1380971,0.0870519,0.0672082,0.0571599,0.0510004,0.0469805,0.0439304,0.0410039,0.0388404,0.0372901,0.0363955,0.0352017,0.0345646,0.034149,0.0335734,0.0331758,0.0327926,0.0321438,0.0316455,0.0314263,0.0309837,0.0304849,0.0300966,0.0296777,0.0295968,0.029433,0.0291058,0.028983,0.0288501,0.028654,0.0284026,0.0281691,0.0281271,0.0280046,0.0279231,0.0277713,0.0277291,0.0275881,0.0273294,0.0271921,0.0270059,0.0268254,0.0267462,0.0265472,0.0264803,0.0264194,0.0263961,0.0263473,0.0262241,0.0261513,0.0260295,0.025939,0.0258078,0.0257605,0.0256517,0.025591,0.0256481,0.0256038,0.025501,0.025532,0.0255306,0.0255578,0.0255207,0.0254899,0.0254453,0.0254297,0.0253521,0.0253109,0.0252973,0.0252816,0.0252467,0.02525,0.0252133,0.0251209,0.0251458,0.0250752,0.0250501,0.0249876,0.0250208,0.0250078,0.0249793,0.0249497,0.0249383,0.0248995,0.0248112,0.0247956,0.024753,0.0247005,0.0246575,0.0246357,0.0246303,0.0245854,0.0246296,0.0246338,0.0245557,0.0245319,0.0245112,0.0244797,0.0245067,0.0244894]},{"label":"AdaGrad","values":[0.4237504,0.1416606,0.0891147,0.0687385,0.0585216,0.0523212,0.0481515,0.0451203,0.0420897,0.0399078,0.038484,0.0375771,0.0364838,0.0357613,0.0352749,0.0347778,0.0343871,0.0339789,0.0333482,0.0328065,0.0325511,0.0321736,0.0316626,0.0312224,0.0308175,0.0307287,0.0305371,0.0302169,0.0300781,0.0299578,0.0297428,0.0295062,0.0292229,0.0291722,0.0290657,0.0289956,0.0287928,0.0287991,0.0286207,0.0283998,0.0282638,0.0280883,0.0278795,0.0277784,0.0275809,0.0274991,0.0274225,0.0273709,0.0272909,0.027154,0.0270756,0.0269676,0.0268677,0.026739,0.0266804,0.0265747,0.0265285,0.0265869,0.026525,0.0264286,0.0264573,0.0264722,0.026472,0.0264313,0.0263987,0.0263451,0.0263137,0.0262403,0.0261802,0.0261682,0.0261468,0.0261267,0.0261435,0.0260861,0.0259846,0.0260156,0.0259368,0.025903,0.0258525,0.0258849,0.0258561,0.0258244,0.0258075,0.0257952,0.0257547,0.0256831,0.0256739,0.0256277,0.0255725,0.0255103,0.0254729,0.0254741,0.0254331,0.0254654,0.0254802,0.025395,0.0253593,0.0253177,0.0252763,0.0253018,0.0252759],"low":[0.3684909,0.1282205,0.0813408,0.0637432,0.0543376,0.0487565,0.044906,0.0422985,0.0395922,0.0375857,0.0364449,0.0356624,0.0346961,0.0340095,0.0335485,0.0331735,0.032841,0.0325093,0.031901,0.0313803,0.0311729,0.0308742,0.0304205,0.0299969,0.0296496,0.0295845,0.0294006,0.0291136,0.0289897,0.0288911,0.0287058,0.0285005,0.0282205,0.0281971,0.0281288,0.0281168,0.0279017,0.0279445,0.0277618,0.0275875,0.0274687,0.0273278,0.0271246,0.0270133,0.0268476,0.0267594,0.0266885,0.0266222,0.0265079,0.0263915,0.0263234,0.0262443,0.02615,0.0260298,0.0259638,0.0258663,0.0258445,0.0259026,0.025828,0.0257488,0.0257853,0.0258291,0.0258187,0.0257793,0.0257699,0.0257142,0.0256832,0.0256231,0.0255605,0.0255527,0.0255395,0.0255391,0.0255691,0.0254956,0.0254047,0.0254415,0.0253752,0.0253492,0.0253195,0.0253566,0.025331,0.0252945,0.0252949,0.0252864,0.0252487,0.0251997,0.0252024,0.0251583,0.0251062,0.0250363,0.0249929,0.0250016,0.0249655,0.0249856,0.025013,0.0249288,0.024882,0.0248286,0.024789,0.024811,0.0247876],"high":[0.4790099,0.1551008,0.0968885,0.0737338,0.0627056,0.0558859,0.0513971,0.047942,0.0445872,0.0422299,0.0405232,0.0394919,0.0382714,0.037513,0.0370012,0.0363822,0.0359332,0.0354484,0.0347954,0.0342326,0.0339293,0.0334731,0.0329046,0.0324478,0.0319853,0.0318729,0.0316735,0.0313203,0.0311665,0.0310244,0.0307798,0.0305119,0.0302254,0.0301474,0.0300025,0.0298745,0.0296839,0.0296537,0.0294795,0.0292122,0.0290589,0.0288489,0.0286343,0.0285436,0.0283142,0.0282388,0.0281565,0.0281197,0.0280739,0.0279165,0.0278278,0.0276908,0.0275855,0.0274483,0.027397,0.027283,0.0272124,0.0272711,0.0272219,0.0271084,0.0271292,0.0271153,0.0271253,0.0270832,0.0270276,0.0269759,0.0269442,0.0268575,0.0267998,0.0267837,0.0267542,0.0267144,0.0267179,0.0266766,0.0265646,0.0265898,0.0264983,0.0264568,0.0263854,0.0264133,0.0263812,0.0263543,0.0263201,0.0263041,0.0262607,0.0261664,0.0261454,0.026097,0.0260387,0.0259842,0.0259529,0.0259467,0.0259008,0.0259453,0.0259473,0.0258612,0.0258366,0.0258069,0.0257637,0.0257927,0.0257641]},{"label":"Frozen zero","values":[0.4237504,0.4372367,0.4323662,0.4442126,0.4449656,0.4487277,0.450018,0.4501083,0.4494368,0.4509518,0.4510685,0.4483468,0.4488859,0.4474262,0.4463459,0.4460975,0.4461318,0.4470405,0.4462345,0.4453986,0.4458364,0.444918,0.444765,0.4451963,0.4464486,0.447508,0.4470894,0.4469806,0.4472573,0.4465758,0.4471423,0.446262,0.4463286,0.4459088,0.445938,0.4453696,0.4454105,0.4449566,0.4447178,0.4447899,0.4449607,0.4445118,0.4444353,0.4441547,0.4439469,0.4440458,0.4439089,0.4438362,0.4437901,0.4436168,0.4437119,0.4442542,0.4446946,0.4447232,0.4441867,0.4442253,0.4443062,0.4445204,0.4445477,0.4440772,0.4440718,0.4444071,0.4439693,0.4439063,0.4441708,0.4443426,0.4443722,0.4440565,0.4436871,0.4437726,0.4436859,0.4432149,0.4432717,0.4431472,0.443083,0.4433784,0.443568,0.4438208,0.4435875,0.4439388,0.44413,0.4439574,0.4443216,0.4440614,0.4441781,0.4441593,0.4440947,0.4442192,0.4441923,0.4438425,0.44355,0.4437851,0.4436601,0.4438544,0.4443876,0.4443849,0.4444364,0.444691,0.4445166,0.4445782,0.4444959],"low":[0.3684909,0.4148285,0.4142093,0.4289519,0.4312223,0.4356218,0.4382639,0.4386346,0.4398401,0.4410813,0.4420378,0.4394116,0.4399609,0.4390901,0.4385375,0.4387637,0.4390956,0.4404267,0.4399119,0.4390897,0.4398466,0.439023,0.4391518,0.4397248,0.4410385,0.4420323,0.4418013,0.4419268,0.4421823,0.4414907,0.4418106,0.4411094,0.4411726,0.4410381,0.4411545,0.4408493,0.4410805,0.4405476,0.4404812,0.4406102,0.4408525,0.4405415,0.4406013,0.4405505,0.4404339,0.4405664,0.4404365,0.4404143,0.4403371,0.4399806,0.4401144,0.4407518,0.4411873,0.4411726,0.4406047,0.4406316,0.4406321,0.4407764,0.4407862,0.4403272,0.440394,0.4408584,0.440447,0.4404205,0.4407129,0.4410459,0.4411118,0.4408611,0.4405215,0.4406189,0.4405008,0.4400233,0.4401879,0.4401489,0.4401012,0.4403388,0.4406345,0.4410425,0.4408704,0.4411984,0.441568,0.4414192,0.4417448,0.4414884,0.4416452,0.4416416,0.4416576,0.4417702,0.441701,0.4413334,0.4410837,0.4412051,0.4411324,0.4413548,0.4418434,0.4418198,0.4418915,0.442151,0.4419621,0.4421026,0.4419985],"high":[0.4790099,0.459645,0.4505231,0.4594733,0.458709,0.4618336,0.461772,0.461582,0.4590336,0.4608223,0.4600992,0.4572819,0.4578109,0.4557622,0.4541544,0.4534314,0.4531679,0.4536543,0.4525572,0.4517075,0.4518261,0.450813,0.4503782,0.4506678,0.4518587,0.4529837,0.4523775,0.4520345,0.4523322,0.4516609,0.4524739,0.4514146,0.4514846,0.4507796,0.4507215,0.44989,0.4497405,0.4493656,0.4489545,0.4489695,0.4490689,0.4484821,0.4482693,0.4477589,0.4474598,0.4475252,0.4473813,0.4472581,0.4472431,0.447253,0.4473095,0.4477567,0.448202,0.4482739,0.4477687,0.447819,0.4479804,0.4482644,0.4483092,0.4478272,0.4477496,0.4479559,0.4474917,0.4473922,0.4476288,0.4476393,0.4476327,0.4472518,0.4468527,0.4469263,0.4468709,0.4464064,0.4463555,0.4461455,0.4460648,0.4464179,0.4465015,0.446599,0.4463047,0.4466792,0.446692,0.4464956,0.4468984,0.4466343,0.446711,0.446677,0.4465317,0.4466682,0.4466836,0.4463516,0.4460163,0.4463651,0.4461878,0.4463539,0.4469318,0.44695,0.4469813,0.447231,0.4470712,0.4470537,0.4469933]}],"context":"Targets fluctuate around +0.65. No algorithm sees a future outcome.","readout":"Lower is better. Each point is average squared prediction error so far, averaged over 40 independent streams. Shading is ±1.96 standard errors across streams.","note":"Both learners start at zero. The frozen predictor stays at zero. This is predict-then-update evaluation, not in-sample fit."},{"id":"drift","name":"Abrupt concept drift","title":"Learn from a changing stream","unit":"Running mean squared error ↓","parameter":"Observed outcomes","x":[1,5,9,13,17,21,25,29,33,37,41,45,49,53,57,61,65,69,73,77,81,85,89,93,97,101,105,109,113,117,121,125,129,133,137,141,145,149,153,157,161,165,169,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,233,237,241,245,249,253,257,261,265,269,273,277,281,285,289,293,297,301,305,309,313,317,321,325,329,333,337,341,345,349,353,357,361,365,369,373,377,381,385,389,393,397,400],"series":[{"label":"OGD","values":[0.4237504,0.1293625,0.0818155,0.0636972,0.0540247,0.048293,0.044313,0.0415372,0.0388515,0.0367846,0.0355014,0.034676,0.0336065,0.0329926,0.0325934,0.0320803,0.0317458,0.0314005,0.0307854,0.030298,0.0301068,0.0297479,0.0293052,0.0289298,0.0285658,0.0284991,0.0283476,0.0280523,0.0279473,0.0278405,0.0276734,0.0274668,0.0272223,0.0272111,0.0271174,0.0270922,0.0269249,0.0269097,0.0267735,0.0265601,0.0264405,0.0262864,0.0261098,0.0260203,0.0258616,0.0257799,0.0257186,0.0256867,0.0256044,0.0254983,0.0345942,0.0599658,0.0771877,0.0890976,0.0976063,0.1025342,0.1056104,0.1074236,0.1082511,0.1086061,0.108398,0.1077996,0.1072052,0.1063101,0.1052705,0.1042073,0.1031644,0.1020943,0.1010393,0.0999505,0.0989216,0.0979323,0.0969409,0.0959051,0.0948705,0.0939632,0.0929884,0.0920895,0.091201,0.0903977,0.0895624,0.0887276,0.0879326,0.0871627,0.0863784,0.0855819,0.0848682,0.0841367,0.0834094,0.0826954,0.0820192,0.0813962,0.0807334,0.0801308,0.0795432,0.0788761,0.0782772,0.0776949,0.0771179,0.0766064,0.0761984],"low":[0.3684909,0.1206279,0.0765792,0.0601863,0.0508894,0.0455855,0.0416456,0.039144,0.036699,0.0347288,0.0337127,0.0329565,0.0320113,0.0314207,0.0310377,0.0305871,0.0303158,0.0300083,0.0294271,0.0289505,0.0287872,0.028512,0.0281256,0.0277631,0.0274539,0.0274014,0.0272622,0.0269988,0.0269116,0.0268309,0.0266927,0.0265309,0.0262754,0.0262951,0.0262302,0.0262613,0.0260784,0.0260902,0.0259589,0.0257908,0.0256888,0.0255669,0.0253942,0.0252944,0.025176,0.0250795,0.0250178,0.0249772,0.0248614,0.0247726,0.0336529,0.0586898,0.0757563,0.0876806,0.0962603,0.1010814,0.1042182,0.1060049,0.1068537,0.1071964,0.1071161,0.1065406,0.1059536,0.105058,0.1040504,0.1029994,0.1019611,0.1009218,0.0998852,0.0988087,0.0978032,0.0968412,0.0958608,0.0948252,0.0937975,0.0929081,0.0919539,0.0910694,0.090204,0.0894038,0.0885697,0.0877522,0.0869775,0.0862171,0.0854346,0.0846586,0.0839635,0.0832364,0.0825177,0.0818021,0.0811353,0.0805103,0.0798644,0.0792691,0.0787096,0.0780421,0.0774485,0.0768502,0.0762663,0.0757483,0.0753473],"high":[0.4790099,0.1380971,0.0870519,0.0672082,0.0571599,0.0510004,0.0469805,0.0439304,0.0410039,0.0388404,0.0372901,0.0363955,0.0352017,0.0345646,0.034149,0.0335734,0.0331758,0.0327926,0.0321438,0.0316455,0.0314263,0.0309837,0.0304849,0.0300966,0.0296777,0.0295968,0.029433,0.0291058,0.028983,0.0288501,0.028654,0.0284026,0.0281691,0.0281271,0.0280046,0.0279231,0.0277713,0.0277291,0.0275881,0.0273294,0.0271921,0.0270059,0.0268254,0.0267462,0.0265472,0.0264803,0.0264194,0.0263961,0.0263473,0.0262241,0.0355354,0.0612418,0.078619,0.0905146,0.0989523,0.1039871,0.1070027,0.1088422,0.1096484,0.1100157,0.1096799,0.1090587,0.1084568,0.1075623,0.1064907,0.1054152,0.1043677,0.1032667,0.1021934,0.1010922,0.10004,0.0990234,0.098021,0.0969849,0.0959436,0.0950183,0.094023,0.0931097,0.092198,0.0913917,0.0905551,0.0897031,0.0888876,0.0881082,0.0873222,0.0865051,0.0857729,0.085037,0.0843011,0.0835887,0.082903,0.0822822,0.0816023,0.0809924,0.0803768,0.0797101,0.0791059,0.0785396,0.0779695,0.0774645,0.0770495]},{"label":"AdaGrad","values":[0.4237504,0.1416606,0.0891147,0.0687385,0.0585216,0.0523212,0.0481515,0.0451203,0.0420897,0.0399078,0.038484,0.0375771,0.0364838,0.0357613,0.0352749,0.0347778,0.0343871,0.0339789,0.0333482,0.0328065,0.0325511,0.0321736,0.0316626,0.0312224,0.0308175,0.0307287,0.0305371,0.0302169,0.0300781,0.0299578,0.0297428,0.0295062,0.0292229,0.0291722,0.0290657,0.0289956,0.0287928,0.0287991,0.0286207,0.0283998,0.0282638,0.0280883,0.0278795,0.0277784,0.0275809,0.0274991,0.0274225,0.0273709,0.0272909,0.027154,0.0363403,0.0549209,0.0629868,0.0666794,0.0684306,0.0686813,0.0684634,0.068094,0.0674735,0.0668171,0.066186,0.0655682,0.0649462,0.0642972,0.0636593,0.0630429,0.0624572,0.0618424,0.0612568,0.0607026,0.0601806,0.0596739,0.0592043,0.05867,0.0581286,0.0577221,0.0572245,0.0567903,0.056347,0.0559953,0.0555888,0.055177,0.0548007,0.0544317,0.0540432,0.0536298,0.053294,0.0529293,0.05256,0.0521898,0.0518527,0.0515696,0.0512342,0.0509585,0.0506887,0.0503273,0.0500315,0.0497396,0.0494483,0.0492244,0.04902],"low":[0.3684909,0.1282205,0.0813408,0.0637432,0.0543376,0.0487565,0.044906,0.0422985,0.0395922,0.0375857,0.0364449,0.0356624,0.0346961,0.0340095,0.0335485,0.0331735,0.032841,0.0325093,0.031901,0.0313803,0.0311729,0.0308742,0.0304205,0.0299969,0.0296496,0.0295845,0.0294006,0.0291136,0.0289897,0.0288911,0.0287058,0.0285005,0.0282205,0.0281971,0.0281288,0.0281168,0.0279017,0.0279445,0.0277618,0.0275875,0.0274687,0.0273278,0.0271246,0.0270133,0.0268476,0.0267594,0.0266885,0.0266222,0.0265079,0.0263915,0.0353695,0.0535815,0.0614494,0.0651115,0.0668581,0.0670132,0.0668211,0.0664621,0.065854,0.0652109,0.0646305,0.0640536,0.0634428,0.0628125,0.0621982,0.0615976,0.0610223,0.0604306,0.0598669,0.0593336,0.0588367,0.0583518,0.0578987,0.0573697,0.0568373,0.0564502,0.0559799,0.0555611,0.0551381,0.0547907,0.0543889,0.0539946,0.0536437,0.0532883,0.0529109,0.0525202,0.0521995,0.0518493,0.051492,0.0511181,0.0507885,0.0505065,0.050188,0.0499256,0.0496807,0.0493281,0.0490371,0.0487341,0.048439,0.0482135,0.0480172],"high":[0.4790099,0.1551008,0.0968885,0.0737338,0.0627056,0.0558859,0.0513971,0.047942,0.0445872,0.0422299,0.0405232,0.0394919,0.0382714,0.037513,0.0370012,0.0363822,0.0359332,0.0354484,0.0347954,0.0342326,0.0339293,0.0334731,0.0329046,0.0324478,0.0319853,0.0318729,0.0316735,0.0313203,0.0311665,0.0310244,0.0307798,0.0305119,0.0302254,0.0301474,0.0300025,0.0298745,0.0296839,0.0296537,0.0294795,0.0292122,0.0290589,0.0288489,0.0286343,0.0285436,0.0283142,0.0282388,0.0281565,0.0281197,0.0280739,0.0279165,0.0373112,0.0562603,0.0645241,0.0682473,0.070003,0.0703494,0.0701056,0.0697258,0.069093,0.0684232,0.0677414,0.0670828,0.0664497,0.0657819,0.0651203,0.0644881,0.0638921,0.0632542,0.0626466,0.0620717,0.0615244,0.060996,0.0605099,0.0599702,0.05942,0.0589939,0.0584691,0.0580195,0.0575558,0.0571998,0.0567887,0.0563594,0.0559578,0.055575,0.0551756,0.0547394,0.0543885,0.0540094,0.0536279,0.0532615,0.0529168,0.0526328,0.0522804,0.0519914,0.0516968,0.0513265,0.051026,0.0507451,0.0504576,0.0502352,0.0500227]},{"label":"Frozen zero","values":[0.4237504,0.4372367,0.4323662,0.4442126,0.4449656,0.4487277,0.450018,0.4501083,0.4494368,0.4509518,0.4510685,0.4483468,0.4488859,0.4474262,0.4463459,0.4460975,0.4461318,0.4470405,0.4462345,0.4453986,0.4458364,0.444918,0.444765,0.4451963,0.4464486,0.447508,0.4470894,0.4469806,0.4472573,0.4465758,0.4471423,0.446262,0.4463286,0.4459088,0.445938,0.4453696,0.4454105,0.4449566,0.4447178,0.4447899,0.4449607,0.4445118,0.4444353,0.4441547,0.4439469,0.4440458,0.4439089,0.4438362,0.4437901,0.4436168,0.4444689,0.44386,0.4433649,0.4432196,0.4437377,0.4435956,0.44354,0.4435422,0.4435329,0.4439389,0.4440076,0.4437432,0.4442505,0.4443184,0.4440761,0.4438947,0.4439216,0.4441658,0.4445113,0.4444008,0.4445521,0.4450687,0.445078,0.4451319,0.4450893,0.4449052,0.4446685,0.4444378,0.4446486,0.4444086,0.444255,0.4443904,0.4440381,0.4443126,0.4441687,0.4441058,0.4441646,0.4439889,0.4439743,0.4442675,0.4445618,0.4443578,0.4444419,0.4442873,0.4437856,0.4436538,0.4435728,0.4433045,0.4434501,0.4434691,0.4435599],"low":[0.3684909,0.4148285,0.4142093,0.4289519,0.4312223,0.4356218,0.4382639,0.4386346,0.4398401,0.4410813,0.4420378,0.4394116,0.4399609,0.4390901,0.4385375,0.4387637,0.4390956,0.4404267,0.4399119,0.4390897,0.4398466,0.439023,0.4391518,0.4397248,0.4410385,0.4420323,0.4418013,0.4419268,0.4421823,0.4414907,0.4418106,0.4411094,0.4411726,0.4410381,0.4411545,0.4408493,0.4410805,0.4405476,0.4404812,0.4406102,0.4408525,0.4405415,0.4406013,0.4405505,0.4404339,0.4405664,0.4404365,0.4404143,0.4403371,0.4399806,0.4408153,0.4401826,0.4397492,0.4396907,0.440343,0.4402483,0.4403175,0.4402664,0.4402065,0.4405958,0.4408095,0.4405683,0.44104,0.4410366,0.4407962,0.440538,0.4405419,0.4409059,0.4413038,0.4412432,0.4414279,0.4420338,0.4419226,0.4419162,0.4418796,0.4418187,0.4414853,0.4412118,0.44141,0.4412026,0.4409895,0.4411332,0.4408764,0.4410938,0.4409412,0.4408687,0.4410358,0.4409789,0.4409568,0.441313,0.4415682,0.4414368,0.4415469,0.4413173,0.4409053,0.4408732,0.4408032,0.4406311,0.4407727,0.4407203,0.440781],"high":[0.4790099,0.459645,0.4505231,0.4594733,0.458709,0.4618336,0.461772,0.461582,0.4590336,0.4608223,0.4600992,0.4572819,0.4578109,0.4557622,0.4541544,0.4534314,0.4531679,0.4536543,0.4525572,0.4517075,0.4518261,0.450813,0.4503782,0.4506678,0.4518587,0.4529837,0.4523775,0.4520345,0.4523322,0.4516609,0.4524739,0.4514146,0.4514846,0.4507796,0.4507215,0.44989,0.4497405,0.4493656,0.4489545,0.4489695,0.4490689,0.4484821,0.4482693,0.4477589,0.4474598,0.4475252,0.4473813,0.4472581,0.4472431,0.447253,0.4481224,0.4475373,0.4469806,0.4467485,0.4471324,0.4469429,0.4467624,0.4468179,0.4468593,0.4472819,0.4472058,0.4469182,0.4474611,0.4476001,0.447356,0.4472514,0.4473012,0.4474258,0.4477187,0.4475584,0.4476763,0.4481037,0.4482333,0.4483477,0.4482991,0.4479918,0.4478517,0.4476639,0.4478872,0.4476146,0.4475205,0.4476475,0.4471997,0.4475315,0.4473961,0.4473429,0.4472935,0.4469988,0.4469917,0.4472221,0.4475555,0.4472788,0.4473369,0.4472573,0.4466658,0.4464343,0.4463424,0.4459779,0.4461276,0.446218,0.4463388]}],"context":"The target mean switches from +0.65 to −0.65 halfway through.","readout":"Lower is better. Each point is average squared prediction error so far, averaged over 40 independent streams. Shading is ±1.96 standard errors across streams.","note":"Shrinking learning rates can slow adaptation after a switch. AdaGrad is not a drift detector; compare the whole trajectory."},{"id":"experts","name":"Switching experts · Hedge","title":"When yesterday’s expert loses its edge","unit":"Cumulative regret vs best fixed expert ↓","parameter":"Rounds","x":[1,5,9,13,17,21,25,29,33,37,41,45,49,53,57,61,65,69,73,77,81,85,89,93,97,101,105,109,113,117,121,125,129,133,137,141,145,149,153,157,161,165,169,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,233,237,241,245,249,253,257,261,265,269,273,277,281,285,289,293,297,301,305,309,313,317,321,325,329,333,337,341,345,349,353,357,361,365,369,373,377,381,385,389,393,397,400],"series":[{"label":"Hedge","values":[0.35,1.2733384,1.9774438,2.6330685,3.3961097,3.9500747,4.3292094,4.8331157,5.1333564,5.4483198,5.8003686,6.0558864,6.256902,6.5026645,6.6836498,6.8326034,6.9825929,7.0873253,7.1693863,7.2590686,7.3239396,7.3707532,7.3949025,7.4904331,7.5299161,7.5939785,7.6145818,7.6414179,7.6561349,7.6875681,7.7343763,7.7524411,7.7683913,7.8000657,7.8176276,7.8404826,7.8544605,7.8610175,7.8751154,7.8905375,7.8983577,7.9207125,7.9327878,7.9393161,7.9449406,7.952125,7.9561517,7.9637268,7.9664902,7.9732282,7.9745001,7.9653487,7.9604917,7.9495751,7.9341894,7.9226974,7.9146552,7.9079576,7.8918278,7.8700698,7.8565308,7.8189099,7.7938206,7.7810772,7.7698272,7.728764,7.7030431,7.6651783,7.6277803,7.5463084,7.5314007,7.4589211,7.4199208,7.3628531,7.2846075,7.2424849,7.2236143,7.1614296,7.0450737,6.9719272,7.0212801,7.0008986,6.9254667,6.8228165,6.7889038,6.7311992,6.6883612,6.5595016,6.3552346,6.2463728,6.068785,5.7534936,5.7601303,5.7117925,5.6701674,5.7291676,5.8037048,5.8355255,5.8130239,5.9662077,6.0568383],"low":[0.2725904,1.1138417,1.7787346,2.3982506,3.1472404,3.6605762,4.0309735,4.5450252,4.8423331,5.1554638,5.5326093,5.8044707,5.9980052,6.2829916,6.5067857,6.6721528,6.8374855,6.9627205,7.0517491,7.1548739,7.2198363,7.2629116,7.273893,7.3902264,7.4301025,7.5004217,7.5043099,7.5368201,7.5515893,7.5768483,7.6391452,7.665395,7.6689772,7.718587,7.7388301,7.7826971,7.7914696,7.7898727,7.8042076,7.8292608,7.8360704,7.877035,7.8913833,7.8987012,7.9052078,7.9132336,7.9174343,7.9246424,7.926249,7.931458,7.9338414,7.9245352,7.9183003,7.9034097,7.8789702,7.8619268,7.8483005,7.8453204,7.8180753,7.7808388,7.7593864,7.6966234,7.6686563,7.6594901,7.6439179,7.5702808,7.5360785,7.4818832,7.4346915,7.2927147,7.3080414,7.2088982,7.1641533,7.0742184,6.9658295,6.9530386,6.9451269,6.8801066,6.750862,6.6400843,6.7422048,6.7168891,6.6297842,6.5183464,6.4751287,6.4030207,6.3524041,6.2248485,5.9707824,5.8235482,5.5883762,5.2099032,5.2139865,5.1621263,5.0953841,5.1678637,5.2723738,5.2944972,5.2512653,5.3936533,5.4821551],"high":[0.4274096,1.4328351,2.176153,2.8678864,3.644979,4.2395732,4.6274453,5.1212062,5.4243797,5.7411758,6.0681278,6.3073021,6.5157989,6.7223374,6.860514,6.9930541,7.1277004,7.21193,7.2870234,7.3632634,7.4280429,7.4785947,7.515912,7.5906398,7.6297298,7.6875354,7.7248536,7.7460156,7.7606806,7.798288,7.8296074,7.8394872,7.8678053,7.8815444,7.8964252,7.8982682,7.9174515,7.9321623,7.9460231,7.9518141,7.9606451,7.96439,7.9741923,7.979931,7.9846734,7.9910163,7.994869,8.0028112,8.0067315,8.0149984,8.0151588,8.0061623,8.0026831,7.9957405,7.9894086,7.9834679,7.98101,7.9705948,7.9655802,7.9593009,7.9536753,7.9411964,7.918985,7.9026644,7.8957365,7.8872473,7.8700077,7.8484735,7.820869,7.7999021,7.75476,7.708944,7.6756883,7.6514878,7.6033855,7.5319312,7.5021018,7.4427526,7.3392854,7.3037701,7.3003553,7.284908,7.2211492,7.1272865,7.1026789,7.0593778,7.0243183,6.8941547,6.7396869,6.6691974,6.5491939,6.2970839,6.306274,6.2614588,6.2449508,6.2904715,6.3350358,6.3765537,6.3747826,6.5387621,6.6315215]},{"label":"Uniform mix","values":[0.35,1.3333333,2.1666667,3.0583333,4.15,5.1583333,5.9916667,7.0416667,7.8083333,8.8166667,9.8833333,10.8166667,11.6916667,12.725,13.6416667,14.4666667,15.4333333,16.2666667,17.1916667,18.05,19.0,19.7666667,20.55,21.5833333,22.275,23.3166667,24.2333333,25.0,25.7,26.6583333,27.6333333,28.3916667,29.2333333,30.1833333,31.1,31.9416667,32.8333333,33.6083333,34.3833333,35.25,36.2416667,37.3,38.475,39.4,40.475,41.3333333,42.2166667,43.0833333,43.9416667,44.9083333,45.4,44.3666667,43.4666667,42.475,41.6583333,40.6916667,39.925,38.85,37.975,37.0833333,36.075,34.975,34.125,33.2166667,32.4166667,31.5166667,30.6666667,29.6833333,28.8333333,27.95,26.9666667,25.9083333,25.0583333,24.1916667,23.2,22.2666667,21.4416667,20.4833333,19.55,18.6583333,17.9833333,17.2083333,16.475,15.7833333,15.2166667,14.625,13.975,13.0333333,12.2,11.6833333,11.0666667,10.2333333,9.9666667,9.4583333,9.1,8.8833333,8.7333333,8.6,8.4416667,8.65,8.7166667],"low":[0.2725904,1.1551769,1.9281031,2.7606914,3.8046448,4.7257272,5.4929562,6.5122446,7.2301466,8.1090693,9.1974929,10.1148936,10.9291857,11.9728159,12.8589984,13.6870063,14.6148427,15.440523,16.3296426,17.1938163,18.1284702,18.8402887,19.5850388,20.6053596,21.26127,22.2172041,23.0443753,23.8078703,24.4773224,25.415747,26.4140171,27.1725552,27.9903699,28.9044031,29.8220864,30.6578385,31.5405611,32.2564057,32.9741936,33.8582097,34.7692048,35.8236757,36.9868453,37.8708006,38.9033245,39.7241339,40.6034679,41.4876659,42.3719074,43.3852678,43.8611687,42.8220497,41.9270177,40.9247094,40.0366866,39.030529,38.2582549,37.207154,36.2870648,35.364817,34.3546159,33.217809,32.3259078,31.375503,30.5645088,29.6769302,28.8477132,27.8990143,27.1028773,26.2088958,25.2553221,24.1676319,23.3557911,22.4983098,21.5037512,20.6528489,19.9063623,18.942947,17.9256454,17.0331472,16.4729024,15.7335134,14.9932945,14.2258825,13.5948407,12.9594538,12.3310822,11.439373,10.5872677,10.0318494,9.3703534,8.4741484,8.2236384,7.7403047,7.3671423,7.2302596,7.106681,6.9612814,6.7820121,6.9751547,7.0015291],"high":[0.4274096,1.5114898,2.4052303,3.3559753,4.4953552,5.5909394,6.4903771,7.5710887,8.3865201,9.524264,10.5691738,11.5184397,12.4541476,13.4771841,14.424335,15.246327,16.2518239,17.0928103,18.0536908,18.9061837,19.8715298,20.6930447,21.5149612,22.561307,23.28873,24.4161293,25.4222914,26.1921297,26.9226776,27.9009197,28.8526495,29.6107781,30.4762967,31.4622635,32.3779136,33.2254948,34.1261056,34.9602609,35.7924731,36.6417903,37.7141286,38.7763243,39.9631547,40.9291994,42.0466755,42.9425328,43.8298655,44.6790007,45.511426,46.4313988,46.9388313,45.9112836,45.0063156,44.0252906,43.27998,42.3528043,41.5917451,40.492846,39.6629352,38.8018497,37.7953841,36.732191,35.9240922,35.0578303,34.2688245,33.3564031,32.4856201,31.4676524,30.5637893,29.6911042,28.6780112,27.6490348,26.7608756,25.8850235,24.8962488,23.8804844,22.976971,22.0237196,21.1743546,20.2835195,19.4937642,18.6831533,17.9567055,17.3407841,16.8384926,16.2905462,15.6189178,14.6272936,13.8127323,13.3348173,12.76298,11.9925183,11.7096949,11.176362,10.8328577,10.536407,10.3599857,10.2387186,10.1013212,10.3248453,10.4318043]}],"context":"Three experts reveal all their binary losses each round. The strongest expert changes halfway through.","readout":"Regret uses the best single expert for the prefix in hindsight, not a clairvoyant switching expert. Hedge loss is expected mixture loss, not a sampled expert's loss.","note":"Hedge updates exponential weights only after seeing the current losses. Full-information feedback makes this a different problem from Bandits. Negative realized regret is possible."}],"config":{"runs":40,"horizon":400,"seed":20260927,"hedgeSeed":30260927,"ogdEta":0.3,"adagradEta":0.3,"hedgeEta":0.15},"method":["Scalar predictions are projected to [−1, 1]. OGD uses 0.3/√t; AdaGrad uses 0.3 divided by the square root of accumulated squared gradients. Loss is measured before either update.","40 paired synthetic streams, 400 outcomes each. Stable and drift cases use the same noise seeds. Curves report running mean squared error; the separate expert case reports cumulative regret, not MSE.","Hedge uses η=0.15 and three full-information binary-loss experts. Intervals are pointwise normal approximations across seeds; they are not simultaneous confidence bands."],"limits":["This scalar teaching experiment is not a benchmark of River or scikit-multiflow, nor a proof of a regret bound.","Hyperparameters are illustrative, not tuned on held-out data. Running averages can hide short-lived failures after drift."],"references":[["Duchi et al. · Adaptive Subgradient Methods","https://jmlr.org/papers/v12/duchi11a.html"],["Hazan · Online Convex Optimization","https://arxiv.org/abs/1909.05207"]],"provenance":{"python":"3.13.0","numpy":"2.4.6","sourceSha256":{"showcase_benchmark.py":"0283d1ef2257aa3634b18960f59f9ea085936f91839c4d4f751c795145b0c9b9"}}}
