LethallyHealthy commited on
Commit
63cd6ad
·
1 Parent(s): bd440b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -12,7 +12,7 @@ data = pd.DataFrame(np.zeros((1,60)),columns=predictor.X_test.columns, index=[0]
12
 
13
  st.title("*The Ames, Iowa Housing Price Predictor*")
14
  st.header("Description:")
15
- st.text("This is a showcase of the regression model, which has been trained using LightGBM and Optuna for hyperparameter tuning on the Ames, Iowa Housing Dataset. On the side are the top 20 features which this model deems the most relevant towards housing prices. Please try from a range of different inputs!")
16
 
17
  OverallQual = st.sidebar.slider("Overall Quality", 1, 5)
18
  with st.sidebar:
@@ -45,6 +45,8 @@ with st.sidebar:
45
  if st.button("Calculate Your House Price!"):
46
  results = predictor.make_a_prediction(data)
47
  st.write('{0:.2f}'.format(results[0]))
 
 
48
 
49
 
50
 
 
12
 
13
  st.title("*The Ames, Iowa Housing Price Predictor*")
14
  st.header("Description:")
15
+ st.subheader("This is a showcase of the regression model, which has been trained using LightGBM and Optuna for hyperparameter tuning on the Ames, Iowa Housing Dataset. On the side are the top 20 features which this model deems the most relevant towards housing prices. Please try from a range of different inputs!")
16
 
17
  OverallQual = st.sidebar.slider("Overall Quality", 1, 5)
18
  with st.sidebar:
 
45
  if st.button("Calculate Your House Price!"):
46
  results = predictor.make_a_prediction(data)
47
  st.write('{0:.2f}'.format(results[0]))
48
+ c = st.container()
49
+ c.write(predictor.create_shap_graphs(data))
50
 
51
 
52