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

Improving performance of dynamic characterization #57

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

TimoDiepers
Copy link
Member

The current implementation of the dynamic characterization does not scale very well. The main issue is the repeated creation of pd.Series at several points when characterizing of each row of the inventory df.

Instead of handling pd.Series and DataFrames all the time, I switched it to namedtuple. In an example case, this reduced computing time from ~30s to <1s.

I've also noticed that the test for dynamic characterization seem to be incomplete, but some preparation has been done. I can try do add this, so I'll keep this PR as a draft for now.

@TimoDiepers TimoDiepers marked this pull request as ready for review July 19, 2024 07:29
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