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

Add validation to als benchmark #435

Merged
merged 2 commits into from
Mar 8, 2024

Conversation

lovisek
Copy link

@lovisek lovisek commented Feb 10, 2024

The trained ALS model can be represented as a 2-dimensional matrix of features and the validation checks the shape and the content of the matrix. Regarding the content, it compares the sum and sum of squares of all matrix values with expected values.

The validation does not change the code that is being measured and should not really impact benchmark performance. As a quick check, I calculated an average duration from the last 5 repetitions of a single run of the benchmark before and after validation:

The variant with validation appears approx. 4% slower, but this is just from a single run. Given that the benchmark code did not change, I don't think this indicates an actual change, but if necessary, I can do the comparison for multiple runs.

@lbulej lbulej marked this pull request as ready for review February 11, 2024 11:37
Copy link
Collaborator

@farquet farquet left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @lovisek for the contribution.

@lbulej lbulej merged commit dc92b1b into renaissance-benchmarks:master Mar 8, 2024
13 checks passed
@lovisek lovisek deleted the topic/als-validation branch April 11, 2024 18:56
@lovisek lovisek restored the topic/als-validation branch April 25, 2024 19:35
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.

None yet

3 participants