#NEWLINE# def activeInitialFeatures( self , s ) : #NEWLINE# #INDENT# '\n        Returns the index of active initial features based on bins in each\n        dimension.\n        :param s: The state\n\n        :return: The active initial features of this representation\n            (before expansion)\n        ' #NEWLINE# bs = self . binState ( s ) #NEWLINE# shifts = np . hstack ( ( 0 , np . cumsum ( self . bins_per_dim ) [ : ( - 1 ) ] ) ) #NEWLINE# index = ( bs + shifts ) #NEWLINE# return index . astype ( 'uint32' )