Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reinforcement Learning: Ornstein-Uhlenbeck noise #3499

Merged
merged 3 commits into from Jul 1, 2023

Conversation

tareknaser
Copy link
Member

Description

This pull request implements the Ornstein-Uhlenbeck noise class, along with a unit test.

Implementation details

The Ornstein-Uhlenbeck process is a process that generates temporally correlated noise via a random walk with damping, which is commonly used in reinforcement learning algorithms.

  • I added a new file for convenience to include new noise classes in the future.
  • The OUNoise class provides a reset() function that sets the internal state of the noise process to the specified mean (mu).
  • It offers a sample() function to update the internal state based on the mean reversion rate (theta) and standard deviation (sigma), and returns the current state as a noise sample.

How Has This Been Tested?

  • The OUNoiseTest verifies the functionality of the OUNoise class by testing the reset() function and the generation of noise samples, ensuring that the sampled state has the expected size and is not equal to the reset state.

Signed-off-by: Tarek <tareknaser360@gmail.com>
Signed-off-by: Tarek <tareknaser360@gmail.com>
Signed-off-by: Tarek <tareknaser360@gmail.com>
Copy link
Member

@zoq zoq left a comment

Choose a reason for hiding this comment

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

Thanks for putting this together.

Copy link

@mlpack-bot mlpack-bot bot left a comment

Choose a reason for hiding this comment

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

Second approval provided automatically after 24 hours. 👍

@shubham1206agra shubham1206agra merged commit b5cb9df into mlpack:master Jul 1, 2023
10 of 17 checks passed
@tareknaser tareknaser deleted the ou branch July 8, 2023 12:41
@rcurtin rcurtin mentioned this pull request Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants