Skip to content

test(ddpg): add actor Q-improvement trend coverage (update_actor) - #125

Open
belarusian wants to merge 1 commit into
mainfrom
build40/ddpg-rl-coverage
Open

test(ddpg): add actor Q-improvement trend coverage (update_actor)#125
belarusian wants to merge 1 commit into
mainfrom
build40/ddpg-rl-coverage

Conversation

@belarusian

Copy link
Copy Markdown
Owner

TICKET-055 / issue #124: the actor side of DDPG was only ever checked for finiteness. Adds test_actor_q_improves_over_updates, which runs repeated update_actor steps on a fixed batch and asserts the actor's mean Q-value (the quantity update_actor maximises) strictly improves and the actor loss (-mean Q) falls. Measured +0.0117 for seed=42, deterministic and positive across seeds 0/1/7/42.

Gate: pytest tests/ -q (POLYGON_API_KEY=dummy) RC=0 (611 collected = 610 + 1 new); ruff check alloc/ clean; mypy alloc/ --ignore-missing-imports clean (20 files).

Closes #124

TICKET-055 / issue #124: the actor side was only ever checked for
finiteness. Add test_actor_q_improves_over_updates, which runs repeated
update_actor steps on a fixed batch and asserts the actor's mean Q-value
(the quantity update_actor maximises) strictly improves and the actor loss
(-mean Q) falls. Measured +0.0117 for seed=42, deterministic and positive
across seeds 0/1/7/42.
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.

TICKET-055: Deeper DDPG coverage — actor Q-improvement trend (update_actor)

1 participant