Source code for plotting.plotter
import abc
import numpy as np
[docs]
class Plotter(abc.ABC):
r"""
Abstract class for plotting the results of a model.
"""
[docs]
@abc.abstractmethod
def plot(self, y_true: np.ndarray, y_pred: np.ndarray, path: str):
"""
Plot the results of the model.
Args:
y_true (np.ndarray): The true target values.
y_pred (np.ndarray): The predicted target values.
path (str): The path to save the plot.
"""
pass