snajmark commited on
Commit
6d20244
·
1 Parent(s): 4a008a9

Update domain_space.py

Browse files
Files changed (1) hide show
  1. domain_space.py +2 -1
domain_space.py CHANGED
@@ -205,13 +205,14 @@ def make_domain_plot(df_synth_pred, explored_domain_space, x_list, target="y_pre
205
 
206
  cols_for_plot = [c for c in df_synth_pred.columns if c not in filter_cols + ["Temperature_C"]]
207
  x_col, y_col, z_col = cols_for_plot[0], cols_for_plot[1], cols_for_plot[2]
 
208
  fig = px.scatter_3d(
209
  df_synth_pred2,
210
  x=x_col,
211
  y=y_col,
212
  z=z_col,
213
  color=target,
214
- size=df_synth_pred["uncertainty"],
215
  range_color=[uncertainty_min, uncertainty_max],
216
  hover_data={target: ":.3f", "uncertainty": ":.3f"},
217
  )
 
205
 
206
  cols_for_plot = [c for c in df_synth_pred.columns if c not in filter_cols + ["Temperature_C"]]
207
  x_col, y_col, z_col = cols_for_plot[0], cols_for_plot[1], cols_for_plot[2]
208
+ hover_data={target: ":.3f", "uncertainty": ":.3f"}
209
  fig = px.scatter_3d(
210
  df_synth_pred2,
211
  x=x_col,
212
  y=y_col,
213
  z=z_col,
214
  color=target,
215
+ size=hover_data["uncertainty"],
216
  range_color=[uncertainty_min, uncertainty_max],
217
  hover_data={target: ":.3f", "uncertainty": ":.3f"},
218
  )