|
Xiangiqgame
AI engine for Xiangqi
|
Implements GameSummaryPlotter, and plots evaluated score of each move of each Player using a Minimax algorithm in a Game. More...


Public Member Functions | |
| def | __init__ (self, np.ndarray axes, int|Tuple[int,...] log_scale_rows=tuple(), pd.DataFrame red_data=None, pd.DataFrame black_data=None, bool add_plot_column_titles=True) |
| int | largest_magnitude_noninf_eval_score (self) |
| def | plot_player_data (self, bindings.PieceColor player, plt.Axes ax, bool is_evaluating_player=True) |
| def | plot_player_and_opponent_overlay (self, bindings.PieceColor player) |
| def | plot_data (self) |
Public Member Functions inherited from xiangqipy.game_summary_plotters.GameSummaryPlotter | |
| def | __init__ (self, np.ndarray axes, Tuple[str,...] y_labels, int|Tuple[int,...] log_scale_rows=tuple(), pd.DataFrame red_data=None, pd.DataFrame black_data=None, bool add_plot_column_titles=True) |
| Dict[str, pd.DataFrame] | dfs (self) |
| bool | has_data (self, bindings.PieceColor player) |
| int | num_players_with_data (self) |
| def | validate_dfs (self) |
| def | set_y_axes (self) |
| def | set_x_axes (self) |
| Dict[bindings.PieceColor, int] | player_plot_col (self) |
| pd.Index | data_columns (self) |
| def | match_y_limits_all_rows (self) |
| def | plot_data (self) |
| def | remove_second_plot_col_ylabels (self) |
| def | set_plot_col_titles (self) |
| def | plot (self) |
Static Public Member Functions | |
| pd.Series | symmetric_winsorize (pd.Series data, int|float magnitude) |
Static Public Member Functions inherited from xiangqipy.game_summary_plotters.GameSummaryPlotter | |
| def | match_y_limits (np.ndarray axes_row) |
Additional Inherited Members | |
Public Attributes inherited from xiangqipy.game_summary_plotters.GameSummaryPlotter | |
| axes | |
| y_labels | |
| log_scale_rows | |
| num_players_with_data | |
Static Public Attributes inherited from xiangqipy.game_summary_plotters.GameSummaryPlotter | |
| dict | evaluating_player_line_colors |
| dict | player_text_labels |
| dict | non_evaluating_player_line_colors |
Protected Attributes inherited from xiangqipy.game_summary_plotters.GameSummaryPlotter | |
| _red_data | |
| _black_data | |
| _add_plot_column_titles | |
Implements GameSummaryPlotter, and plots evaluated score of each move of each Player using a Minimax algorithm in a Game.
Definition at line 320 of file game_summary_plotters.py.
| def xiangqipy.game_summary_plotters.EvalScorePlotter.__init__ | ( | self, | |
| np.ndarray | axes, | ||
| int | Tuple[int, ...] | log_scale_rows = tuple(), |
||
| pd.DataFrame | red_data = None, |
||
| pd.DataFrame | black_data = None, |
||
| bool | add_plot_column_titles = True |
||
| ) |
Reimplemented from xiangqipy.game_summary_plotters.GameSummaryPlotter.
Definition at line 326 of file game_summary_plotters.py.
| int xiangqipy.game_summary_plotters.EvalScorePlotter.largest_magnitude_noninf_eval_score | ( | self | ) |
Definition at line 344 of file game_summary_plotters.py.
| def xiangqipy.game_summary_plotters.EvalScorePlotter.plot_data | ( | self | ) |
Reimplemented from xiangqipy.game_summary_plotters.GameSummaryPlotter.
Definition at line 409 of file game_summary_plotters.py.
| def xiangqipy.game_summary_plotters.EvalScorePlotter.plot_player_and_opponent_overlay | ( | self, | |
| bindings.PieceColor | player | ||
| ) |
Definition at line 397 of file game_summary_plotters.py.
| def xiangqipy.game_summary_plotters.EvalScorePlotter.plot_player_data | ( | self, | |
| bindings.PieceColor | player, | ||
| plt.Axes | ax, | ||
| bool | is_evaluating_player = True |
||
| ) |
Definition at line 370 of file game_summary_plotters.py.
|
static |
Definition at line 362 of file game_summary_plotters.py.