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

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

src/a/z/AZOrange-HEAD/azorange/AZutilities/getUnbiasedAccuracy.py   AZOrange(Download)
                    if trainData.domain.classVar.varType == orange.VarTypes.Discrete:
                        res = evalUtilities.crossValidation([MLmethods[ml]], trainData, folds=5, stratified=orange.MakeRandomIndices.StratifiedIfPossible, random_generator = random.randint(0, 100))
                        CA = evalUtilities.CA(res)[0]
                        optAcc[ml].append(CA)
                    else:

src/a/z/AZOrange-HEAD/tests/source/AZorngCvSVMTest.py   AZOrange(Download)
 
        Res = orngTest.crossValidation([svmLearner], self.inDataD, folds=5, strat=orange.MakeRandomIndices.StratifiedIfPossible)
        CA = evalUtilities.CA(Res)[0]
        self.assertEqual(round(CA,2),round(0.96666666666666667,2)) # Before in AZSVM: 0.95999999999999996
 
 
        Res = orngTest.crossValidation([svmLearner], self.inDataD, folds=5, strat=orange.MakeRandomIndices.StratifiedIfPossible)
        CA = evalUtilities.CA(Res)[0]
        self.assertEqual(round(CA,2),round(0.940000000,2))  # orange1.0: 0.93333333333333335])
 
        svmLearner.priors = None
        Res = orngTest.crossValidation([svmLearner], self.inDataD, folds=5, strat=orange.MakeRandomIndices.StratifiedIfPossible)
        CA = evalUtilities.CA(Res)[0]