symbolic regression test
use a pool of
expressions
and train them with data from this code:
let data = []; for(let i = 0; i < 128; i++) { data.push([[i],Math.sin(i)]); } return data;
plus these extra options:
{ yes: ["+","-","*","/","^","abs"], const: () => 1, maxComplexity: 1e300, complexityCost: 1e-6, costRand: 1, costPrecision: 5, errorCost: 1, showAllConstants: false, mShownExpers: 0, }
train for 0.5 seconds
,
train once
, or
reset back all expressions to 1
run auto?
equations, from best to worst, in LaTeX: