#NEWLINE# def get_labels_park( self , windpark , feature_window , horizon , padding = 0 ) : #NEWLINE# #INDENT# 'Get labels for a given windpark, consisting of the values of the\n        corrected score for all turbines in the park dependend on feature window,\n        horizon and optionally a certain padding. The labels are the sums of\n        the corrected score of all turbines in the park.\n\n        Parameters\n        ----------\n        windpark : Windpark\n                   Features of the given windpark.\n        feature_window : int\n                         The amount of time steps of the feature window.\n        horizon: int\n                 The amount of time steps of the horizon.\n\n        Returns\n        -------\n        numpy.array\n            Label array for regression.\n        ' #NEWLINE# turbines = windpark . get_turbines ( ) #NEWLINE# timesteps = ( len ( turbines [ 0 ] . measurements ) - ( ( ( feature_window + horizon ) + padding ) - 1 ) ) #NEWLINE# sum_turbines = zeros ( timesteps , dtype = float32 ) #NEWLINE# for turbine in turbines : #NEWLINE# #INDENT# for t in range ( padding , timesteps ) : #NEWLINE# #INDENT# sum_turbines [ t ] += turbine . measurements [ cs ] [ ( ( ( t + feature_window ) + horizon ) - 1 ) ] #NEWLINE# #UNINDENT# #UNINDENT# return sum_turbines