#NEWLINE# @ classmethod #NEWLINE# def oneOfManyToClasses( cls , data ) : #NEWLINE# #INDENT# ' Converts data in one-of-many format to class indices format and\n            and returns the result.\n\n            :arg data: array of vectors, that are in the one-of-many format.\n                         Each vector will be converted to the index of the\n                         component with the maximum value.\n        ' #NEWLINE# return apply_along_axis ( argmax , 1 , cls )