Spaces:
Sleeping
Sleeping
Shafeek Saleem
commited on
Commit
·
bbdc057
1
Parent(s):
b3a91c7
ss
Browse files
pages/3_Training the Model.py
CHANGED
@@ -161,8 +161,14 @@ def step3_page():
|
|
161 |
st.subheader("Step 2: Data Preprocessing and Feature Engineering")
|
162 |
st.write("Now let's preprocess our dataset to handle missing values, outliers and inconsistencies and then perform feature engineering tasks to extract meaningful features from the raw data. Finally we need to separate training variables (X) and target variable (y).")
|
163 |
st.info("You can select the weather attribute that you want to forecast (WindSpeed/ Humidity/ Pressure/ Temperature) and the time of the forecast (9am tomorrow/ 3pm tomorrow)")
|
164 |
-
|
165 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
X, y, target_variable_name = create_model_inputs(data, 1, 30, target_variable)
|
167 |
cols = st.columns(2)
|
168 |
state = "splitting"
|
|
|
161 |
st.subheader("Step 2: Data Preprocessing and Feature Engineering")
|
162 |
st.write("Now let's preprocess our dataset to handle missing values, outliers and inconsistencies and then perform feature engineering tasks to extract meaningful features from the raw data. Finally we need to separate training variables (X) and target variable (y).")
|
163 |
st.info("You can select the weather attribute that you want to forecast (WindSpeed/ Humidity/ Pressure/ Temperature) and the time of the forecast (9am tomorrow/ 3pm tomorrow)")
|
164 |
+
cols = st.columns(2)
|
165 |
+
with cols[0]:
|
166 |
+
attributes = ['WindSpeed', 'Humidity', 'Pressure', 'Temp']
|
167 |
+
attribute = st.selectbox('Select the Weather Attribute', attributes)
|
168 |
+
with cols[1]:
|
169 |
+
times = ['9am', '3pm']
|
170 |
+
time = st.selectbox('Select the Time of the Forecast for Tomorrow', times)
|
171 |
+
target_variable = attribute+time
|
172 |
X, y, target_variable_name = create_model_inputs(data, 1, 30, target_variable)
|
173 |
cols = st.columns(2)
|
174 |
state = "splitting"
|