#NEWLINE# def __init__( self , interface , numPlannedRuns , numParams , minBoundary , maxBoundary , minCost , maxCost , trainingNum , trainingParams , trainingCosts , trainingUncers , trainingBads , initParams , configDict , thetaSearchFac = None , paramsSearchFac = None , runsInCycle = None , leashInit = None , leashMax = None , leashMin = None ) : #NEWLINE# #INDENT# super ( AutoLearner , self ) . __init__ ( interface , numPlannedRuns , numParams , minBoundary , maxBoundary , minCost , maxCost , trainingNum , trainingParams , trainingCosts , trainingUncers , trainingBads , initParams , configDict , thetaSearchFac , paramsSearchFac ) #NEWLINE# if ( runsInCycle is None ) : #NEWLINE# #INDENT# self . runsInCycle = int ( ( self . numParams + 1 ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . runsInCycle = int ( runsInCycle ) #NEWLINE# #UNINDENT# if ( trainingCosts < 2 ) : #NEWLINE# #INDENT# sys . exit ( 'Learning cycle for simple learner must be greater than 1.' ) #NEWLINE# #UNINDENT# if ( leashInit is None ) : #NEWLINE# #INDENT# self . currLeashSize = ( 1.0 / 8.0 ) #NEWLINE# #UNINDENT# self . currBiasBase = 1.0