def to_json(self, fname):
        """Stores metrics dictionary as a json filename.

        :param fname:
        :return:
        """
        # TODO: test
        with open(fname, "w") as f:
            json.dump(obj=self.metrics_res, fp=f)
Stores metrics dictionary as a json filename.

        :param fname:
        :return:
        
avalanche/evaluation/collector.py