#NEWLINE# def _score( self , periods ) : #NEWLINE# #INDENT# return np . asarray ( [ ( 1 - ( ssm . SuperSmoother ( period = p ) . fit ( self . t , self . y , self . dy ) . cv_error ( skip_endpoints = False ) / self . baseline_err ) ) for p in periods ] )