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 a lightning demo to the README.md #98

Merged
merged 2 commits into from
Mar 7, 2024
Merged

Add a lightning demo to the README.md #98

merged 2 commits into from
Mar 7, 2024

Conversation

nicholasjng
Copy link
Collaborator

Our package is structured well enough that this example is small, so it does not take lots of processing new information to understand.


For reviewers:

  • Does this appropriately convey what we're doing?
  • After reading this, could you write the code to add and run a sum benchmark without changing the runner = nnbench.BenchmarkRunner() and subsequent lines?

@nicholasjng
Copy link
Collaborator Author

BTW this needs a change in the benchmark reporter's custom formatters, which is contained in #92.

Copy link
Collaborator

@maxmynter maxmynter left a comment

Choose a reason for hiding this comment

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

From this example I understand how to set up a benchmark. I don't know if I would necessarily know why I would want to use it.

Should we add a sentence at the end along the lines of:

"To move beyond toy examples, you can pass your model object as a parameter to benchmarks which calculate the metrics you are interested in. For more advanced usages [...]"

@nicholasjng
Copy link
Collaborator Author

Good idea - however, the setup with an actual model will likely make the example 4-5x larger, which is not what we want for a lightning demo.

I agree with the note for real-world uses, though. Would you be happy with a link to a doc where we use models? (Suggestions welcome)

Our package is so well-structured that this example is small, so it does
not take lots of processing new information to understand.
The presented lightning demo is very lean and concise, but not really
illustrative of how the project should be used.

For further reading, we add links to the quickstart, which showcases a
scikit-learn model, and to the examples, which give a variety of examples
for different applications.

Also adds the new(ish) examples guides to the index page as links with
a more concise content summary each.
@nicholasjng
Copy link
Collaborator Author

I added links to the quickstart and the examples, and added anchor links on the examples indexpage in 0ac0592.

@nicholasjng nicholasjng requested a review from maxmynter March 7, 2024 12:36
Copy link
Collaborator

@maxmynter maxmynter left a comment

Choose a reason for hiding this comment

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

Nice one :)

@nicholasjng nicholasjng merged commit 18c3299 into main Mar 7, 2024
5 checks passed
@nicholasjng nicholasjng deleted the lightning-demo branch March 7, 2024 13:07
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.

2 participants