Skip to content
This repository has been archived by the owner on Jul 27, 2024. It is now read-only.

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
Contributor

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants