dvj4 commited on
Commit
73348ae
·
1 Parent(s): 21a73c3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -36,4 +36,9 @@ input_df = pd.DataFrame({
36
  "GarageArea": [garage_area]
37
  })
38
  prediction = model.predict(input_df)
39
- st.write(f"The estimated house price range is ${prediction[0]:,.2f}")
 
 
 
 
 
 
36
  "GarageArea": [garage_area]
37
  })
38
  prediction = model.predict(input_df)
39
+ st.write(f"The estimated house price range is ${prediction[0]:,.2f}")
40
+ explainer = shap.Explainer(model)
41
+ shap_values = explainer(X_test)
42
+ shap.summary_plot(shap_values, X_test)
43
+ shap_interaction_values = explainer(X_test).interactions(X_test)
44
+ shap.summary_plot(shap_interaction_values, X_test)