Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: "mismatch between number of rows in data and number of indices" with (499, 2) shaped streams #138

Open
ApolloMacadamia opened this issue Jan 2, 2025 · 0 comments

Comments

@ApolloMacadamia
Copy link

Summary

I'm encountering a ValueError when calling esig.stream2sig() on a NumPy array of shape (499, 2).
The error message is:

ValueError: Error occurred in /project/roughpy/src/streams/lie_increment_stream.cpp at line 183 (pybind11::object lie_increment_stream_from_increments(...)): mismatch between number of rows in data and number of indices

However, (498, 2) or (501, 2) works fine.

Steps to Reproduce

import numpy as np
import esig

# shape = (499, 2)
test_stream = np.random.uniform(low=-1.0, high=1.0, size=(499, 2))
depth = 2

sig_test = esig.stream2sig(test_stream, depth)
print(sig_test)


## Environment

- **Operating System**: Google Colab (Linux/Ubuntu-based)
- **Python**: 3.10.12
- **esig**: 1.0.0
- **iisignature**: 0.24
- **numpy**: 2.2.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant