Feature: add community metrics
See original GitHub issueWe 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:
- No dedicated repo type needed
- Infrastructure already exists
- 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 todatasets
loading scripts) - gradio
app.py
that loads all information fromREADME.md
andmy_metric.py
to create a default widget. This does probably not need to be changed.
- template
- debugging tools
- instructions on how to clone the repository directly on spaces
- maybe an
evaluate-cli
command to test if everything is fineevaluate-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 theevaluate
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:
- Created a year ago
- Comments:6 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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”
Thanks, that’s a good idea. Maybe we keep
metric.py
andapp.py
separated in case we want to switch the widget or metric logic at some point we don’t need to touch/disentangle both.