Skip to content

Measure the errors of the tabular and linear estimates in exercise 21.7 - #214

Merged
dmeoli merged 3 commits into
masterfrom
tests/ex21-7-errors
Dec 2, 2026
Merged

dmeoli merged 3 commits into
masterfrom
tests/ex21-7-errors

Conversation

@dmeoli

@dmeoli dmeoli commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

the test of exercise 21.7 now also measures, as aima-python does, the mean absolute error of the tabular and of the linear DUE estimates w.r.t. the true utilities after 300 trials, and pins the values of this port

world            tabular   linear
10x10, corner     0.041     0.066
10x10, middle     0.038     0.162
4x3               0.110     0.116

the linear estimates are worse in the middle and in the 4x3 world, as in the community answer, but not better in the corner: with this seed the step 0.05 leaves them noisy, with 0.01 or after 1000 trials they are (0.021, 0.022)

@dmeoli
dmeoli marked this pull request as ready for review December 2, 2026 15:40
@dmeoli
dmeoli merged commit 96f3a62 into master Dec 2, 2026
1 check passed
@dmeoli
dmeoli deleted the tests/ex21-7-errors branch December 2, 2026 15:40
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.

1 participant