iterative / cml

♾️ CML - Continuous Machine Learning | CI/CD for ML
http://cml.dev
Apache License 2.0
4.04k stars 340 forks source link

[Feature Request] Badges for ML models #219

Closed ashishpawar517 closed 3 years ago

ashishpawar517 commented 4 years ago

As this is Github action we can get badges like build passing badges . But It would be great if we would have Custom CML badges that prints the model name with accuracy , or highest testing score etc.

Let me know if what you guys think about this ?

elleobrien commented 4 years ago

@pawarashish564 we've been discussing how to do this! Here's what we have in mind, let us know what you think:

cml-badge-publish <metrics file in .csv/.json format> <desired metric, if multiple are present>
ashishpawar517 commented 4 years ago

Yes that what's I'm looking for . Can you tell me How you did this ? In detail. Is it simple prototype or working demo for all? Thank you so much.

elleobrien commented 4 years ago

We haven't made it yet! We'll get working on it and let you know when it's ready. I made the sample accuracy badge using shields.io :)

0x2b3bfa0 commented 3 years ago

(Bikeshedding)

The dynamic-badges action uses an interesting approach, but might not be appropriate in some scenarios due to the public nature of GitHub Gists. Would extending the assets backend be in consonance with the current practices? https://github.com/iterative/cml/blob/cdde17c8eb212c56b343fe9433c055ad3a05f873/src/utils.js#L67

elleobrien commented 3 years ago

I believe we had decided not to use the assets backend because the badge needs to be at a static address so it can be referenced in the README.md perpetually, and the assets service uses content-addressable storage.

0x2b3bfa0 commented 3 years ago

The next most plausible option I can think of would be spinning up a serverless function tied to a cheap schemaless database. For the badge use case, I think that it would be enough to keep only the most recent result for each branch on a repository.

casperdcl commented 3 years ago

Got a solution for you (feel free to feedback)... have a look at https://github.com/iterative/dvc.org/issues/234#issuecomment-848243511

ashishpawar517 commented 3 years ago

I agree, very interesting

DavidGOrtega commented 3 years ago

@casperdcl @pawarashish564 Is this issue right now fixed?

ashishpawar517 commented 3 years ago

Yes