Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "For this example, we will use the RegressionExplainer
and ExplainerDashboard
submodules."
A block of code is set as follows:
pdp = PartialDependence(
predict_fn=model.predict_proba,
data=x_train.astype('float').values,
feature_names=list(x_train.columns),
feature_types=feature_types)
pdp_global=pdp.explain_global(name='Partial Dependence')
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
explainer = shap.Explainer(model, x_test)
shap_values = explainer(x_test)
shap.plots.waterfall(shap_values[0], max_display = 12,
show=False)
Bold: Indicates a new term, an important word, or words that you see onscreen. For instance, words in menus or dialog boxes appear in bold. Here is an example: "Due to these known drawbacks, the search for a robust Explainable AI (XAI) framework is still on."
Tips or important notes
Appear like this.