parameters: (X)
return_statement: return X
docstring: Normalizes and transposes data for NeoML
docstring_summary: Normalizes and transposes data for NeoML
docstring_tokens: Normalizes and transposes data for NeoML
function: def transform_data(X):
      """Normalizes and transposes data for NeoML"""
      X = X.astype(np.float32)
      X = (X - 127.5) / 255.
      X = X.reshape((X.shape[0], 3, 32, 32))
      X = X.transpose((0, 2, 3, 1))  # NeoML uses channel-last pack
      return X
function_tokens: def transform_data ( X ) : X = X . astype ( np . float32 ) X = ( X - 127.5 ) / 255. X = X . reshape ( ( X . shape [ 0 ] , 3 , 32 , 32 ) ) X = X . transpose ( ( 0 , 2 , 3 , 1 ) ) # NeoML uses channel-last pack return X