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 intoDataHaskell: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 intoDataHaskell:mainfrom
ashwinmathi:main

Conversation

@ashwinmathi
Copy link

No description provided.

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

example_predictMPG :: IO ()
Copy link
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
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
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.

import: warnings
default-language: Haskell2010
type: exitcode-stdio-1.0
hs-source-dirs: test
Copy link
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
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

…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