Skip to content

Commit

Permalink
fix the trainer code for flatten vector
Browse files Browse the repository at this point in the history
Signed-off-by: ssrigiri1 <[email protected]>
  • Loading branch information
ssrigiri1 committed Feb 7, 2024
1 parent 4368d34 commit ec2939d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions numalogic/transforms/_stateless.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,8 @@ def transform(self, X: npt.NDArray[float], seq_length=20) -> npt.NDArray[float]:
result.extend(X[i : i + n, j])

# Convert the result to a numpy array with shape (seq_length, 1)
result = np.array(result).reshape(-1, 1)
return np.array(result).reshape(-1, 1)

return result

def inverse_transform(self, X: npt.NDArray[float]) -> npt.NDArray[float]:
# Todo: Change this aswell. Fix the inverse flatten aswell
Expand Down

0 comments on commit ec2939d

Please sign in to comment.