def __init__(self, checkdata, opt, name="Train", update_epochs=1):
        """
        Args:
            checkdata: PyTorch DataLoader, data to check distance progression.
            opt:       argparse.Namespace, contains all training-specific parameters.
            name:      str, Name of instance. Important for savenames.
            update_epochs:  int, Only compute distance ratios every said epoch.
        Returns:
            Nothing!
        """
        self.update_epochs = update_epochs
        self.pars = opt
        self.save_path = opt.save_path

        self.name = name
        self.csv_file = opt.save_path + "/distance_measures_{}.csv".format(
            self.name
        )
        with open(self.csv_file, "a") as csv_file:
            writer = csv.writer(csv_file, delimiter=",")
            writer.writerow(["Rel. Intra/Inter Distance"])

        self.checkdata = checkdata

        self.mean_class_dists = []
        self.epochs = []

        Args:
            checkdata: PyTorch DataLoader, data to check distance progression.
            opt:       argparse.Namespace, contains all training-specific parameters.
            name:      str, Name of instance. Important for savenames.
            update_epochs:  int, Only compute distance ratios every said epoch.
        Returns:
            Nothing!
        
examples/pytorch/hilander/PSS/Smooth_AP/src/evaluate.py