/* The default data set for Eureqa The result should be something like y = x sin(2x) - sin(2x) I.e. it's not in the same order as the data (X,Y,W). Here y is the dependent variable: Y = f(X,W) * stop_criteria=generations num_gens=1800 gen = 618 (time: 99.370s) results_best = [[21.244204976416601,(x - x / x) * sin(2 * x)]] gen = 443 (time: 72.101s) results_best = [[21.244204976416601,(-1 + x) * sin(x + x)]] gen = 1209 (time: 184.503s) results_best = [[20.748028728026714,sin(2 * x) * (sin(4) + (x - sin(-6)))]] Cf eureqa_test.conf */ import util. data(eureqa_test,Data,Vars,Unknown,Ops,Constants,MaxSize,Params) :- % NOTE: The dependent variable is Y (not W) Data = [ [[X,W],Y] : [X,Y,W] in chunks_of([ -3.0000004768371582,-1.3318760395050049,0.58341068029403687, -2.9393937587738037,-1.4447519779205322,0.74026107788085938, -2.8787879943847656,-2.0614030361175537,0.72244036197662354, -2.8181793689727783,-2.0447325706481934,0.53925794363021851, -2.7575738430023193,-2.3309624195098877,0.51767134666442871, -2.6969664096832275,-3.2813374996185303,0.42237472534179688, -2.6363644599914551,-2.92972731590271,0.66586107015609741, -2.5757584571838379,-2.8306000232696533,0.42498928308486938, -2.5151512622833252,-3.536400318145752,0.60314315557479858, -2.4545443058013916,-3.1573505401611328,0.56541931629180908, -2.393939733505249,-3.9598965644836426,0.34261325001716614, -2.3333323001861572,-3.2316017150878906,0.75330150127410889, -2.2727267742156982,-3.2328977584838867,0.98146212100982666, -2.2121212482452393,-2.8289599418640137,0.54472881555557251, -2.1515171527862549,-3.1801023483276367,0.50936353206634521, -2.0909066200256348,-2.685950756072998,0.9375154972076416, -2.0303044319152832,-2.2742342948913574,0.68985569477081299, -1.9696977138519287,-2.1467819213867187,0.93457204103469849, -1.9090920686721802,-1.8248821496963501,0.98883873224258423, -1.8484865427017212,-1.5408861637115479,0.88502264022827148, -1.7878797054290771,-0.9245334267616272,0.54724442958831787, -1.7272742986679077,-1.0372952222824097,0.60284191370010376, -1.6666666269302368,-0.29504770040512085,0.58464336395263672, -1.606061577796936,-0.40230470895767212,0.57842451333999634, -1.5454537868499756,0.18973110616207123,0.83155518770217896, -1.4848486185073853,0.0099646151065826416,0.41953989863395691, -1.4242401123046875,0.85003036260604858,0.66727954149246216, -1.3636361360549927,1.0639514923095703,0.72740054130554199, -1.3030295372009277,1.3798575401306152,0.59450489282608032, -1.2424243688583374,1.294619083404541,0.80112427473068237, -1.1818186044692993,1.4918506145477295,0.88390493392944336, -1.1212112903594971,1.8757580518722534,0.58224046230316162, -1.0606086254119873,1.5129814147949219,0.5521969199180603, -0.99999797344207764,1.7030333280563354,0.7219119668006897, -0.93939536809921265,2.0886147022247314,0.5550616979598999, -0.87878936529159546,2.3275017738342285,0.38393104076385498, -0.81818193197250366,1.9206085205078125,0.73830986022949219, -0.7575753927230835,1.3474528789520264,0.42408689856529236, -0.69696921110153198,1.6425460577011108,0.91476607322692871, -0.63636600971221924,1.8640059232711792,0.50017285346984863, -0.57575809955596924,1.7347825765609741,0.50376725196838379, -0.51514995098114014,1.2086093425750732,0.76812583208084106, -0.4545455276966095,1.4292910099029541,0.51569980382919312, -0.39393898844718933,0.78663063049316406,0.598236083984375, -0.3333333432674408,1.4145514965057373,0.33705657720565796, -0.27272644639015198,0.70183008909225464,0.87839287519454956, -0.21212317049503326,1.1593722105026245,0.31236302852630615, -0.15151514112949371,0.092889934778213501,0.54472357034683228, -0.090911194682121277,0.019365832209587097,0.62775278091430664, -0.030304480344057083,-0.3899463415145874,0.39874857664108276, 0.030302254483103752,-0.63266408443450928,0.34327614307403564, 0.090908996760845184,-0.12067580223083496,0.87284380197525024, 0.15151579678058624,-0.28164827823638916,0.91338706016540527, 0.21212126314640045,-0.08320288360118866,0.55441379547119141, 0.27272844314575195,0.20485004782676697,0.34007248282432556, 0.33333355188369751,-0.59632652997970581,0.61973243951797485, 0.39393815398216248,-0.71697342395782471,0.51075804233551025, 0.45454445481300354,-0.25531250238418579,0.6315503716468811, 0.51515108346939087,-0.63801395893096924,0.57440668344497681, 0.57575815916061401,-0.60749650001525879,0.57692140340805054, 0.636363685131073,-0.78090715408325195,0.40910661220550537, 0.69696897268295288,-0.73196673393249512,0.4089072942733764, 0.7575756311416626,-0.45825892686843872,0.58115905523300171, 0.81818211078643799,-0.70114648342132568,0.36597895622253418, 0.87878835201263428,-0.16046565771102905,0.87883186340332031, 0.93939268589019775,-0.083725698292255402,0.92032939195632935, 0.99999964237213135,0.43555468320846558,0.40785530209541321, 1.0606063604354858,0.18138185143470764,0.69811826944351196, 1.121213436126709,-0.33531641960144043,0.41084450483322144, 1.1818175315856934,-0.19195316731929779,0.48421663045883179, 1.2424226999282837,0.35047876834869385,0.59705168008804321, 1.3030301332473755,0.36626359820365906,0.58636397123336792, 1.3636366128921509,0.071963228285312653,0.80122882127761841, 1.4242426156997681,0.27511709928512573,0.66292291879653931, 1.4848476648330688,0.16370311379432678,0.78787940740585327, 1.5454542636871338,0.38477420806884766,0.456523597240448, 1.6060607433319092,0.37072989344596863,0.42049834132194519, 1.6666661500930786,-0.75085294246673584,0.32474267482757568, 1.7272713184356689,-0.42767667770385742,0.59550505876541138, 1.7878782749176025,-0.5960051417350769,0.53136605024337769, 1.8484861850738525,-0.24620595574378967,0.59859699010848999, 1.909091591835022,-0.57519876956939697,0.98045063018798828, 1.9696961641311646,-0.89129102230072021,0.60342526435852051, 2.0303044319152832,-0.69091999530792236,0.70064407587051392, 2.0909099578857422,-0.72039496898651123,0.57632917165756226, 2.1515161991119385,-0.63685804605484009,0.41694667935371399, 2.2121219635009766,-1.0484076738357544,0.72509002685546875, 2.2727270126342773,-1.0871865749359131,0.64123404026031494, 2.3333327770233154,-1.2722896337509155,0.83414500951766968, 2.3939404487609863,-1.5475732088088989,0.65559017658233643, 2.4545445442199707,-1.3382478952407837,0.77270114421844482, 2.515150785446167,-1.3504639863967896,0.7716793417930603, 2.5757577419281006,-1.662035346031189,0.55993109941482544, 2.6363646984100342,-1.2326147556304932,0.66151034832000732, 2.6969685554504395,-1.7609169483184814,0.40373921394348145, 2.7575750350952148,-0.99653357267379761,0.5719788670539856, 2.8181812763214111,-0.9319685697555542,0.64687848091125488, 2.8787877559661865,-1.1327534914016724,0.6121332049369812, 2.9393939971923828,-0.74215036630630493,0.93477517366409302, 2.9999983310699463,-0.50935548543930054,0.85841464996337891 ],3)], Ops = [+,/,-,*,sin], Constants = -10..10, % [frand(-10,10) : _ in 1..10], Vars = ['x','w'], Unknown = [1,1], MaxSize = 21, Params = new_map([approx=0.1, init_size=500, num_gens=1800, stop_criteria=generations ]).