You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: add snippet for explaining the linear regression model prediction (#1427)
* add snippet for explaining the linear regression model prediction
* Update samples/snippets/linear_regression_tutorial_test.py
* Update samples/snippets/linear_regression_tutorial_test.py
---------
Co-authored-by: Tim Sweña (Swast) <swast@google.com>
# Use 'predict_explain' function to understand why the model is generating these prediction results.
83
+
# 'predict_explain'is an extended version of the 'predict' function that not only outputs prediction results, but also outputs additional columns to explain the prediction results.
84
+
# Using the trained model and utilizing data specific to Biscoe Island, explain the predictions of the top 3 features
# predicted_body_mass_g top_feature_attributions baseline_prediction_value prediction_value approximation_error species island culmen_length_mm culmen_depth_mm flipper_length_mm body_mass_g sex
0 commit comments