Learn R Programming

EmpiricalDynamics (version 0.1.2)

symbolic_search_weighted: Weighted Symbolic Search

Description

Performs symbolic search with weighted least squares.

Usage

symbolic_search_weighted(
  target,
  predictors,
  weights,
  operators = NULL,
  constraints = NULL,
  n_runs = 3,
  complexity_penalty = 0.05,
  verbose = TRUE
)

Value

A symbolic_search_result object

Arguments

target

Numeric vector of target values (typically derivatives).

predictors

Data frame of predictor variables.

weights

Optional weight vector for weighted regression.

operators

List specifying allowed operators:

  • binary: c("+", "-", "*", "/")

  • unary: c("exp", "log", "sqrt", "inv", "square")

  • custom: Custom function names (must be defined)

constraints

List of constraints:

  • forced: Formula of terms that must appear

  • forbidden: Formula of terms that must not appear

  • max_complexity: Maximum expression complexity

n_runs

Number of independent runs for robustness.

complexity_penalty

Penalty per unit complexity.

verbose

Print progress messages?