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

modify double np.hstack to single np.ravel #402

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

February24-Lee
Copy link
Contributor

# before
np.hstack(np.hstack(x))

# after
np.stack(x)

When I tested the time with 880,591 x 1 series data,
the running time improved from almost 2.5 seconds to within 1.0 second.

I thought the usage of double np.hstack was for StateType.sequence_numerical. In this case, np.stack will be fine. But if there is something I missed, please let me know.

@February24-Lee
Copy link
Contributor Author

oh, there were something I missed. I will check and re-try to PR

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

Successfully merging this pull request may close these issues.

1 participant