PAIR-code/facets

customize Facets display columns

youw3 opened this issue · 2 comments

youw3 commented

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

youw3 commented

i just want to add some other columns into the table

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.