235 lines
5.7 KiB
JavaScript
235 lines
5.7 KiB
JavaScript
|
var x = [ [ 0.035340802002123084,
|
||
|
-0.1252970607404862,
|
||
|
0.06180648454070692,
|
||
|
-0.21490786213276358,
|
||
|
0.040691582999176745,
|
||
|
-0.10053882937507996,
|
||
|
0.01881631991446575,
|
||
|
-0.10166646356102582,
|
||
|
0.02373232014661042,
|
||
|
-0.17022162374301608,
|
||
|
0.02065919904796587,
|
||
|
-0.08302714297379143,
|
||
|
0.021787537462241602,
|
||
|
-0.08674200761648976,
|
||
|
0.01604919028046936,
|
||
|
-0.1448525275217234,
|
||
|
0.013908078406561941,
|
||
|
-0.07733559077981322,
|
||
|
0.026877553946388133,
|
||
|
-0.07881280498822996,
|
||
|
0.030072592467197623,
|
||
|
-0.12731074004623988,
|
||
|
0.024740228950509646,
|
||
|
-0.08506190635097077 ],
|
||
|
[ 0.02711003901284048,
|
||
|
-0.14866647780215114,
|
||
|
0.10076418521335562,
|
||
|
-0.34940948806328276,
|
||
|
0.08551608082144924,
|
||
|
-0.16943527125548918,
|
||
|
0.0629181664806513,
|
||
|
-0.13550997134205645,
|
||
|
0.06614517842519163,
|
||
|
-0.24797943480522466,
|
||
|
0.047436650607426856,
|
||
|
-0.1193252945151766,
|
||
|
0.029836553131850962,
|
||
|
-0.09259867581186398,
|
||
|
0.02642094089186564,
|
||
|
-0.16258782486811008,
|
||
|
0.025603892436693698,
|
||
|
-0.08597517829407586,
|
||
|
0.026573530428420256,
|
||
|
-0.07137373246433842,
|
||
|
0.028775632422145314,
|
||
|
-0.11628291917746392,
|
||
|
0.029708794887740808,
|
||
|
-0.07294567325309842 ],
|
||
|
[ 0.05281901605613637,
|
||
|
-0.10952583883498068,
|
||
|
0.07629379559337313,
|
||
|
-0.223957652443179,
|
||
|
0.05921540136500347,
|
||
|
-0.1438089672577938,
|
||
|
0.02684197607390537,
|
||
|
-0.08603247362774624,
|
||
|
0.029927338694586858,
|
||
|
-0.1765666782239883,
|
||
|
0.02057409910015018,
|
||
|
-0.10222343815523605,
|
||
|
0.02338334897103067,
|
||
|
-0.08490551604812246,
|
||
|
0.021530274472337574,
|
||
|
-0.15767576100678493,
|
||
|
0.023056410390609017,
|
||
|
-0.0850562267912709,
|
||
|
0.040606791793017294,
|
||
|
-0.0921645846862642,
|
||
|
0.051759753286092725,
|
||
|
-0.175498202100405,
|
||
|
0.047654166165925105,
|
||
|
-0.10049802758893822 ],
|
||
|
[ 0.05959668887830638,
|
||
|
-0.13471369262391697,
|
||
|
0.07359457394059721,
|
||
|
-0.2153984915207543,
|
||
|
0.04854977629122814,
|
||
|
-0.10684057671680591,
|
||
|
0.031843316056367144,
|
||
|
-0.1042480475472578,
|
||
|
0.023906645481515554,
|
||
|
-0.16518895938627765,
|
||
|
0.019894061766660975,
|
||
|
-0.08022605155571227,
|
||
|
0.023065788234966078,
|
||
|
-0.08311705151769821,
|
||
|
0.021350833307804074,
|
||
|
-0.14467867187681627,
|
||
|
0.01900503391457775,
|
||
|
-0.08142071335740475,
|
||
|
0.030649785921651684,
|
||
|
-0.0781763615564639,
|
||
|
0.03845780869266058,
|
||
|
-0.1431005238909755,
|
||
|
0.032275909666841684,
|
||
|
-0.087693742175869 ],
|
||
|
[ 0.02762506192474401,
|
||
|
-0.10038477680629754,
|
||
|
0.04949636123429357,
|
||
|
-0.17226634156086096,
|
||
|
0.04240713803264917,
|
||
|
-0.09822645522794993,
|
||
|
0.007415832611840756,
|
||
|
-0.08301229297643253,
|
||
|
0.017631868346450474,
|
||
|
-0.16957001722906995,
|
||
|
0.018791761641778315,
|
||
|
-0.08561173961202329,
|
||
|
0.02226080885004933,
|
||
|
-0.08986325445662846,
|
||
|
0.019372719568057306,
|
||
|
-0.15804088004793115,
|
||
|
0.018742944622548663,
|
||
|
-0.08387897840235059,
|
||
|
0.03788708197687729,
|
||
|
-0.09106474042740942,
|
||
|
0.044753047973491,
|
||
|
-0.16392487159848024,
|
||
|
0.035332927398760816,
|
||
|
-0.08972859845988346 ],
|
||
|
[ 0.03889119067648927,
|
||
|
-0.09088296203281754,
|
||
|
0.06699375590071366,
|
||
|
-0.19719237041743387,
|
||
|
0.03417728149393362,
|
||
|
-0.16368483797938538,
|
||
|
0.017279574949016663,
|
||
|
-0.07913157900929235,
|
||
|
0.022694645015475245,
|
||
|
-0.17061806521253686,
|
||
|
0.012376148994581726,
|
||
|
-0.09955603641779831,
|
||
|
0.018979037214893246,
|
||
|
-0.08242509600508452,
|
||
|
0.018598797299372194,
|
||
|
-0.15646387041701537,
|
||
|
0.02302411597855958,
|
||
|
-0.08891244631974082,
|
||
|
0.03371306147670339,
|
||
|
-0.09025760392952886,
|
||
|
0.04318070515218242,
|
||
|
-0.16822837110003697,
|
||
|
0.032375791501122464,
|
||
|
-0.08967092080141903 ],
|
||
|
[ 0.023838872917864684,
|
||
|
-0.16236750698300995,
|
||
|
0.06569060246989977,
|
||
|
-0.20266175603494307,
|
||
|
0.04224055615299349,
|
||
|
-0.09611289793057232,
|
||
|
0.026271260586829825,
|
||
|
-0.09828504704868024,
|
||
|
0.029587830215235478,
|
||
|
-0.1725568815896512,
|
||
|
0.023877755962926628,
|
||
|
-0.08258128828224987,
|
||
|
0.02874417613246827,
|
||
|
-0.08998363618727012,
|
||
|
0.025433601721349675,
|
||
|
-0.16096150125562048,
|
||
|
0.025264775716062893,
|
||
|
-0.08398780366643166,
|
||
|
0.04646677657796694,
|
||
|
-0.10179753383080659,
|
||
|
0.0552597904081793,
|
||
|
-0.18676871161351016,
|
||
|
0.04521767381099906,
|
||
|
-0.10137340201832146 ],
|
||
|
[ 0.03653165523290891,
|
||
|
-0.13212336868967967,
|
||
|
0.07525730676232456,
|
||
|
-0.22219820696416281,
|
||
|
0.0388943276634528,
|
||
|
-0.10778545524276062,
|
||
|
0.019521758344184015,
|
||
|
-0.09935853216175605,
|
||
|
0.02478343481603673,
|
||
|
-0.20313813597947128,
|
||
|
0.01227159778232867,
|
||
|
-0.09477475800159763,
|
||
|
0.025344360047837355,
|
||
|
-0.09281396612130166,
|
||
|
0.022725488717794562,
|
||
|
-0.1710539235859807,
|
||
|
0.02235898591907759,
|
||
|
-0.08917199559941658,
|
||
|
0.03566830968365764,
|
||
|
-0.08827566909977147,
|
||
|
0.0424768693177775,
|
||
|
-0.1682512798212059,
|
||
|
0.03173609922043674,
|
||
|
-0.08785433201853277 ],
|
||
|
[ 0.051281442010491673,
|
||
|
-0.11188587715096077,
|
||
|
0.07877654238445153,
|
||
|
-0.23330858865665327,
|
||
|
0.029250014822546078,
|
||
|
-0.1288165636259162,
|
||
|
0.025678310240811797,
|
||
|
-0.08798779278242463,
|
||
|
0.03254740648181276,
|
||
|
-0.18497825089303355,
|
||
|
0.03898210711233663,
|
||
|
-0.11337411471454484,
|
||
|
0.024302691091186546,
|
||
|
-0.08853540093058765,
|
||
|
0.024651778519611867,
|
||
|
-0.1686412774053423,
|
||
|
0.024705645621663663,
|
||
|
-0.08777332318365971,
|
||
|
0.04521558714296958,
|
||
|
-0.10355354394295002,
|
||
|
0.054630616534497634,
|
||
|
-0.189288369474502,
|
||
|
0.044377847849043306,
|
||
|
-0.10132508103457294 ] ]
|
||
|
var y = [ 'NoneL1',
|
||
|
'NoneL2',
|
||
|
'NoneL3',
|
||
|
'NoneL1',
|
||
|
'NoneL2',
|
||
|
'NoneL3',
|
||
|
'NoneL1',
|
||
|
'NoneL2',
|
||
|
'NoneL3' ]
|
||
|
|
||
|
var model = ml.learn({
|
||
|
algorithm:ml.ML.DTI,
|
||
|
x:x,
|
||
|
y:y,
|
||
|
eps:0.001
|
||
|
});
|
||
|
print(toJSON(model).length+' Bytes')
|
||
|
print(ml.print(model))
|