Skip to content

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

Copy link
Member

@akihironitta akihironitta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improving performance in the codebase is always welcome! Let us know if you need any help :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants