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

pytorch multipoint regression model cards #3

Open
mkurczew opened this issue May 20, 2024 · 1 comment
Open

pytorch multipoint regression model cards #3

mkurczew opened this issue May 20, 2024 · 1 comment

Comments

@mkurczew
Copy link

Hi!
I went over the notebooks and some of the code for the Model Card Generator, but it seems that all three examples are classifiers.

What to do in case where I would like to create a model card for a multi-point regressor?
For example, let's assume that we have a torch model that outputs 21 2-D facial landmarks.
Let's say that I would like to show that NME(normalized mean error) is the same e.g., across all geos or races.

The make_eval_dataframe() method in model_card_gen/intel_ai_safety/model_card_gen/analyze/torch_analyzer.py assumes that there's a single numerical column representing labels and predictions so that probably wouldn't work for 21x2 numbers.

Any hints on how to tackle this kind of model with your toolkit?

@tybrs
Copy link

tybrs commented May 29, 2024

@mkurczew Thanks for the comment! We had a similar issue with multi-label support with pytorch. The workaround we received can be found here: tensorflow/model-analysis#162

In short i think this could be solvable by creating a custom beam.Pipeline to generate evaluation results.

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

No branches or pull requests

2 participants