ProgramViz

class ProgramViz(program)[source]

Bases: object

Thin convenience wrapper for program.viz access.

This wrapper mirrors the standalone divi.viz scan API so users can write fluent calls such as program.viz.scan_1d(...) without changing the underlying execution behavior.

Attributes Summary

Methods Summary

compute_hessian([center])

Call divi.viz.compute_hessian() for the wrapped program.

run_neb(theta_1, theta_2, **kwargs)

Call divi.viz.run_neb() for the wrapped program.

scan_1d(**kwargs)

Call divi.viz.scan_1d() for the wrapped program.

scan_2d(**kwargs)

Call divi.viz.scan_2d() for the wrapped program.

scan_interp_1d(theta_1, theta_2, **kwargs)

Call divi.viz.scan_interp_1d() for the wrapped program.

scan_interp_2d(theta_1, theta_2, **kwargs)

Call divi.viz.scan_interp_2d() for the wrapped program.

scan_pca(*[, wrap_periodic])

Call divi.viz.scan_pca() for the wrapped program.

Attributes Documentation

program: _SupportsVizScan

Methods Documentation

compute_hessian(center=None, **kwargs)[source]

Call divi.viz.compute_hessian() for the wrapped program.

When center is omitted, defaults to program.best_params.

Return type:

HessianResult

run_neb(theta_1, theta_2, **kwargs)[source]

Call divi.viz.run_neb() for the wrapped program.

Return type:

NEBResult

scan_1d(**kwargs)[source]

Call divi.viz.scan_1d() for the wrapped program.

Return type:

Scan1DResult

scan_2d(**kwargs)[source]

Call divi.viz.scan_2d() for the wrapped program.

Return type:

Scan2DResult

scan_interp_1d(theta_1, theta_2, **kwargs)[source]

Call divi.viz.scan_interp_1d() for the wrapped program.

Return type:

Scan1DResult

scan_interp_2d(theta_1, theta_2, **kwargs)[source]

Call divi.viz.scan_interp_2d() for the wrapped program.

Return type:

Scan2DResult

scan_pca(*, wrap_periodic=False, **kwargs)[source]

Call divi.viz.scan_pca() for the wrapped program.

When samples is omitted, automatically collects parameter vectors from program.param_history(mode="best_per_iteration"). Set wrap_periodic=True to apply periodic_trajectory_wrap() to the auto-collected samples before fitting PCA.

Return type:

PCAScanResult