def populateClassInput(self): self.classSize.setInput(Parsers.parseSimpleString(self.data[self.currents["currentClass"]][1]))
def populateFeatureInput(self): sigma, mu = self.data[self.currents["currentClass"]][0][self.currents["currentFeature"]] self.classMu.setInput(Parsers.parseSimpleString(mu)) self.classSigma.setInput(Parsers.parseSimpleString(sigma))
def pointsFileWrite(data, labelDelimeter = " ", featureDelimeter = ";", pointDelimiter = "\n"): name = "generatedPoints"+str(time.time())+".data" with open(name, 'w') as file: file.write(pointDelimiter.join([ Parsers.parsePointToString(p, labelDelimeter, featureDelimeter) for p in data ]))