Skip to content

Refactor: Broke up eGraphGP, added optional rng seed to RegressionConfig, added nix flake for simple dev setup#2

Open
ashwinmathi wants to merge 23 commits into
DataHaskell:mainfrom
ashwinmathi:main
Open

Refactor: Broke up eGraphGP, added optional rng seed to RegressionConfig, added nix flake for simple dev setup#2
ashwinmathi wants to merge 23 commits into
DataHaskell:mainfrom
ashwinmathi:main

Conversation

@ashwinmathi
Copy link
Copy Markdown

No description provided.

Comment thread src/Example.hs Outdated
import qualified DataFrame.Functions as F
import Symbolic.Regression

example_predictMPG :: IO ()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This example is effectively unrunnable right? First cause the data file it relies on isn't in source control and it's not an executable.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed this file and transferred the example modifications to the README. iirc this was just defining mpg and avoiding the hardcoded keys for levels

, binaryFunctions :: [D.Expr Double -> D.Expr Double -> D.Expr Double]
, binaryFunctions :: [BinaryFunc]
{- ^ Binary operations to include in the search space
(default: @[(+), (-), (*), (\/)]@)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's update the haddock below as well with the new API.

Comment thread src/Symbolic/Regression.hs Outdated
Comment thread src/Symbolic/Regression.hs Outdated
Comment thread src/Symbolic/Regression.hs Outdated
Comment thread symbolic-regression.cabal
import: warnings
default-language: Haskell2010
type: exitcode-stdio-1.0
hs-source-dirs: test
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add one or two hunit tests.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added tests for datasets known to have constant, linear, quadratic, multivariate models with customized configs

Comment thread test/Main.hs Outdated
Comment thread test/Main.hs Outdated
…op, and report generation

Reduces egraphGP from ~420 lines to ~230 lines.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants