#NEWLINE# def startLearningAt( self , startingBounds , startingParamValues ) : #NEWLINE# #INDENT# self . bounds = startingBounds #NEWLINE# [ shape , paramValues ] = self . shapeModeler . makeRandomShapeFromriangular ( self . params , self . paramsToVary , self . bounds , startingParamValues ) #NEWLINE# self . params = paramValues #NEWLINE# self . bestParamValue = paramValues [ ( self . paramsToVary [ 0 ] - 1 ) ] #NEWLINE# if self . doGroupwiseComparison : #NEWLINE# #INDENT# self . params_sorted = [ self . bounds [ ( 0 , 0 ) ] , self . bounds [ ( 0 , 1 ) ] ] #NEWLINE# bisect . insort ( self . params_sorted , self . bestParamValue ) #NEWLINE# self . shapeToParamsMapping = [ self . params ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . newParamValue = self . bestParamValue #NEWLINE# #UNINDENT# return ( shape , self . bestParamValue )