SeqOptPlot

class SeqOptPlot(verbose=False)[source]

Bases: object

Plotting class for SeqOpt (Sequence Optimizer) results [Breimann24a].

Visualizes the Pareto front produced by SeqOpt.run(): a 2-D objective scatter colored by non-dominated rank, and the per-generation hypervolume convergence trace.

Every plotting method returns a (fig, ax) pair (a thin tuple subclass): unpack as fig, ax = .... For backward compatibility, the returned object also forwards attribute access to ax.

Added in version 1.0.0.

Parameters:

verbose (bool)

Methods

convergence(history[, figsize])

Plot per-generation convergence: hypervolume, spread and per-objective best.

genealogy(df_pareto[, ax, figsize, ...])

Mutational-lineage tree of the variants, rooted at the wild-type.

hypervolume(trajectory[, ax, figsize])

Plot the per-generation hypervolume convergence trace.

mutation_map(df_pareto[, ax, figsize, ...])

Heatmap of substitution enrichment across the Pareto front (position x amino acid).

parallel_coordinates(df_pareto, objectives)

Parallel-coordinates plot of a Pareto front over any number of objectives.

pareto_front(df_pareto, x, y[, z, ax, ...])

Scatter two (or three) objectives of a Pareto front, colored by non-dominated rank.

__init__(verbose=False)[source]
Parameters:

verbose (bool, default=False) – If True, verbose outputs are enabled.

See also

  • SeqOpt: the logic class whose Pareto front this visualizes.