Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added display of probability distribution advice #38

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

ka-weng1
Copy link
Collaborator

@ka-weng1 ka-weng1 commented Jan 8, 2025

Added display of the probability distribution of orders predicted by the logistic regression model when user hovers on an orderable province. Based on configuration (see section Display Configuration), it either visually renders the distribution directly on the map or through textual messages in the move advice box.

Running the code

  • To run the code, the model path to the logistic regression model must be specified in the diplomacy/utils/models.py file.
  • the requirements.txt file has also been changed to include the baseline_models package so model utils functions can be used.

Display Configuration

When you click Create Game in the UI, in the other settings page of game creation form, there is a selection for setting the display of the distribution advice with options being (no advice), visual and textual.

@ka-weng1 ka-weng1 assigned ka-weng1 and aphedges and unassigned ka-weng1 Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants