question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature: add community metrics

See original GitHub issue

We would like a way for community members to easily add custom or new metrics. These custom metrics could be hosted on the hub either in a dedicated repository type (like datasets or models) or on Spaces.

Spaces comes with a few advantages, especially in short term:

  1. No dedicated repo type needed
  2. Infrastructure already exists
  3. We can easily setup a demo without needing a custom widget (e.g. with Gradio)

@osanseviero made a PoC here: https://huggingface.co/spaces/osanseviero/accuracy_metric

A few things that we should add to make this as user friendly and useful as possible:

  • create a template to add a metric space
    • template README.md (like model/dataset card) with basic structure
    • template my_metric.py file (similar to datasets loading scripts)
    • gradio app.py that loads all information from README.md and my_metric.py to create a default widget. This does probably not need to be changed.
  • debugging tools
    • instructions on how to clone the repository directly on spaces
    • maybe an evaluate-cli command to test if everything is fine evaluate-cli test-metric PATH_TO_REPO
  • dedicated tag: if we ever want to migrate the metrics to a dedicated place like datasets and models it is good if we had a tag to find them all. Similarly, we could then easily do a list_metrics() function in the evaluate without needing to look at the content of each repo.

The goal is to enable behaviour (example with the space above):

accuracy_metric = load_metric("osanseviero/accuracy_metric")

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
julien-ccommented, Apr 7, 2022

Yes, you can just add a tags: - metric to the README.md

To clarify: I think there is a small thing left to implement in moon-landing (cc @cbensimon) but then you will be able to query https://hf.co/api/spaces?filter=metric i.e. same as for other repo types

But in the meantime you can already add tags to README.md “space cards”

1reaction
lvwerracommented, Apr 7, 2022

Thanks, that’s a good idea. Maybe we keep metric.py and app.py separated in case we want to switch the widget or metric logic at some point we don’t need to touch/disentangle both.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Community Metrics - Hootsuite Academy
Analyze and track community data to make informed decisions. ... but closely related metrics: community growth, community engagement, and brand love.
Read more >
Community Metrics: What to Track and Why - Commsor
We break down the three 'buckets' of community metrics, and how to put them into context.
Read more >
Top Metrics Every Community Manager Must Report - Tribe
Learn how you can effectively measure the key metrics to score the success of your online community and generate insights.
Read more >
The Community Manager's Guide to Understanding ...
Engagement metrics measure how active your community is, while business metrics measure the business impact of the community. Leader Networks ...
Read more >
The 5 essential metrics for community engagement | Klipfolio
We focus on the metrics that give us a deeper understanding of how invested a community's members are and whether they're getting something...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found