Skip to content

Eis#10

Open
eisDNV wants to merge 3 commits intomainfrom
eis
Open

Eis#10
eisDNV wants to merge 3 commits intomainfrom
eis

Conversation

@eisDNV
Copy link
Copy Markdown
Collaborator

@eisDNV eisDNV commented Apr 28, 2026

Added explicit time in AntiPendulumEnvironment, so that this can be used in do_step(current_time, step_size) function. Previously 'steps' were used which is wrong when step_size != 1.0

eisDNV added 3 commits April 27, 2026 13:28
…. Moved 'intervals' to test_q as the parameter was only used to demonstrate resumed learning and is not used during normal training
…gument, not steps. The old version was incorrect for self.dt!=1.0
Comment thread tests/test_q.py
def test_intervals(crane: Callable[..., Crane]):
"""Test that learning / saving / resuming learning works:"""
save_path = Path.cwd() / "q_interval_1.json"
env = AntiPendulumEnv(
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eisDNV Do you need to check this environment with ppo agent as well?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes with the agent should not be necessary, but my change might affect results if you use dt!=1.0 for the environment (which you should, since 1.0 is too big a time step).

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.

2 participants