Skip to content

Commit

Permalink
[fixed] Explicitly specifying in extent of a density transform to wor…
Browse files Browse the repository at this point in the history
  • Loading branch information
marianokamp committed May 30, 2024
1 parent da509d7 commit a9d9b07
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion amtviz/visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def visualize_tuning_job(

trials_df.columns = trials_df.columns.map(_clean_parameter_name)
full_df.columns = full_df.columns.map(_clean_parameter_name)

charts = create_charts(
trials_df,
tuned_parameters,
Expand Down Expand Up @@ -251,7 +252,13 @@ def render_detail_charts():
| alt.Chart(trials_df)
.transform_filter(brush)
.transform_density(
objective_name, bandwidth=0.01, groupby=[tuning_parameter]
objective_name,
bandwidth=0.01,
groupby=[tuning_parameter],
extent=[
trials_df[objective_name].min(),
trials_df[objective_name].max(),
],
)
.mark_area(opacity=0.5)
.encode(
Expand Down

0 comments on commit a9d9b07

Please sign in to comment.