Skip to content

ENH: Create tests for MixedBehaviorProfile as_strategy #432

@rahulsavani

Description

@rahulsavani

This issue is about MixedBehaviorProfile.as_strategy, which turns a behavior profile into a MixedStrategyProfile.

There are currently no tests for as_strategy (an old test for this was removed because it was not particularly useful and was even misleading).

New tests should be written for as_strategy. Two that certainly make sense are:

  1. A consistency test that checks that the expected payoff of the original behavior profile matches the expected payoff computed for the mixed strategy that is return by as_strategy.
  2. A reference test that uses manual calculations which implement Kuhn's theorem to convert a behavior strategy to a mixed strategy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good-first-issueItems which are (relatively) straightforward, and good ways to get into the codepythonItems which involve coding in PythontestsItems which involve the pygambit test suite

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions