Return a dictionary representation of the dataset.

def to_dict(self):
        """
        Return a dictionary representation of the dataset.
        """
        d = dict(individual_doses=self.individual_doses, responses=self.responses)
        d.update(self.kwargs)
        return d