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

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

src/a/z/AZOrange-HEAD/orange/OrangeWidgets/Classify/OWParamOpt.py   AZOrange(Download)
 
        if self.verbose == 0:
            miscUtilities.removeDir(scratchdir)
        else:
            self.setErrors("The directory " + str(scratchdir) + " was not deleted because verbose flag is ON","DEBUG")

src/a/z/AZOrange-HEAD/azorange/AZutilities/paramOptUtilities.py   AZOrange(Download)
                    initialX = self.GSRes["varValues"][bestIdx]
                    initialF = self.GSRes["results"][bestIdx]
                    miscUtilities.removeDir(GSPath)
                    #print "GSPath ", GSPath 
 

src/a/z/AZOrange-HEAD/azorange/AZutilities/getUnbiasedAccuracy.py   AZOrange(Download)
                                    optAcc[ml].append(R2)
 
                                miscUtilities.removeDir(runPath) 
                #Train the model
                if SpecialModel is not None:

src/a/z/AZOrange-HEAD/azorange/AZutilities/sgeUtilities.py   AZOrange(Download)
 
        os.chdir(cwd)
        miscUtilities.removeDir(runPath)
        return resList
 

src/a/z/AZOrange-HEAD/azorange/AZutilities/competitiveWorkflow.py   AZOrange(Download)
                    R2 = evalUtilities.R2(res)[0]  
                    MLMethods[ML]["optAcc"] = R2
                miscUtilities.removeDir(runPath)
        #Train the model
        if len(learners) == 1:

src/a/z/AZOrange-HEAD/azorange/trainingMethods/AZorngPLS.py   AZOrange(Download)
        # Remove the scratch file
        if self.verbose == 0:
	    miscUtilities.removeDir(scratchdir)
	else:
	    print "The directory " + scratchdir + " was not deleted because DEBUG flag is ON"

src/a/z/AZOrange-HEAD/tests/source/AZorngParamOptTest.py   AZOrange(Download)
        self.assertEqual(int(tunedPars[1]["NumThreads"]),1)
 
        miscUtilities.removeDir(runPath)
 
 
        self.assertEqual(round(CA,2),round(0.56999999999999995,2)) #Ver 0.3
        self.assert_(len(dataUtilities.DataTable(os.path.join(runPath,"optimizationLog.txt")))>=5) # Must be > 2
        miscUtilities.removeDir(runPath)
 
    def test_PLS_Classification(self):
        self.assert_(round(CA,2) in [round(ca,2) for ca in expectedCA]) # Ver 0.3
 
        miscUtilities.removeDir(runPath)
 
    def test_PLS_Regression(self):
        self.assertEqual(round(RMSE,2),round(2.8900000000000001,2)) #Ver 0.3
 
        miscUtilities.removeDir(runPath)
 
    def test_RFClassification(self):
        self.assertEqual(int(tunedPars[1]["NumThreads"]),1)
 
        miscUtilities.removeDir(runPath)
 
 

src/a/z/AZOrange-HEAD/tests/source/AZorngConsensus.py   AZOrange(Download)
        self.assertEqual(predictions,predictionsL)
 
        miscUtilities.removeDir(scratchdir) 
 
 
        self.assertEqual(Loaded.NTrainEx, len(self.irisData))
 
        miscUtilities.removeDir(scratchdir)
 
 
        self.assertEqual(Loaded.NTrainEx, len(self.DataReg))
 
        miscUtilities.removeDir(scratchdir)
 
 
        self.assertEqual(loaded.NTrainEx, len(self.irisData))
 
        miscUtilities.removeDir(scratchdir)
 
    def test_SaveLoadCustomRegressionExpression(self):
        self.assertEqual(loaded.NTrainEx, len(self.DataReg))
 
        miscUtilities.removeDir(scratchdir)
 
 

src/a/z/AZOrange-HEAD/tests/source/AZorngParamOptMPITest.py   AZOrange(Download)
        self.assert_(len(dataUtilities.DataTable(os.path.join(runPath,"optimizationLog.txt")))>=3) #  Must be > 2
 
        miscUtilities.removeDir(runPath)
 
 
        self.assert_(len(dataUtilities.DataTable(os.path.join(runPath,"optimizationLog.txt")))>=5) # Must be > 2
 
        miscUtilities.removeDir(runPath)
 
 
        self.assertEqual(priors[self.discTest.domain.classVar.values.index("POS")],2.0*float(tunedPars[1]["C"]))
        self.assertEqual(priors[self.discTest.domain.classVar.values.index("NEG")],4.0*float(tunedPars[1]["C"]))
        miscUtilities.removeDir(runPath)
 
 
        self.assert_(len(dataUtilities.DataTable(os.path.join(runPath,"optimizationLog.txt")))>=12) # (orig: 14)  Must be > 2
 
        miscUtilities.removeDir(runPath)
 
 
        self.assert_(len(dataUtilities.DataTable(os.path.join(runPath,"optimizationLog.txt")))>=12) # (orig 14) Must be > 2
        #print runPath
        miscUtilities.removeDir(runPath)
 
 

src/a/z/AZOrange-HEAD/tests/source/AZorngRFTest.py   AZOrange(Download)
            RF.write(modelPath)
            LoadedRF = AZorngRF.RFread(modelPath)
            miscUtilities.removeDir(scratchdir)
 
            for ex in data:

  1 | 2  Next