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

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

src/a/z/AZOrange-HEAD/azorange/AZLearnersParamsConfig.py   AZOrange(Download)
minSample   Integer from 2 to 50 with increments of 2\nIf N_EX <= 50: Integer from 2 to N_EX/5 with increments of 2
"""
RFLearner = {'maxDepth':["types.StringType", "values", "[int(round(x)) for x in miscUtilities.Range(1.0/50.0*N_ATTR,4.0/5.0*N_ATTR,1.0/50.0*N_ATTR)]",[],AZOrangeConfig.RFDEFAULTDICT["maxDepth"],False,True,"Integer from (1/50)N_ATTR to (4/5)N_ATTR with increments of (1/50)N_ATTR"],\
             'minSample':["types.StringType", "values", "(1.0/5.0)*N_EX<3 and [2] or miscUtilities.Range(2,N_EX >= 50 and 50 or N_EX/5.0,2)",[],AZOrangeConfig.RFDEFAULTDICT["minSample"],False,True,"Integer from 2 to 50 with increments of 2\nIf N_EX <= 50: Integer from 2 to N_EX/5 with increments of 2"],\
             'nActVars':["types.StringType", "values", "[ int(round(x)) for x in miscUtilities.Range(1.0/4.0*sqrt(N_ATTR),(1/2.0)*(N_ATTR),1.0/4.0*sqrt(N_ATTR))]",[],AZOrangeConfig.RFDEFAULTDICT["nActVars"],True,True,"Integer from (1/4)*sqrt(N_ATTR) to 1/2*(N_ATTR) with increments of (1/4)*sqrt(N_ATTR)"],\
             'nTrees':["types.StringType", "values", "miscUtilities.Range(10,1000,10)",[],AZOrangeConfig.RFDEFAULTDICT["nTrees"],False,True,"Integer from 10 to 1000 with increments of 10"],\
             'forestAcc':["types.StringType", "interval", "[0.001 , 0.9]",[],AZOrangeConfig.RFDEFAULTDICT["forestAcc"],False,True,"Interval from 0.001 to 0.9"],\

src/a/z/AZOrange-HEAD/orange/OrangeWidgets/Classify/OWCvRF.py   AZOrange(Download)
 
        # Set default values of the random forest parameters
        self.maxDepth = AZOC.RFDEFAULTDICT["maxDepth"]
        self.minSample = AZOC.RFDEFAULTDICT["minSample"]
        self.useSurrogates = AZOC.RFDEFAULTDICT["useSurrogates"]
        self.getVarVariance = AZOC.RFDEFAULTDICT["getVarVariance"]
        self.nActVars = AZOC.RFDEFAULTDICT["nActVars"]

src/a/z/AZOrange-HEAD/azorange/trainingMethods/AZorngRF.py   AZOrange(Download)
        # useBuiltInMissValHandling
        if not self.__dict__.has_key("useBuiltInMissValHandling"):
            self.__dict__["useBuiltInMissValHandling"] = AZOC.RFDEFAULTDICT["useBuiltInMissValHandling"]
 
        # NumThreads: Number of threads to be used by opencv. 
        # 0 means it will use as much threads as number of cores. Default 1.
        if not self.__dict__.has_key("NumThreads"):
            self.__dict__["NumThreads"] = AZOC.RFDEFAULTDICT["NumThreads"]
        # maxDepth
        if not self.__dict__.has_key("maxDepth"): 
            self.__dict__["maxDepth"] = AZOC.RFDEFAULTDICT["maxDepth"]
 
        # minSample
        if not self.__dict__.has_key("minSample"): 
            self.__dict__["minSample"] = AZOC.RFDEFAULTDICT["minSample"]
        # useSurrogates
        if not self.__dict__.has_key("useSurrogates"): 
            self.__dict__["useSurrogates"] = AZOC.RFDEFAULTDICT["useSurrogates"]
 
        # getVarVariance