code: def means_abs_diff(X):
      ''' mean absolute temporal derivative '''
      return np.mean(np.abs(np.diff(X, axis=1)), axis=1f means_abs_diff(X):
      ''' mean absolute temporal derivative '''
      return np.mean(np.abs(np.diff(X, axis=1)), axis=1)
docs: mean absolute temporal derivative