Skip to content

Learner often suggests action -1 during training. Fails completely when actionsAtState is provided. #8

@AsgerHB

Description

@AsgerHB

The learner will often suggest taking the invalid action -1. This happens while all Q-values in a state has the default value.

This issue even occurs in the SARSA learner example, in the main method provided there.

The issue seems to be from bad handling of default values in the Vec.indexWithMaxValue(Set<Integer> indices) method.

If the *Learner.update function is provided optional argument actionsAtState, it updates to either NaN or -Infinity, again due to inconsistent default handling of the indexWithMaxValue method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions