Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(19)  |  Call(19)  |  Derive(0)  |  Import(0)

src/a/z/AZOrange-HEAD/orange/OrangeWidgets/Classify/OWParamOpt.py   AZOrange(Download)
                    comboDistType = self.comboDistItems.index(self.paramsTable.item(row,4).text())
                if comboDistType==0:     #Continuous
                    if not miscUtilities.isNumber(Llimit):
                        if "N_EX" not in Llimit and "N_ATTR" not in Llimit:
                            QMessageBox.warning(self,"Invalid parameter","Parameter "+name+" has invalid Lower limit",QMessageBox.Ok)               
                            return False
                    if not miscUtilities.isNumber(Ulimit):
                    self.parameters[name][4] = default
                elif comboDistType==1:   #Power2
                    if not miscUtilities.isNumber(Llimit):
                        if "N_EX" not in Llimit and "N_ATTR" not in Llimit:
                            QMessageBox.warning(self,"Invalid parameter","Parameter "+name+" has invalid Lower limit",QMessageBox.Ok)
                            return False
                    if not miscUtilities.isNumber(Ulimit):
                            QMessageBox.warning(self,"Invalid parameter","Parameter "+name+" has invalid Upper limit",QMessageBox.Ok)
                            return False
                    if not miscUtilities.isNumber(step):
                        QMessageBox.warning(self,"Invalid parameter","Parameter "+name+" has an invalid step value",QMessageBox.Ok)
                        return False

src/a/z/AZOrange-HEAD/azorange/AZutilities/dataUtilities.py   AZOrange(Download)
        for idx in xrange(len(varNames)):
            value = ex[idx].value
            if miscUtilities.isNumber(value):
                cv.cvSetReal1D(mat,idx, float(value))
            else:
                    for ex in allDatasets[idx]:
                        totalExamples += 1
                        OKCvtToCont += miscUtilities.isNumber(ex[attr].value) and True #his way assure only 1 is added at a time
                #If >=50% can be securely converted to Continuous, use the continuous attribute
                if OKCvtToCont >= (totalExamples/2):
                            newEx[attr] = '?'
                    else:                                                  # The Leader is Continuous
                        if miscUtilities.isNumber(ex[attr].value):
                           newEx[attr] = float(ex[attr].value)
                        else:
                            newEx[attr] = '?'
                    else:                                                 #The Leader is Continuous
                        if miscUtilities.isNumber(ex[attr].value):
                           newEx[attr] = float(ex[attr].value)
                        else:
    def __cvt2Cont(self,attr):  # Converts any attr to continuous
            self.fixTypes=True
            if miscUtilities.isNumber(attr.value):
                self.__composeVarLog(attr)
                return float(attr.value)

src/a/z/AZOrange-HEAD/azorange/AZutilities/evalUtilities.py   AZOrange(Download)
    for fidx,nn in enumerate(TS):
        ID= nn[idxID]
        if miscUtilities.isNumber(nn[idxExpVal]):
            expVal = str(round(float(nn[idxExpVal]),2))
        else:
            for ex in data:
                value = str(ex[testAttrFilter].value)
                if not miscUtilities.isNumber(value):
                   raise Exception("Invalid fold value:"+str(value)+". It must be str convertable to an int.")
                value = int(float(value))

src/a/z/AZOrange-HEAD/azorange/AZutilities/getUnbiasedAccuracy.py   AZOrange(Download)
                    for ex in self.data:
                        value = str(ex[self.testAttrFilter].value)
                        if not miscUtilities.isNumber(value):
                            self.__log("Invalid fold value:"+str(value)+". It must be str convertable to an int.")
                            return False

src/a/z/AZOrange-HEAD/orange/OrangeWidgets/Classify/OWCvANN.py   AZOrange(Download)
        self.optAlg = int(self.optAlgGUI)
        self.stopCrit = int(self.stopCritGUI) + 1
        if miscUtilities.isNumber(self.stopValueGUI):
            if self.stopCrit == 1: #ITER
                self.maxIter = int(self.stopValueGUI)

src/a/z/AZOrange-HEAD/azorange/AZutilities/similarityMetrics.py   AZOrange(Download)
        #It is much faster to address the ex elements by their position instead of the correpondent name
        for idx in range(len(ex.domain.attributes)):
            if not miscUtilities.isNumber(ex[idx].value):
                raise Exception("Cannot calculate Mahalanobis distances. The attribute '" + \
                      ex.domain.attributes[idx].name + "' has non-numeric values. Ex: " + \