def _ts_expand(self, X, y = None):
// if its a record array we need to expand "ts" and "h"
Nt = self._number_of_segments_per_series(X["ts"])
ye = []
if y is not None:
ye = self._expand_series_variable_to_segments(y, Nt)
After Change
def _ts_expand(self, X, y = None):
// if its a record array we need to expand "ts" and "h"
Xt, Xs = get_ts_data_parts(X)
Nt = self._number_of_segments_per_series(Xt)
Xt_new = np.concatenate(Xt)
ye = []