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

Identified slow parts of the code #74

Open
abelsiqueira opened this issue Apr 17, 2023 · 0 comments
Open

Identified slow parts of the code #74

abelsiqueira opened this issue Apr 17, 2023 · 0 comments

Comments

@abelsiqueira
Copy link
Contributor

Some identified slow parts of the code:

  • radar_dataset.py:71 - Super constructor. I guess there is nothing we can do? Maybe it is just an outlier of the file that I am testing.
  • radar_dataset.py:108 - Comparison of a sparse matrix with a number: distance_matrix > 0. This distance_matrix has dimensions (number of rows in all data)x(number of not NA rows), so it has to be sparse (any distance over max_distance is 0).
  • radar_dataset.py:115 - indexing data.loc[indexes, xyz] in the creation of local_tree.
  • radar_dataset.py:122 - indexing in data.loc[indexes, self.features].fillna(0).
  • radar_dataset.py:123 - any on assertion - which shouldn't be there any more

Other slow operations are import pandas as np, read_csv.
Not so slow operations: "convert (rows,cols) to create graph", save_graphs,

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