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/tests/source/AZorngRFTest.py   AZOrange(Download)
        Acc2 = evalUtilities.getClassificationAccuracy(self.noBadDataTest[3:],rf)
        Acc1 = evalUtilities.getClassificationAccuracy(self.badVarTypeData[3:],rf)
        self.assertRoundedToExpectedArray(Acc1, expectedAccValues, 9)
        self.assertRoundedToExpectedArray(Acc2, expectedAccValues, 9)
        self.assert_(('Fixed Types of variables' in rf.examplesFixedLog) and (rf.examplesFixedLog['Fixed Types of variables']==27), "No report of fixing in classifier class")
        Acc1 = evalUtilities.getClassificationAccuracy(self.noBadDataTest,rf)
        Acc2 = evalUtilities.getClassificationAccuracy(self.badVarOrderData,rf)
        self.assertRoundedToExpectedArray(Acc1, expectedAccValues, 9)
        self.assertRoundedToExpectedArray(Acc2, expectedAccValues, 9)
        #we do not report order fix anymore!        
        #using from index 3 o the end of data, because we know that from 0 to 2 the examples are not compatible
        Acc1 = evalUtilities.getClassificationAccuracy(self.noBadDataTest,rf)
        self.assertRoundedToExpectedArray(Acc1, expectedAccValues, 9)
        self.assertEqual(rf(self.badVarTypeData[0]),"NEG","This example could still be predicted")
        self.assertEqual(rf(self.badVarTypeData[1]),"NEG","This example could still be predicted")

src/a/z/AZOrange-HEAD/tests/source/AZorngParamOptTest.py   AZOrange(Download)
                          ]
        acctualValue = sum(opt.GSRes["results"])
        self.assertRoundedToExpectedArray(acctualValue, expectedValues, 2)
 
        #Check if the best result was not the one with numThreads different of 1 since that way we can get 

src/a/z/AZOrange-HEAD/tests/source/AZorngGetAccWOptParam.py   AZOrange(Download)
            acctual = None
        self.assertNotEqual(None, acctual, "Could not find either 'R2' nor 'Q2' in the result.")            
        self.assertRoundedToExpectedArray(acctual, expectedRes, 5)