Spaces:
Sleeping
Sleeping
Shafeek Saleem
commited on
Commit
·
9708914
1
Parent(s):
d96d140
ss
Browse files
pages/3_Training the Model.py
CHANGED
@@ -171,7 +171,17 @@ def step3_page():
|
|
171 |
|
172 |
if state == "splitting":
|
173 |
st.subheader("Step 3: Data Splitting")
|
174 |
-
st.write("Now let's split into training and testing sets. The training set is used to train the machine learning model, and the testing set is used to evaluate its performance.")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
175 |
else:
|
176 |
pass
|
177 |
|
|
|
171 |
|
172 |
if state == "splitting":
|
173 |
st.subheader("Step 3: Data Splitting")
|
174 |
+
st.write("Now let's split the dataset into training and testing sets. The training set is used to train the machine learning model, and the testing set is used to evaluate its performance. For that, you have to select the train-test split %.")
|
175 |
+
train_size = st.slider("Select Train Dataset Size (%)", min_value=10, max_value=90, value=70)
|
176 |
+
state = "model selection"
|
177 |
+
else:
|
178 |
+
pass
|
179 |
+
|
180 |
+
if state == "model selection":
|
181 |
+
st.subheader("Step 3: Model Selection")
|
182 |
+
st.write("Different machine learning algorithms can be used for weather forecasting and the choice of model depends on the characteristics of the data and the forecasting task. But for this tutorial, you can select between a 'LightGBM' model and a 'Random Forest' model.")
|
183 |
+
models = ['LightGBM', 'Random Forest']
|
184 |
+
model_choice = st.selectbox('Choose Model', models)
|
185 |
else:
|
186 |
pass
|
187 |
|