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