Marcel0123 commited on
Commit
c4cdfd9
·
verified ·
1 Parent(s): d9234ae

Upload 2 files

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -171,12 +171,13 @@ with gr.Blocks(title="PCA Biplot — Diabetes (kleur: BMI)") as demo:
171
  n_components = gr.Slider(2, 10, value=10, step=1, label="Aantal PCA-componenten (voor variatieplot)")
172
  standardize = gr.Checkbox(value=True, label="Standaardiseer features (aanbevolen)")
173
  run_btn = gr.Button("Update visualisaties")
174
- gr.Markdown(STORY_MD_MEDICAL)
175
  with gr.Column(scale=2):
176
  plot_biplot = gr.Plot(label="PCA biplot — punten + pijlen")
177
  plot_expl = gr.Plot(label="Uitlegvariantie per component")
178
  table = gr.Dataframe(headers=["Feature (PC1)", "Loading PC1", "Feature (PC2)", "Loading PC2"], row_count=6)
179
  summary = gr.Markdown()
 
180
 
181
  inputs = [color_feat, arrow_scale, point_size, alpha, n_components, standardize]
182
 
 
171
  n_components = gr.Slider(2, 10, value=10, step=1, label="Aantal PCA-componenten (voor variatieplot)")
172
  standardize = gr.Checkbox(value=True, label="Standaardiseer features (aanbevolen)")
173
  run_btn = gr.Button("Update visualisaties")
174
+ gr.Markdown("> *Medisch nut:* deze biplot maakt grote hoeveelheden patiëntmetingen direct inzichtelijk.")
175
  with gr.Column(scale=2):
176
  plot_biplot = gr.Plot(label="PCA biplot — punten + pijlen")
177
  plot_expl = gr.Plot(label="Uitlegvariantie per component")
178
  table = gr.Dataframe(headers=["Feature (PC1)", "Loading PC1", "Feature (PC2)", "Loading PC2"], row_count=6)
179
  summary = gr.Markdown()
180
+ medical_md_block = gr.Markdown(STORY_MD_MEDICAL)
181
 
182
  inputs = [color_feat, arrow_scale, point_size, alpha, n_components, standardize]
183