Expression Evaluation (40)

addNode
Listed in the export index; see the source for details.
Syntax
addNode(…)
compileExpr
Compile once, evaluate many
Syntax
compileExpr(expr)
compileScalar
Batch-evaluate a scalar node over Float64Array columns with per-row validity
Syntax
compileScalar(node, options)
compileScalarGradient
Same tape as compileScalar plus exact ∂f/∂parameter per row (grad layout)
Syntax
compileScalarGradient(node, options)
crossoverSubtrees
Listed in the export index; see the source for details.
Syntax
crossoverSubtrees(…)
deleteNode
Listed in the export index; see the source for details.
Syntax
deleteNode(…)
evaluate
Evaluate an expression string
Syntax
evaluate(expr[, scope])
evaluateScalar
Evaluate a scalar node from scalar (typed tree; a formula string is rejected)
Syntax
evaluateScalar(node[, scope])
fitScalarParameters
Fit ScalarNode parameters to columnar data (FitScalarOptions / FitScalarResult); default l2 uses levenbergMarquardt
Syntax
fitScalarParameters(node, columns, observed, variables, options)
frontToJson
Listed in the export index; see the source for details.
Syntax
frontToJson(…)
frontToLatexTable
Listed in the export index; see the source for details.
Syntax
frontToLatexTable(…)
identityMutation
Listed in the export index; see the source for details.
Syntax
identityMutation(…)
inferScalarDimension
SI dimension of a scalar tree with Fraction exponents, or a named violation and its path
Syntax
inferScalarDimension(node, dims)
insertNode
Listed in the export index; see the source for details.
Syntax
insertNode(…)
mutateConstant
Listed in the export index; see the source for details.
Syntax
mutateConstant(…)
mutateFeature
Listed in the export index; see the source for details.
Syntax
mutateFeature(…)
mutateOperator
Listed in the export index; see the source for details.
Syntax
mutateOperator(…)
nodeToScalar
Scalar subset of an expression node; throws ScalarBuildError when unsupported
Syntax
nodeToScalar(node)
numericallyEquivalent
Sample two scalar trees; compare with nearlyEqual (evidence, not proof)
Syntax
numericallyEquivalent(a, b, options)
NumericEquivalenceError
Thrown for invalid numericallyEquivalent options or domain
Syntax
NumericEquivalenceError
paretoFront
Pareto hall of fame (one survivor per complexity, ascending complexity)
Syntax
paretoFront(candidates)
ParetoFrontError
Thrown by scoreFront / selectFrontModel for invalid selection input
Syntax
ParetoFrontError
parser
Create a stateful parser with a scope retained across calls
Syntax
parser()
physicsScope
Listed in the export index; see the source for details.
Syntax
physicsScope(…)
randomizeTree
Listed in the export index; see the source for details.
Syntax
randomizeTree(…)
replacer
JSON.stringify replacer — serialises Complex, Fraction, non-finite numbers
Syntax
replacer(key, value)
reviver
JSON.parse reviver — restores Complex, Fraction, non-finite numbers
Syntax
reviver(key, value)
rotateTree
Listed in the export index; see the source for details.
Syntax
rotateTree(…)
runScalarSearch
Consume searchScalars to its final ScalarSearchResult (SR-16): builds createSeededRng(seed) when seed is set and rng omitted, reads a columns record in variables order; throws RangeError when both or neither of seed/rng are set. See docs/reference/scalar-search.md
Syntax
runScalarSearch(problem, options)
ScalarEvalError
Thrown when a scalar node cannot be evaluated
Syntax
ScalarEvalError
scalarToNode
Build wired expression Node from a scalar tree (no string parse)
Syntax
scalarToNode(node)
scalarToTex
LaTeX via Node.toTex on scalarToNode(node)
Syntax
scalarToTex(node[, options])
scoreFront
Log-loss scores ('log' default) for a front
Syntax
scoreFront(front[, { lossScale }])
searchScalars
Listed in the export index; see the source for details.
Syntax
searchScalars(…)
selectFrontModel
Pick accuracy / score / best champion (ParetoFrontError on bad input)
Syntax
selectFrontModel(scored[, mode[, opts]])
simplifyConstants
Listed in the export index; see the source for details.
Syntax
simplifyConstants(…)
simplifyScalar
Symbolic simplify via wired simplify, returning a scalar tree
Syntax
simplifyScalar(node[, options])
solveParameterDimensions
Solve unknown parameter dimensions exactly (solved / underdetermined / inconsistent)
Syntax
solveParameterDimensions(node, dims, target, parameters[, opts])
swapOperands
Listed in the export index; see the source for details.
Syntax
swapOperands(…)
weightedMutation
Listed in the export index; see the source for details.
Syntax
weightedMutation(…)