Skip to content

Commit 267814a

Browse files
committed
fix: Print out canonical expression.
1 parent 023982c commit 267814a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dataframe-symbolic-regression/src/DataFrame/SymbolicRegression.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,8 @@ egraphGP cfg nonterminals varnames dataTrainVals dataTests = do
473473
pure . Fix $ Bin op l' r'
474474

475475
printExpr' :: Int -> EClassId -> RndEGraph [String]
476-
printExpr' ix ec = do
476+
printExpr' ix ec' = do
477+
ec <- canonical ec'
477478
thetas' <- gets (fmap (_theta . _info) . (IM.!? ec) . _eClass)
478479
bestExpr <-
479480
(if simplifyExpressions cfg then simplifyEqSatDefault else id)

0 commit comments

Comments
 (0)