[FIX]: Make timeseries output 2D for RSSETSMarker #215
2 changed files with 3 additions and 0 deletions
1
docs/changes/newsfragments/215.bugfix
Normal file
1
docs/changes/newsfragments/215.bugfix
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Fix the output of :class:`junifer.markers.RSSETSMarker` to be 2D by `Synchon Mandal`_
|
||||||
|
|
@ -133,6 +133,8 @@ class RSSETSMarker(BaseMarker):
|
||||||
edge_ts, _ = _ets(out["data"])
|
edge_ts, _ = _ets(out["data"])
|
||||||
# Compute the RSS
|
# Compute the RSS
|
||||||
out["data"] = np.sum(edge_ts**2, 1) ** 0.5
|
out["data"] = np.sum(edge_ts**2, 1) ** 0.5
|
||||||
|
# Make it 2D
|
||||||
|
out["data"] = out["data"][:, np.newaxis]
|
||||||
# Set correct column label
|
# Set correct column label
|
||||||
out["col_names"] = ["root_sum_of_squares_ets"]
|
out["col_names"] = ["root_sum_of_squares_ets"]
|
||||||
return out
|
return out
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue