Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|