def __init__( self, steps='1', alpha=0.001, clVerbosity=0, implementation=None, ): # Convert the steps designation to a list self.steps = steps self.stepsList = eval("[%s]" % (steps)) self.alpha = alpha self.verbosity = clVerbosity # Initialize internal structures self._claClassifier = CLAClassifierFactory.create( steps=self.stepsList, alpha=self.alpha, verbosity=self.verbosity, implementation=implementation, ) self.learningMode = True self.inferenceMode = False self._initEphemerals()
def __init__(self, steps='1', alpha=0.001, clVerbosity=0, implementation=None, maxCategoryCount=None): # Convert the steps designation to a list self.steps = steps self.stepsList = eval("[%s]" % (steps)) self.alpha = alpha self.verbosity = clVerbosity # Initialize internal structures self._claClassifier = CLAClassifierFactory.create( steps=self.stepsList, alpha=self.alpha, verbosity=self.verbosity, implementation=implementation, ) self.learningMode = True self.inferenceMode = False self.maxCategoryCount = maxCategoryCount self.recordNum = 0 self._initEphemerals() # Flag to know if the compute() function is ever called. This is to # prevent backward compatibilities issues with the customCompute() method # being called at the same time as the compute() method. Only compute() # should be called via network.run(). This flag will be removed once we # get to cleaning up the clamodel.py file. self._computeFlag = False
def __init__(self, steps='1', alpha=0.001, clVerbosity=0, implementation=None, maxCategoryCount=None ): # Convert the steps designation to a list self.steps = steps self.stepsList = eval("[%s]" % (steps)) self.alpha = alpha self.verbosity = clVerbosity # Initialize internal structures self._claClassifier = CLAClassifierFactory.create( steps=self.stepsList, alpha=self.alpha, verbosity=self.verbosity, implementation=implementation, ) self.learningMode = True self.inferenceMode = False self.maxCategoryCount = maxCategoryCount self.recordNum = 0 self._initEphemerals() # Flag to know if the compute() function is ever called. This is to # prevent backward compatibilities issues with the customCompute() method # being called at the same time as the compute() method. Only compute() # should be called via network.run(). This flag will be removed once we # get to cleaning up the clamodel.py file. self._computeFlag = False
def __init__(self, steps='1', alpha=0.001, clVerbosity=0, implementation=None, ): # Convert the steps designation to a list self.steps = steps self.stepsList = eval("[%s]" % (steps)) self.alpha = alpha self.verbosity = clVerbosity # Initialize internal structures self._claClassifier = CLAClassifierFactory.create( steps=self.stepsList, alpha=self.alpha, verbosity=self.verbosity, implementation=implementation, ) self.learningMode = True self.inferenceMode = False self._initEphemerals()