-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Added RffBenchmark #1855
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
Added RffBenchmark #1855
Conversation
@justinormont @Ivanidzo4ka can you review this one ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
var pipeline = mlContext.Transforms.Projection.CreateRandomFourierFeatures("Features", "FeaturesRFF") | ||
.Append(mlContext.Transforms.Concatenate("Features", "FeaturesRFF")) | ||
.AppendCacheCheckpoint(mlContext) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AppendCacheCheckpoint [](start = 13, length = 21)
Did you try to play with swapping lines 45 and 46? I believe this may be how our auto-caching used to work.
Also, this might expose the need to specify 'prefetchColumns' to avoid overly lazy caching. See the Cache method in DataOperations.cs line 35
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you try to play with swapping lines 45 and 46? I believe this may be how our auto-caching used to work.
I tried this but still getting the same result.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, this might expose the need to specify 'prefetchColumns' to avoid overly lazy caching. See the Cache method in DataOperations.cs line 35
how can we use this in this benchmark ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Zruty0: Do we have documentation on how/where/when to do caching?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Adding an end to end to Benchmark for rffTransform and cpumathutils functions like matmul and matmiltran