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

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

src/a/z/AZOrange-HEAD/orange/OrangeWidgets/Classify/OWParamOpt.py   AZOrange(Download)
                    RangePars.append("1")  #the default step size
                try:
                    if distType == 1 and miscUtilities.power2Range(eval(RangePars[0]),eval(RangePars[1]),eval(RangePars[2])) != eval(parametersOrig[param][2]):
                        return [[],3]
                    elif distType == 2 and miscUtilities.Range(eval(RangePars[0]),eval(RangePars[1]),eval(RangePars[2])) != eval(parametersOrig[param][2]):

src/a/z/AZOrange-HEAD/tests/source/AZorngParamOptMPITest.py   AZOrange(Download)
 
        # Change the range
        pars.setParameter("C","range",miscUtilities.power2Range(-5,2,1))
        pars.setParameter("priors","default",{"POS":50, "NEG":4})  # These priors are to ensure the default point will be the best!
        pars.setParameter("gamma","default",0.001)  # This is a bad value to ensure the default point will be the best!
 
        # Change the range
        pars.setParameter("C","range",miscUtilities.power2Range(-5,2,1))
 
        trainFile=self.discTrainDataPath
 
        # Change the range
        pars.setParameter("C","range",miscUtilities.power2Range(-5,2,1))
 
        trainFile=self.discTrainDataPath
 
        # Change the range
        pars.setParameter("C","range",miscUtilities.power2Range(-5,2,1))
 
        trainFile=self.discTrainDataPath

src/a/z/AZOrange-HEAD/tests/source/AZorngParamOptTest.py   AZOrange(Download)
 
        # Change the range
        pars.setParameter("C","range",miscUtilities.power2Range(-5,2,1))
        pars.setParameter("priors","default",{"POS":2, "NEG":4})