deepof.utils.split_with_breakpoints

deepof.utils.split_with_breakpoints(a: ndarray, breakpoints: list) ndarray

Split a numpy.ndarray at the given breakpoints.

Parameters:
  • a (np.ndarray) – N (instances) * m (features) shape

  • breakpoints (list) – list of breakpoints obtained with ruptures

Returns:

padded array of shape N (instances) * l (maximum break length) * m (features)

Return type:

split_a (np.ndarray)