Skip to content

Commit 5ba53ad

Browse files
committed
Bugfix. Normalize cardinality error.
1 parent 997f12a commit 5ba53ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

postprocessing.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ learnOnPlanState(PlanState *p, void *context)
497497
/* Exclude "not executed" nodes from error calculation to reduce fluctuations. */
498498
if (!notExecuted)
499499
{
500-
cardinality_sum_errors += fabs(predicted - learn_rows);
500+
cardinality_sum_errors += fabs(log(predicted) - log(learn_rows));
501501
cardinality_num_objects += 1;
502502
}
503503

0 commit comments

Comments
 (0)