Ir a Inicio

Colaboración entre individuos

Algoritmos genéticos. Programa 6. Generador de datasets de doble variable independiente Q=F(X,Y)

Para hacer pruebas con los algoritmos genéticos se requiere un conjunto de datos con las siguientes características:

1. Tener un patrón, es decir, una ecuación que los genera.

2. Los datos deben estar normalizados. Tanto X como Y deben estar entre 0 y 1.

3. El valor de Q debe ser distinto dependiendo de X y Y. El gráfico NO debe ser un plano.

4. El valor de Q debe tener subidas y bajadas. El gráfico NO debe ser un simple plano curvo.


Código fuente

Descargar el código fuente desarrollado en C#. Probado en Microsoft Visual Studio 2022 Community Edition


Resultado de una generación

Se genera un dataset de registros (X,Y)

YX
-1-0,9-0,8-0,7-0,6-0,5-0,4-0,3-0,2-0,100,10,20,30,40,50,60,70,80,9
-11,4292975471,2723717391,125362790,9941001790,8814488160,7887889840,7167298950,6654523830,6348705770,6247073540,6345327420,663791120,71183020,7779372820,8613841560,9614804451,077635791,2094339071,3567264061,519762507
-0,91,4747499721,3368196681,2054633371,0864807040,9831030610,8971975560,8298670940,7817485510,7531594920,7441711240,754649360,7842868330,8326377120,8991605540,9832707011,0844024191,2020818471,3360148921,4861999071,65308483
-0,81,5111677481,3904078751,2737403511,1667924451,0729871650,9945200150,9328574430,8889903180,8635617340,8569329960,8692233690,9003436440,9500342151,0179125011,1035312981,2064485631,3263103941,4629525121,616532211,787714474
-0,71,5375824931,4320169841,3288170791,2333373051,1490564151,0783675071,0229876750,9841687750,9628046890,9594877490,9745446211,008069211,0599621451,1299812691,2178046891,3231072371,4456527641,5854088621,7426983481,918415683
-0,61,5531169431,4606674771,3695065671,2846502491,2095302681,1466318981,0978271161,0645460771,047863851,0485461391,067079911,1037042991,1584503221,2311933781,3217200741,4298105341,5553393481,6984031341,8594916762,039735803
-0,51,5569357491,4754805681,3947860661,3194905661,2529034231,1975189171,1552843141,1277361671,1160675991,1211632341,1436240521,1837956861,2418077171,3176275381,4111302921,522186361,6507703521,7971010811,9618323492,14633334
-0,41,5481976351,4756348961,4037609921,3368163721,2779342191,229553391,1936314211,1717499081,1651640551,1748273991,2014110331,2453292091,3067779911,3857901511,4823077611,5962743171,7277511891,8770695262,045040632,233269793
-0,31,526019291,4603312111,3956319081,3357564471,2836243581,2415698491,2115083231,1950148871,1933581461,2075157481,2381885211,285823661,350652821,4327479171,5320960571,6486958211,782680591,9344818472,1050589412,296247223
-0,21,4894613931,4287770361,3696779011,3155937961,2692049571,232703691,2079214441,1963841241,1993321451,2177280221,2522662171,3033944071,3713512661,4562231581,5580211631,6767810381,8126927831,9662746892,1386221162,331790572
-0,11,4375464141,3802018351,325267951,2757736151,2341425421,2023971581,1822519191,1751485891,1822644971,2045134491,2425521891,296800341,367478191,4546642991,5583743511,6786642511,8157651741,9702674972,1433879122,337387649
01,3693159951,3139105611,2619086451,215944721,1781748581,1504309391,134284721,1310657911,1418597891,1675039081,2085908661,2654881331,3383761,4273060871,5322816431,653363121,7908077311,9452620682,1180463522,31160723
0,11,2839323441,2293792381,1793317081,1360381481,1013807661,0769863191,0642645581,0644111451,0783974511,106961831,1506119581,2096438791,2841805731,3742312061,4797723971,6008553671,7377487371,8911381642,0624257062,254215318
0,21,1808225091,1263901091,0776181661,0363795841,0042810870,9827353180,9729766440,9760510630,9927990361,0238436391,0695920271,1302547441,2058848611,2964376821,4018522661,522159021,6576240561,808953491,9776047832,166301043
0,31,0598564121,0051958530,9573478310,9178239370,8879587680,8689474820,8618415920,8675277090,8867047970,9198702070,9673209491,0291735631,1054037691,1959061541,3005750411,4194110711,5526649591,7010432771,8660270782,050408295
0,40,921539580,8666928980,8197536780,7818915160,7541779730,7375933370,7330049270,7411364840,7625411820,7975864950,8464558460,9091692370,9856231881,0756497651,179095681,2959260891,4263650661,5710986871,7315943831,910649071
0,50,767191230,7125748090,6668524650,6308776820,6054745480,5914175270,5893948540,5999704140,6235538560,6603851950,7105373280,7739374870,8504071370,939719571,041675921,1562041481,2834930091,4241872551,5796990481,752753099
0,60,599070750,5454305450,501517980,46790370,4451867940,4339516330,4347190850,4479028360,4737779640,5124661440,563939440,6280425720,7045323350,7931328980,8936073121,0058494491,1300078291,2666668291,4171394531,583990185
0,70,4204139780,3687523570,3274644190,2968785870,2773981950,2694397510,2733749160,2894833010,3179208780,3587066090,4117278630,4767634080,5535218760,6416938620,74101750,8513610380,9728327051,1059412111,2518576251,412892656
0,80,2353481860,186826610,1491167340,1223516380,106774020,1026605120,1102574950,1297324520,1611435640,2044285250,259411850,3258284470,4033606260,4916861310,5905364080,699767640,8194529130,95001531,0924461371,24871131
0,90,0486722240,004498549-0,028637449-0,050746956-0,061708546-0,061353106-0,049531105-0,0261606480,008744540,0550667760,1125937570,1810425030,2600943770,3494382170,4488200810,5581008050,6773272390,8068320560,9473969531,100563942

Ejemplos de curvas generadas