in src/responsibleai/rai_analyse/_score_card/common_components.py [0:0]
def get_feature_importance_page(data):
fi_left_heading = p(
"Understand factors that have impacted your model predictions the most. "
"These are factors that may account for performance levels and differences."
)
feature_list = ul()
for k, v in data.items():
feature_list.append(li("{}: {}".format(v["short_label"], k)))
container = div(fi_left_heading, feature_list, _class="nobreak_div")
fi_left_container = div(container, _class="left")
heading_main = div(
h3("Feature Importance"),
p("Shown below is the mean of SHAP value of the most important features:"),
get_fi_image(data),
_class="main",
)
return div(
get_page_divider("Feature Importance (Explainability)"),
fi_left_container,
heading_main,
_class="container",
)