Xiangiqgame
AI engine for Xiangqi
Loading...
Searching...
No Matches
xiangqipy.game_summary_plotters.SearchTimePlotter Class Reference

Implements GameSummaryPlotter, and produces plots showing time spent by core MinimaxMoveEvaluator(s) evaluating nodes and selecting Moves. More...

Inheritance diagram for xiangqipy.game_summary_plotters.SearchTimePlotter:
Inheritance graph
Collaboration diagram for xiangqipy.game_summary_plotters.SearchTimePlotter:
Collaboration graph

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)
 
def plot_player_search_times (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 Attributes

list search_stats_time_cols = ["search_time_s", "mean_time_per_node_ns"]
 
- 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
 

Additional Inherited Members

- Static Public Member Functions inherited from xiangqipy.game_summary_plotters.GameSummaryPlotter
def match_y_limits (np.ndarray axes_row)
 
- Public Attributes inherited from xiangqipy.game_summary_plotters.GameSummaryPlotter
 axes
 
 y_labels
 
 log_scale_rows
 
 num_players_with_data
 
- Protected Attributes inherited from xiangqipy.game_summary_plotters.GameSummaryPlotter
 _red_data
 
 _black_data
 
 _add_plot_column_titles
 

Detailed Description

Implements GameSummaryPlotter, and produces plots showing time spent by core MinimaxMoveEvaluator(s) evaluating nodes and selecting Moves.

Definition at line 275 of file game_summary_plotters.py.

Constructor & Destructor Documentation

◆ __init__()

def xiangqipy.game_summary_plotters.SearchTimePlotter.__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 283 of file game_summary_plotters.py.

Member Function Documentation

◆ plot_data()

def xiangqipy.game_summary_plotters.SearchTimePlotter.plot_data (   self)

Reimplemented from xiangqipy.game_summary_plotters.GameSummaryPlotter.

Definition at line 314 of file game_summary_plotters.py.

◆ plot_player_search_times()

def xiangqipy.game_summary_plotters.SearchTimePlotter.plot_player_search_times (   self,
bindings.PieceColor  player 
)

Definition at line 303 of file game_summary_plotters.py.

Member Data Documentation

◆ search_stats_time_cols

list xiangqipy.game_summary_plotters.SearchTimePlotter.search_stats_time_cols = ["search_time_s", "mean_time_per_node_ns"]
static

Definition at line 281 of file game_summary_plotters.py.


The documentation for this class was generated from the following file: