Skip to content

Taking account of selected action in next action space #455

Discussion options

You must be logged in to vote

Hi @DonalOCois , I think you have the right idea - you should augment the state space to include the previous action if the current action space depends on the previous action (the steering wheel you mention is the right idea).

However, it doesn't look like you are implementing it quite right. It might be easier to debug and the syntax might be easier to understand if you break the function out separately from the QuickMDP constructor like this:

function my_actions(s = #=default state=#)
    # return the action space
end

mdp = QuickMDP(
    #...
    actions = my_actions,
    #...
)

Then you can debug the my_actions function more easily. Note that the function should only take one argume…

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@zsunberg
Comment options

@DonalOCois
Comment options

@zsunberg
Comment options

@DonalOCois
Comment options

@zsunberg
Comment options

Answer selected by DonalOCois
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants