ProgramViz¶
- class ProgramViz(program)[source]¶
Bases:
objectThin convenience wrapper for
program.vizaccess.This wrapper mirrors the standalone
divi.vizscan API so users can write fluent calls such asprogram.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
centeris omitted, defaults toprogram.best_params.- Return type:
- run_neb(theta_1, theta_2, **kwargs)[source]¶
Call
divi.viz.run_neb()for the wrapped program.- Return type:
- scan_1d(**kwargs)[source]¶
Call
divi.viz.scan_1d()for the wrapped program.- Return type:
- scan_2d(**kwargs)[source]¶
Call
divi.viz.scan_2d()for the wrapped program.- Return type:
- scan_interp_1d(theta_1, theta_2, **kwargs)[source]¶
Call
divi.viz.scan_interp_1d()for the wrapped program.- Return type:
- scan_interp_2d(theta_1, theta_2, **kwargs)[source]¶
Call
divi.viz.scan_interp_2d()for the wrapped program.- Return type:
- scan_pca(*, wrap_periodic=False, **kwargs)[source]¶
Call
divi.viz.scan_pca()for the wrapped program.When
samplesis omitted, automatically collects parameter vectors fromprogram.param_history(mode="best_per_iteration"). Setwrap_periodic=Trueto applyperiodic_trajectory_wrap()to the auto-collected samples before fitting PCA.- Return type: