| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
DataFrame.SymbolicRegression.Expr
Description
The symbolic-regression expression tree: a small first-order ADT with
vectorized evaluation and a total translation to a dataframe 'Expr Double'.
Division, log, and sqrt are protected so evaluation never produces NaN.
Documentation
A symbolic-regression expression over feature variables and constants.
evalSR :: Vector (Vector Double) -> Int -> SRExpr -> Vector Double Source #
Evaluate over a feature matrix given column-major (feats ! j is feature
j across all rows). Protected operators keep results finite.
toDataFrameExpr :: Vector Text -> SRExpr -> Expr Double Source #
Translate to a dataframe expression over the named feature columns.