soojeongcrystal commited on
Commit
f0eda3f
·
verified ·
1 Parent(s): 4424fbb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -7
app.py CHANGED
@@ -80,18 +80,17 @@ def plot_perplexity_coherence(topic_range, perplexities, coherences):
80
 
81
  # Perplexity 그래프
82
  chart1 = alt.Chart(df_metrics).mark_line().encode(
83
- x=alt.X('토픽 수:Q', title='토픽 수', scale=alt.Scale(domain=[min(topic_range), max(topic_range)], step=1)),
84
- y=alt.Y('Perplexity:Q', title='Perplexity', scale=alt.Scale(type='log')),
85
- tooltip=['토픽 수', 'Perplexity']
86
  ).properties(
87
  width=600,
88
  height=400,
89
  title='Perplexity vs 토픽 수'
90
  )
91
-
92
- # Coherence 그래프
93
  chart2 = alt.Chart(df_metrics).mark_line(color='orange').encode(
94
- x=alt.X('토픽 수:Q', title='토픽 수', scale=alt.Scale(domain=[min(topic_range), max(topic_range)], step=1)),
95
  y=alt.Y('Coherence:Q', title='Coherence'),
96
  tooltip=['토픽 수', 'Coherence']
97
  ).properties(
@@ -354,7 +353,7 @@ if uploaded_file is not None:
354
  })
355
 
356
  chart3 = alt.Chart(df_metrics_combined).mark_line(color='green').encode(
357
- x=alt.X('토픽 수:Q', title='토픽 수', scale=alt.Scale(domain=[min(topic_range), max(topic_range)], step=1)),
358
  y=alt.Y('Combined Score:Q', title='Combined Score'),
359
  tooltip=['토픽 수', 'Combined Score']
360
  ).properties(
 
80
 
81
  # Perplexity 그래프
82
  chart1 = alt.Chart(df_metrics).mark_line().encode(
83
+ x=alt.X('토픽 수:Q', title='토픽 수'),
84
+ y=alt.Y('Perplexity:Q', title='Perplexity', scale=alt.Scale(type='log')),
85
+ tooltip=['토픽 수', 'Perplexity']
86
  ).properties(
87
  width=600,
88
  height=400,
89
  title='Perplexity vs 토픽 수'
90
  )
91
+
 
92
  chart2 = alt.Chart(df_metrics).mark_line(color='orange').encode(
93
+ x=alt.X('토픽 수:Q', title='토픽 수'),
94
  y=alt.Y('Coherence:Q', title='Coherence'),
95
  tooltip=['토픽 수', 'Coherence']
96
  ).properties(
 
353
  })
354
 
355
  chart3 = alt.Chart(df_metrics_combined).mark_line(color='green').encode(
356
+ x=alt.X('토픽 수:Q', title='토픽 수', scale=alt.Scale(domain=[min(topic_range), max(topic_range)]))
357
  y=alt.Y('Combined Score:Q', title='Combined Score'),
358
  tooltip=['토픽 수', 'Combined Score']
359
  ).properties(