qxmt.visualization.plot_regression_performance module#
- qxmt.visualization.plot_regression_performance.plot_actual_vs_predicted(y_true, y_pred, grid=True, title='Actual vs Predicted Plot', x_label='Actual Values', y_label='Predicted Values', 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.
title (str, optional) – title of the plot. Defaults to “Actual vs Predicted Plot”.
x_label (str, optional) – label of the x-axis. Defaults to “Actual Values”.
y_label (str, optional) – label of the y-axis. Defaults to “Predicted Values”.
save_path (Optional[str | Path], optional) – save path of graph. Defaults to None.
**kwargs (Any) – additional arguments for plot.
- Return type:
None
- qxmt.visualization.plot_regression_performance.plot_residual(y_true, y_pred, grid=True, title='Residual Plot', x_label='Predicted Values', y_label='Residuals', 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.
title (str, optional) – title of the plot. Defaults to “Residual Plot”.
x_label (str, optional) – label of the x-axis. Defaults to “Predicted Values”.
y_label (str, optional) – label of the y-axis. Defaults to “Residuals”.
save_path (Optional[str | Path], optional) – save path of graph. Defaults to None.
**kwargs (Any) – additional arguments for plot.
- Return type:
None