qxmt.visualization.plot_regression_performance module

qxmt.visualization.plot_regression_performance module#

qxmt.visualization.plot_regression_performance.plot_actual_vs_predicted(y_true, y_pred, grid=True, save_path=None, **kwargs)#

Plot actual vs predicted values.

Parameters:
  • y_true (np.ndarray) – actual values of the data.

  • y_pred (np.ndarray) – predicted values of the data.

  • grid (bool, optional) – grid on the plot. Defaults to True.

  • save_path (Optional[str | Path], optional) – save path of graph. Defaults to None.

  • **kwargs (Any) – additional arguments for plot. title (str, optional): title of the plot. Defaults to “Residual Plot”.

Return type:

None

qxmt.visualization.plot_regression_performance.plot_residual(y_true, y_pred, grid=True, save_path=None, **kwargs)#

Plot residuals vs predicted values. residuals caluculated by y_true - y_pred.

Parameters:
  • y_true (np.ndarray) – actual values of the data.

  • y_pred (np.ndarray) – predicted values of the data.

  • grid (bool, optional) – grid on the plot. Defaults to True.

  • save_path (Optional[str | Path], optional) – save path of graph. Defaults to None.

  • **kwargs (Any) – additional arguments for plot. title (str, optional): title of the plot. Defaults to “Residual Plot”.

Return type:

None