boltzkit.evaluation.sample_based.tica
Functions
|
Compute a 2D histogram of TICA projections. |
|
Compute the Wasserstein distances (W1 and W2) between two sets of TICA projections. |
|
|
|
- boltzkit.evaluation.sample_based.tica.get_tica_hist(tica_proj: ndarray, **kwargs)[source]
Compute a 2D histogram of TICA projections.
- Parameters:
tica_proj (np.ndarray) – Array of shape (batch, 2), containing the first two TICA components per frame.
**kwargs – Additional keyword arguments passed to get_histogram_2d.
- Returns:
A Histogram2D object containing the relative histogram counts and bin edges.
- Return type:
- boltzkit.evaluation.sample_based.tica.visualize_tica(tica_hist: Histogram2D, vis_mode: VisualizationMode = <function plot_as_log_density>, ax: Axes | None = None, show: bool = False)[source]
- boltzkit.evaluation.sample_based.tica.visualize_tica_true_and_pred(tica_hist_true: Histogram2D, tica_hist_pred: Histogram2D, vis_mode: VisualizationMode = <function plot_as_log_density>, show: bool = False, clip_pred_to_true_range: bool = True)[source]
- boltzkit.evaluation.sample_based.tica.get_tica_wasserstein_1_2(tica_projections_true: ndarray, tica_projections_pred: ndarray, include_w1=False, include_w2=True)[source]
Compute the Wasserstein distances (W1 and W2) between two sets of TICA projections.
- Parameters:
tica_projections_true (np.ndarray) – Reference TICA projections of shape (batch, n_tica_components).
tica_projections_pred (np.ndarray) – Predicted TICA projections of shape (batch, n_tica_components).
include_w1 (bool, optional) – Whether to compute the W1 distance (default is False).
include_w2 (bool, optional) – Whether to compute the W2 distance (default is True).
- Returns:
Tuple (W1, W2) of Wasserstein distances. Each is either a float or None depending on include_w1 and include_w2.
- Return type:
tuple