[FIX]: Make timeseries output 2D for RSSETSMarker #215

Merged
synchon merged 2 commits from fix/rss-ets-output into main 2023-03-30 12:50:49 +00:00
2 changed files with 3 additions and 0 deletions

View file

@ -0,0 +1 @@
Fix the output of :class:`junifer.markers.RSSETSMarker` to be 2D by `Synchon Mandal`_

View file

@ -133,6 +133,8 @@ class RSSETSMarker(BaseMarker):
edge_ts, _ = _ets(out["data"])
# Compute the RSS
out["data"] = np.sum(edge_ts**2, 1) ** 0.5
# Make it 2D
out["data"] = out["data"][:, np.newaxis]
# Set correct column label
out["col_names"] = ["root_sum_of_squares_ets"]
return out