cca_zoo.visualisation.JointScoreScatterDisplay#

class cca_zoo.visualisation.JointScoreScatterDisplay(scores, test_scores=None, labels=None, test_labels=None, show_corr=True, ax_labels=None, **kwargs)[source]#

Bases: ScoreScatterDisplay

classmethod from_estimator(model, train_views, test_views=None, labels=None, test_labels=None, ax_labels=None, show_corr=True, **kwargs)#

Create a ScoreDisplay instance from an estimator and data representations.

Parameters:
  • model – The estimator model.

  • train_views (tuple) – Tuple of two arrays representing training data representations.

  • test_views (tuple, optional) – Tuple of two arrays representing test data representations. Default is None.

  • **kwargs – Additional keyword arguments passed to the ScoreDisplay constructor.

Returns:

An instance of ScoreDisplay.

Return type:

ScoreScatterDisplay

classmethod from_scores(train_scores, test_scores=None, labels=None, test_labels=None, ax_labels=None, show_corr=True, **kwargs)#

Create a ScoreDisplay instance from precomputed scores.

Parameters:
  • train_scores (tuple) – Tuple of two arrays representing training scores for two representations.

  • test_scores (tuple, optional) – Tuple of two arrays representing test scores for two representations. Default is None.

  • **kwargs – Additional keyword arguments passed to the ScoreDisplay constructor.

Returns:

An instance of ScoreDisplay.

Return type:

ScoreScatterDisplay