def save()

in src/fmeval/eval_algorithms/save_strategy.py [0:0]


    def save(self, records: List[EvalOutputRecord]):
        """Append the list of evalution output records to the file at provided file path

        :param records: list of EvalOutputRecords to be saved
        """
        with open(self._file_path, mode="a") as file:
            if self._call_count > 0:
                file.write("\n")
            file.writelines("\n".join([json.dumps(record.to_dict()) for record in records]))
            self._call_count += 1