def output_statistics(self, path, run_name):
        output_file = open(path, 'a')
        output_file.write("#Statistics {}\n".format(run_name))

        output_file.write("* F1 score: {}\n".format(self.get_statistics(self.all_f1_score)))
        output_file.write("* Precision: {}\n".format(self.get_statistics(self.all_precision)))
        output_file.write("* Recall: {}\n".format(self.get_statistics(self.all_recall)))
        output_file.write("* Reliability: {}\n".format(self.get_statistics(self.all_reliability)))
        if len(self.errors) > 0:
            output_file.write("* Mean square error: {}\n".format(self.get_statistics(self.errors)))

        output_file.write("\n")
        output_file.close()
dataset/ETHPy150Open tonybeltramelli/Deep-Spying/server/analytics/modules/classification/RelevanceAssessment.py/RelevanceAssessment.output_statistics/original