Beispiel #1
0
 def populateClassInput(self):
     self.classSize.setInput(Parsers.parseSimpleString(self.data[self.currents["currentClass"]][1]))
Beispiel #2
0
 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))
Beispiel #3
0
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 ]))