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

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

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

src/a/z/AZOrange-HEAD/azorange/trainingMethods/AZorngCvSVM.py   AZOrange(Download)
        self.name = name
        self.domain = None
        self.ExFix = dataUtilities.ExFix()
        if self.imputeData:
            '''Create the imputer: the imputer needs the imputeData to exists allong it's life time'''

src/a/z/AZOrange-HEAD/azorange/trainingMethods/AZorngCvANN.py   AZOrange(Download)
        self.name = name
        self.domain = None        
        self.ExFix = dataUtilities.ExFix()
 
        if self.imputeData:

src/a/z/AZOrange-HEAD/azorange/trainingMethods/AZorngCvBayes.py   AZOrange(Download)
        self.name = name
        self.domain = None        
        self.ExFix = dataUtilities.ExFix()
 
        if self.imputeData:

src/a/z/AZOrange-HEAD/azorange/trainingMethods/AZorngRF.py   AZOrange(Download)
        else:   
            self.oobError = None
        self.ExFix = dataUtilities.ExFix()
        if self.imputeData != None:
            '''Create the imputer: the imputer needs the imputeData to exists allong it's life time'''

src/a/z/AZOrange-HEAD/azorange/trainingMethods/AZorngCvBoost.py   AZOrange(Download)
        self.name = name
        self.domain = None        
        self.ExFix = dataUtilities.ExFix()
        if self.imputeData:
            '''Create the imputer: the imputer needs the imputeData to exists allong it's life time'''

src/a/z/AZOrange-HEAD/azorange/trainingMethods/AZorngPLS.py   AZOrange(Download)
        self.imputer = None
        self.domain = None
        self.ExFix = dataUtilities.ExFix()
 
        if self.imputeData:

src/a/z/AZOrange-HEAD/azorange/trainingMethods/AZBaseClasses.py   AZOrange(Download)
        varGrad = []
 
        ExFix = dataUtilities.ExFix()
        ExFix.set_domain(self.domain)
        ex = ExFix.fixExample(inEx)

src/a/z/AZOrange-HEAD/tests/source/AZdataUtilitiesTest.py   AZOrange(Download)
        ex1Str=str(self.badVarTypeData[12])
 
        ExampleFix = dataUtilities.ExFix(self.testData.domain,fixLog,True)
        exFixed1 = ExampleFix.fixExample(self.badVarTypeData[12])
        self.assert_(ex1Str.replace("'","")==str(exFixed1).replace("'",""),
 
        fixLog.clear()
        ExampleFix = dataUtilities.ExFix(self.testData.domain,fixLog)
        for ex in self.badVarTypeSOMEData:
                self.assert_(ExampleFix.fixExample(ex)!=None)
        ex3Str=str(ex3)
        self.assertEqual(ex3Str[1],"?")
        ExampleFix = dataUtilities.ExFix(self.testData.domain,None,True)
        exFixed3 = ExampleFix.fixExample(ex3)
        self.assert_(ex3Str.replace("'","")==str(exFixed3).replace("'",""),
        #print "\nTesting incompatible examples! The vars will be tet to '?'" 
        fixLog.clear()
        ExampleFix = dataUtilities.ExFix(self.testData.domain,fixLog,True)
        self.assert_(ExampleFix.fixExample(self.badVarNameData[0])==None,
                        "VarName: This example is not compatible, It should't be able to convert it!")
        #Check the conversion if different varTypes
        origExOK = str(exOK)
        ExampleFix = dataUtilities.ExFix(domain,None,True)
        newExOK = ExampleFix.fixExample(exOK)
        self.assert_(newExOK.domain==domain,"Domain was not converted properly")