EduardoPacheco commited on
Commit
fade4ac
·
1 Parent(s): 1382f7e
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -72,7 +72,17 @@ def app_fn(n: int) -> go.Figure:
72
 
73
  return fig
74
 
 
75
  with gr.Blocks() as demo:
 
 
 
 
 
 
 
 
 
76
  n = gr.inputs.Slider(10, 30, 5, 20, "Number of training samples")
77
  plot = gr.Plot(label="Individual & Voting Predictions")
78
  button = gr.Button(label="Update Plot")
 
72
 
73
  return fig
74
 
75
+ title="Individual and Voting (🗳️) Regression Predictions"
76
  with gr.Blocks() as demo:
77
+ gr.Markdown(f"# {title}")
78
+ gr.Markdown(
79
+ """
80
+ ## A voting regressor is an ensemble meta-estimator that fits several base regressors, each on the whole dataset. \
81
+ Then it averages the individual predictions to form a final prediction. This example will use three different regressors to \
82
+ predict the data: GradientBoostingRegressor, RandomForestRegressor, and LinearRegression. Then the 3 regressors will be used for the VotingRegressor. \
83
+ The dataset used consists of 10 features collected from a cohort of diabetes patients. The target is a quantitative measure of disease progression one year after baseline.
84
+ """
85
+ )
86
  n = gr.inputs.Slider(10, 30, 5, 20, "Number of training samples")
87
  plot = gr.Plot(label="Individual & Voting Predictions")
88
  button = gr.Button(label="Update Plot")