Esempio n. 1
0
 def best_broad_type(self):
     bestMatchList = []
     for i in range(10):
         host, name, age = classification_split(self.bestTypes[i])
         bestMatchList.append([host, name, age, self.softmax[i]])
     host, prevName, bestAge, probTotal, reliableFlag = combined_prob(bestMatchList)
     self.labelBestSnType.setText(prevName)
     self.labelBestAgeRange.setText(bestAge)
     self.labelBestHostType.setText(host)
     self.labelBestRedshift.setText(str(self.bestRedshift))
     self.labelBestRelProb.setText("%s%%" % str(round(100*probTotal, 2)))
     if reliableFlag:
         self.labelReliableFlag.setText("Reliable")
         self.labelReliableFlag.setStyleSheet('color: green')
     else:
         self.labelReliableFlag.setText("Unreliable")
         self.labelReliableFlag.setStyleSheet('color: red')
Esempio n. 2
0
    def best_broad_type(self, bestMatchList):
        host, prevName, bestAge, probTotal, reliableFlag = combined_prob(bestMatchList[0:10])

        return (prevName, bestAge, probTotal), reliableFlag