Skip to content

Commit 8096a5b

Browse files
Merge pull request #141 from PolicyEngine/nikhilwoodruff/issue140
Fix calibration log
2 parents e52501a + 236d1ec commit 8096a5b

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

changelog_entry.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- bump: patch
2+
changes:
3+
fixed:
4+
- Missing columns in the calibration log.

policyengine_uk_data/datasets/frs/local_areas/constituencies/calibrate.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,13 @@ def dropout_weights(weights, p):
160160
excluded_training_targets,
161161
)
162162
performance_step["epoch"] = epoch
163+
performance_step["loss"] = performance_step.rel_abs_error**2
164+
performance_step["target_name"] = [
165+
f"{area}/{metric}"
166+
for area, metric in zip(
167+
performance_step.name, performance_step.metric
168+
)
169+
]
163170
performance = pd.concat(
164171
[performance, performance_step], ignore_index=True
165172
)

0 commit comments

Comments
 (0)