Skip to content

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

Merged
merged 5 commits into from
Dec 21, 2018
Merged

Added RffBenchmark #1855

merged 5 commits into from
Dec 21, 2018

Conversation

Anipik
Copy link
Contributor

@Anipik Anipik commented Dec 10, 2018

Adding an end to end to Benchmark for rffTransform and cpumathutils functions like matmul and matmiltran

@Anipik Anipik requested a review from wschin December 14, 2018 00:53
@Anipik
Copy link
Contributor Author

Anipik commented Dec 14, 2018

@justinormont @Ivanidzo4ka can you review this one ?

Copy link
Contributor

@Ivanidzo4ka Ivanidzo4ka left a comment

Choose a reason for hiding this comment

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

:shipit:


var pipeline = mlContext.Transforms.Projection.CreateRandomFourierFeatures("Features", "FeaturesRFF")
.Append(mlContext.Transforms.Concatenate("Features", "FeaturesRFF"))
.AppendCacheCheckpoint(mlContext)
Copy link
Contributor

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

Copy link
Contributor Author

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.

Copy link
Contributor Author

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 ?

Copy link
Contributor

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?

Copy link
Contributor

@justinormont justinormont left a comment

Choose a reason for hiding this comment

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

LGTM

@Anipik Anipik merged commit 033d27d into dotnet:master Dec 21, 2018
@Anipik Anipik deleted the rffBenchmark branch December 21, 2018 00:55
@ghost ghost locked as resolved and limited conversation to collaborators Mar 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants