Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,26 +9,18 @@ from sklearn.preprocessing import MinMaxScaler
|
|
9 |
|
10 |
scaler = MinMaxScaler()
|
11 |
|
12 |
-
|
13 |
# load trained model
|
14 |
lgbm_base = pickle.load(open('lgbm_base.pkl', 'rb'))
|
15 |
lgbm_opt = pickle.load(open('lgbm_optimized.pkl', 'rb'))
|
16 |
|
17 |
-
|
18 |
-
tf.random.set_seed(42)
|
19 |
-
|
20 |
np.random.seed(42)
|
21 |
|
22 |
-
|
23 |
st.markdown("<body style ='color:#E2E0D9;'></body>", unsafe_allow_html=True)
|
24 |
|
25 |
-
|
26 |
-
|
27 |
st.markdown("<h4 style='text-align: center; color: #1B9E91;'>House Price Prediction in Ames,Iowa</h4>", unsafe_allow_html=True)
|
28 |
|
29 |
st.markdown("<h5 style='text-align: center; color: #1B9E91;'>A multi-step process is used to estimate the range of house prices based on your selection. </h5>", unsafe_allow_html=True)
|
30 |
|
31 |
-
|
32 |
name_list = [
|
33 |
'OverallQual',
|
34 |
'YearBuilt',
|
@@ -53,8 +45,7 @@ name_list_train = [
|
|
53 |
'SaleCondition',
|
54 |
'BsmtExposure']
|
55 |
|
56 |
-
data = pd.read_csv('train.csv')
|
57 |
-
|
58 |
|
59 |
data = data[name_list_train].values
|
60 |
|
@@ -66,8 +57,8 @@ description_list = [
|
|
66 |
'What is the Total square feet of basement area?',
|
67 |
'What is the Above grade (ground) living area in square feet?',
|
68 |
'What is the Masonry veneer area in square feet??',
|
69 |
-
'What is the Quality of basement finished area?',
|
70 |
-
'Where
|
71 |
'Where is the location of the Garage?',
|
72 |
'What is the condition of the sale?',
|
73 |
'Does the house have walkout or garden-level basement walls?'
|
|
|
9 |
|
10 |
scaler = MinMaxScaler()
|
11 |
|
|
|
12 |
# load trained model
|
13 |
lgbm_base = pickle.load(open('lgbm_base.pkl', 'rb'))
|
14 |
lgbm_opt = pickle.load(open('lgbm_optimized.pkl', 'rb'))
|
15 |
|
|
|
|
|
|
|
16 |
np.random.seed(42)
|
17 |
|
|
|
18 |
st.markdown("<body style ='color:#E2E0D9;'></body>", unsafe_allow_html=True)
|
19 |
|
|
|
|
|
20 |
st.markdown("<h4 style='text-align: center; color: #1B9E91;'>House Price Prediction in Ames,Iowa</h4>", unsafe_allow_html=True)
|
21 |
|
22 |
st.markdown("<h5 style='text-align: center; color: #1B9E91;'>A multi-step process is used to estimate the range of house prices based on your selection. </h5>", unsafe_allow_html=True)
|
23 |
|
|
|
24 |
name_list = [
|
25 |
'OverallQual',
|
26 |
'YearBuilt',
|
|
|
45 |
'SaleCondition',
|
46 |
'BsmtExposure']
|
47 |
|
48 |
+
data = pd.read_csv('data/train.csv')
|
|
|
49 |
|
50 |
data = data[name_list_train].values
|
51 |
|
|
|
57 |
'What is the Total square feet of basement area?',
|
58 |
'What is the Above grade (ground) living area in square feet?',
|
59 |
'What is the Masonry veneer area in square feet??',
|
60 |
+
'What is the Quality of the basement finished area?',
|
61 |
+
'Where are the physical locations within Ames city limits?',
|
62 |
'Where is the location of the Garage?',
|
63 |
'What is the condition of the sale?',
|
64 |
'Does the house have walkout or garden-level basement walls?'
|