#NEWLINE# def get_labels_turbine( self , turbine , feature_window , horizon , padding = 0 ) : #NEWLINE# #INDENT# 'Get labels for a given turbine, consisting of the values of the\n        corrected score for one turbine dependend on feature window, horizon and\n        optionally a certain padding.\n\n        Parameters\n        ----------\n        turbine : Turbine\n                   Features of the given turbine.\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# timesteps = ( len ( turbine . measurements ) - ( ( ( feature_window + horizon ) + padding ) - 1 ) ) #NEWLINE# labels = zeros ( timesteps , dtype = float32 ) #NEWLINE# for t in range ( padding , timesteps ) : #NEWLINE# #INDENT# offset = ( ( ( t + feature_window ) + horizon ) - 1 ) #NEWLINE# labels [ t ] = turbine . measurements [ cs ] [ offset ] #NEWLINE# #UNINDENT# return labels