Skip to content

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.

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
@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.

3 participants