Skip to content

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

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

dmeoli merged 2 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.019     0.021
10x10, middle     0.021     0.138
4x3               0.023     0.096

the linear estimates are worse in the middle and in the 4x3 world, as in the community answer, but not better in the corner: this DUE keeps the running average, while that of aima-python halves the old estimate at each trial, which keeps its tabular error at 0.044

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