Skip to content

Steering

Plotting utilities for steering directions.

Requires the plot extra (install with: pip install murano-interp[plot]).

def plot_separation_scores(steering: SteeringResult) -> go.Figure:

Plot separation scores across layers as a bar chart.

Highlights the best-scoring layer in a distinct color.

Args:

  • steering: SteeringResult containing per-layer separation scores.

Returns:

  • An interactive Plotly bar chart, one bar per layer.
def plot_direction_cosine_similarity(steering: SteeringResult) -> go.Figure:

Plot a heatmap of cosine similarities between per-layer directions.

Args:

  • steering: SteeringResult with one direction vector per layer.

Returns:

  • An interactive Plotly heatmap of the layer-by-layer cosine similarity.