Stochastic actions - #4
Open
Tia-Chen wants to merge 2 commits into
Open
Conversation
Offers default probability (noise-less) or user given probability that can be loaded from file
Tia-Chen
marked this pull request as ready for review
April 1, 2024 02:53
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FUNCTIONALITY:
This feature allows for noise to be added to actions. Default noise is none. User can input desired noise by providing a txt file that contains of the probability of results of different actions and the likelihood of those actions happening instead of the intended action. Thereby introducing noise.
HOW TO USE:
Use the --stochastic flag when running the environment simulator. This will prompt you for a file that contains the stochastic information.
Stochastic file (required)
The file format is:
The probability for each command is separated by a newline. The file should have no trailing spaces at the end of each line and no trailing empty newline at the end of the file.
For an example, please see stochastic_probability.txt
***These probabilities are relatively weighted. If you assign for INTERACT: INTERACT -- 0.3 and NOP -- 0.3, it will be equally likely that either of them are executed when the INTERACT command is called. This would be equivalent to INTERACT: INTERACT -- 3, NOP -- 3. The probability is calculated using:
probability of an action = (value of single action / (sum value of all actions possible)HOW TO TEST:
ISSUES/FOLLOW-UP: