jucamohedano commited on
Commit
533e635
·
1 Parent(s): a65d052

add noise and variance sliders under feature1's sliders

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -177,29 +177,29 @@ with gr.Blocks(title=title) as demo:
177
  gr.Markdown("`y = f1_scale * x_1 **f1_power + f2_scale * f2_func(f2_freq * np.pi * x_2 + f2_shift + variance) * random(samples) + bias`")
178
 
179
 
180
- noise_var = gr.Slider(minimum=0, maximum=10, step=1,
181
- label = "Noise variance")
182
-
183
- noise_bias = gr.Slider(minimum=0, maximum=10, step=1,
184
- label = "Noise bias")
185
-
186
  with gr.Row():
187
  with gr.Column():
188
- feat1_scale = gr.Slider(minimum=1, maximum=10, step=1,
189
  label = "Scale feature 1")
190
 
191
- feat1_power = gr.Slider(minimum=1, maximum=4, step=1,
192
  label = "Raised feature 1 to the power")
193
-
 
 
 
 
 
 
194
  with gr.Column():
195
  feat2_freq = gr.Slider(minimum=1, maximum=10, step=1, value=6,
196
- label = "Feature 2 frequency")
197
 
198
  feat2_shift = gr.Slider(minimum=1, maximum=5, step=1,
199
- label = "Shift feature 2")
200
 
201
  feat2_scale = gr.Slider(minimum=1, maximum=4, step=1,
202
- label = "Scale feature 2")
203
 
204
  feat2_func = gr.Radio(choices=["Use sine function for feature 2",
205
  "Use cosine function for feature 2"],
 
177
  gr.Markdown("`y = f1_scale * x_1 **f1_power + f2_scale * f2_func(f2_freq * np.pi * x_2 + f2_shift + variance) * random(samples) + bias`")
178
 
179
 
 
 
 
 
 
 
180
  with gr.Row():
181
  with gr.Column():
182
+ feat1_scale = gr.Slider(minimum=1, maximum=10, step=1,
183
  label = "Scale feature 1")
184
 
185
+ feat1_power = gr.Slider(minimum=1, maximum=4, step=1,
186
  label = "Raised feature 1 to the power")
187
+
188
+ noise_var = gr.Slider(minimum=0, maximum=10, step=1,
189
+ label = "Noise variance")
190
+
191
+ noise_bias = gr.Slider(minimum=0, maximum=10, step=1,
192
+ label = "Noise bias")
193
+
194
  with gr.Column():
195
  feat2_freq = gr.Slider(minimum=1, maximum=10, step=1, value=6,
196
+ label = "Feature 2 frequency")
197
 
198
  feat2_shift = gr.Slider(minimum=1, maximum=5, step=1,
199
+ label = "Shift feature 2")
200
 
201
  feat2_scale = gr.Slider(minimum=1, maximum=4, step=1,
202
+ label = "Scale feature 2")
203
 
204
  feat2_func = gr.Radio(choices=["Use sine function for feature 2",
205
  "Use cosine function for feature 2"],