vumichien commited on
Commit
2a3e0b8
1 Parent(s): 5471564

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,7 +23,7 @@ This method is similar to cross-validation, but it does not require repeated mod
23
  The **OOB** estimator provides a conservative estimate of the true test loss but is still a reasonable approximation for a small number of trees.
24
  In this demonstration, a **GradientBoostingClassifier** model is trained on a simulation dataset, and the loss of the training set, test set, and OOB set are displayed in the figure.
25
  This information allows you to determine the level of generalization of your trained model on the simulation dataset.
26
- You can play around with ``number of samples``,``number of splits fold``, ``random seed``and ``number of estimator (step)``
27
 
28
  ## Dataset
29
 
@@ -147,7 +147,7 @@ with gr.Blocks(theme=theme) as demo:
147
  n_samples = gr.Slider(minimum=500, maximum=5000, step=500, value=500, label="Number of samples")
148
  n_splits = gr.Slider(minimum=2, maximum=10, step=1, value=3, label="Number of cross validation folds")
149
  random_seed = gr.Slider(minimum=0, maximum=2000, step=1, value=0, label="Random seed")
150
- n_estimators = gr.Slider(minimum=500, maximum=2000, step=100, value=500, label="Number of estimator step")
151
 
152
  with gr.Row():
153
  with gr.Column():
 
23
  The **OOB** estimator provides a conservative estimate of the true test loss but is still a reasonable approximation for a small number of trees.
24
  In this demonstration, a **GradientBoostingClassifier** model is trained on a simulation dataset, and the loss of the training set, test set, and OOB set are displayed in the figure.
25
  This information allows you to determine the level of generalization of your trained model on the simulation dataset.
26
+ You can play around with ``number of samples``,``number of splits fold``, ``random seed``and ``number of estimation step``
27
 
28
  ## Dataset
29
 
 
147
  n_samples = gr.Slider(minimum=500, maximum=5000, step=500, value=500, label="Number of samples")
148
  n_splits = gr.Slider(minimum=2, maximum=10, step=1, value=3, label="Number of cross validation folds")
149
  random_seed = gr.Slider(minimum=0, maximum=2000, step=1, value=0, label="Random seed")
150
+ n_estimators = gr.Slider(minimum=500, maximum=2000, step=100, value=500, label="Number of step")
151
 
152
  with gr.Row():
153
  with gr.Column():