zixianma commited on
Commit
fd5d7d7
1 Parent(s): ca60cfc

updated details

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -164,8 +164,8 @@ def plot_embedding(domain, partition, category):
164
  has_image = 'image' in merged_df
165
  chart = alt.Chart(merged_df).mark_point(size=30, filled=True).encode(
166
  alt.OpacityValue(0.5),
167
- alt.X('x:Q'),
168
- alt.Y('y:Q'),
169
  alt.Color(f'{category}:N'),
170
  tooltip=['question', 'answer'] + (['image'] if has_image else []),
171
  ).properties(
@@ -985,7 +985,7 @@ def plot_performance_for_selected_tasks(domain, partition, df, query_type, model
985
 
986
  num_columns = len(df[f'{vis_category}'].unique())
987
  chart = alt.Chart(df).mark_bar().encode(
988
- alt.X(f'{vis_category}:N', sort=alt.EncodingSortField(field=f'score', order='ascending', op=task_agg), axis=alt.Axis(labelAngle=-20)), # no title, no label angle),
989
  alt.Y(y_val, scale=alt.Scale(zero=True), title=y_title),
990
  alt.Color(f'{vis_category}:N').legend(None),
991
  ).properties(
 
164
  has_image = 'image' in merged_df
165
  chart = alt.Chart(merged_df).mark_point(size=30, filled=True).encode(
166
  alt.OpacityValue(0.5),
167
+ alt.X('x:Q', title="UMAP Component 1"),
168
+ alt.Y('y:Q', title="UMAP Component 2"),
169
  alt.Color(f'{category}:N'),
170
  tooltip=['question', 'answer'] + (['image'] if has_image else []),
171
  ).properties(
 
985
 
986
  num_columns = len(df[f'{vis_category}'].unique())
987
  chart = alt.Chart(df).mark_bar().encode(
988
+ alt.X(f'{vis_category}:N', sort=alt.EncodingSortField(field=f'score', order='ascending', op=task_agg), axis=alt.Axis(labelAngle=-45)), # no title, no label angle),
989
  alt.Y(y_val, scale=alt.Scale(zero=True), title=y_title),
990
  alt.Color(f'{vis_category}:N').legend(None),
991
  ).properties(