def writeOptimizationResults(self, testRun, accuracyPerc):
	if (self.optResultsFile != ""):
		optResults = open(self.optResultsFile, 'a')
		optResults.write("\tminWeightsRand\t"+str(self.minWeightsRand)+"\tmaxWeightsRand\t"+str(self.maxWeightsRand)+\
			"\tpositiveWeightReinforcement\t"+str(self.positiveWeightReinforcement)+"\tnegativeWeightReinforcement\t"+str(self.negativeWeightReinforcement))
		optResults.write("\nPrecisionPerc\t"+str(Decimal(format(self.totalSpikeIntervals, '.1f'))/Decimal(format(testRun.truePositiveSpikeResults, '.1f')))+"\t"+str(testRun.truePositiveSpikeResults)+"/"+str(self.totalSpikeIntervals)+"\t(this is the percentage of all true positves that were found)")
		optResults.write('\nAccuracyPerc\t'+str(accuracyPerc)+'\tTP:\t'+str(testRun.truePositiveSpikeResults)+'\tFP:\t'+str(testRun.falsePositiveSpikeResults)+'\tTN:\t'+str(testRun.trueNegativeSpikeResults)+'\tFN:\t'+str(testRun.falseNegativeSpikeResults))
		optResults.close()
dataset/ETHPy150Open tartavull/snn-rl/furtherFormulas/testingProcesses.py/writeOptimizationResults/swapped operands of `/`