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

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

src/a/z/AZOrange-HEAD/azorange/trainingMethods/AZBaseClasses.py   AZOrange(Download)
        ExFix = dataUtilities.ExFix()
        ExFix.set_domain(self.domain)
        ex = ExFix.fixExample(inEx)
        if self.basicStat == None or not self.NTrainEx or (self.domain.classVar.varType == orange.VarTypes.Discrete and len(self.domain.classVar.values)!=2):
            return None

src/a/z/AZOrange-HEAD/azorange/AZutilities/similarityMetrics.py   AZOrange(Download)
            domain = predictor.model.domain
        ExampleFix = dataUtilities.ExFix(domain,None,False)
        exFixed1 = ExampleFix.fixExample(testData[0])
        if testData.hasMissingValues():
            if not trainData:

src/a/z/AZOrange-HEAD/tests/source/AZdataUtilitiesTest.py   AZOrange(Download)
 
        ExampleFix = dataUtilities.ExFix(self.testData.domain,fixLog,True)
        exFixed1 = ExampleFix.fixExample(self.badVarTypeData[12])
        self.assert_(ex1Str.replace("'","")==str(exFixed1).replace("'",""),
                        "Example fixed changed relative to the original!\n"+ex1Str+"\n"+str(exFixed1)+"\n")
        self.assert_(exFixed1.domain==self.testData.domain,"Fixed Domain 1 does not mathch to the requested domain")
 
        exFixed2 = ExampleFix.fixExample(self.badVarOrderData[0])
        self.assertEqual(ex3Str[1],"?")
        ExampleFix = dataUtilities.ExFix(self.testData.domain,None,True)
        exFixed3 = ExampleFix.fixExample(ex3)
        self.assert_(ex3Str.replace("'","")==str(exFixed3).replace("'",""),
                        "Example fixed changed relative to the original!\n"+ex3Str+"\n"+str(exFixed3)+"\n")
        ex4Str=str(ex4)
        self.assertEqual(ex4Str[57],"?")
        exFixed4 = ExampleFix.fixExample(ex4)
        self.assert_(ex4Str.replace("'","")==str(exFixed4).replace("'",""),
                        "Example fixed changed relative to the original!\n"+ex4Str+"\n"+str(exFixed4)+"\n")
        ex5Str=str(ex5)
        self.assertEqual(ex5Str[5],"?")
        exFixed5 = ExampleFix.fixExample(ex5)
        self.assert_(ex5Str.replace("'","")==str(exFixed5).replace("'",""),
                        "Example fixed changed relative to the original!\n"+ex5Str+"\n"+str(exFixed5)+"\n")