You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request renames SyntheticDataGenerator to BadmintonDataGenerator, updates documentation and tests to reflect this change, and refines TensorFlow metric updates with explicit type casting. It also updates pre-commit hook versions and modifies notebook examples to include user parameters and updated model interaction patterns. Feedback highlights a broken documentation link in mkdocs.yaml and performance inefficiencies in BadmintonDataGenerator.generate_trip and notebook likelihood computations.
I am having trouble creating individual review comments. Click here to see my feedback.
mkdocs.yaml (105)
The documentation path for the Badminton Dataset is incorrect. The file added in this pull request is named references_badminton_dataset.md, but the path in mkdocs.yaml is badminton_dataset.md. This mismatch will break the documentation link. To follow the project's naming convention (e.g., references_bakery.md), the path should include the references_ prefix.
Converting self.user_profile.keys() to a list on every call to generate_trip is inefficient, especially for large datasets or simulations. It is recommended to cache the list of user IDs in the __init__ method and reuse it here. Additionally, list(self.user_profile) is more idiomatic than list(self.user_profile.keys()) in Python.
This loop is inefficient because it repeatedly creates several arrays (np.array([0]), np.zeros(...)) and performs redundant type conversions (np.array(available_items)) for every context in the batch. These should be initialized once outside the list comprehension to improve performance.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.