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

customize Facets display columns #212

Open
youw3 opened this issue Mar 16, 2020 · 2 comments
Open

customize Facets display columns #212

youw3 opened this issue Mar 16, 2020 · 2 comments

Comments

@youw3
Copy link

youw3 commented Mar 16, 2020

how can I add some custom columns such as "default_val_rate" rather than "zeros"?
image

@youw3
Copy link
Author

youw3 commented Apr 7, 2020

i just want to add some other columns into the table

@jameswex
Copy link
Collaborator

jameswex commented Apr 7, 2020

The protocol buffer that Facets Overview displays does have the ability to add in custom stats that it will display: https://github.com/PAIR-code/facets/blob/master/facets_overview/proto/feature_statistics.proto#L89

For example, in the notebook https://github.com/PAIR-code/facets/blob/master/facets_overview/Overview_demo.ipynb, after creating the "proto" object, you could set additional fields in it in order to have them be displayed.

Let me know if you need more guidance in setting those fields in the proto. You will have to set the custom_stats field in each FeatureNameStatistics field in the proto, according to your custom stat you calculated per feature.

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