Skip to content

← feature_extraction package

CCA

Perform Canonical Correlation Analysis (CCA) and calculate matrices of scores for CCA.

The inputs of this node are two packets (X, Y), with with data having the same number of points in time (N). X and Y may have different shapes, but the stream name to be compared should be the same in both. (Event/marker streams are ignored.) The outputs of this node are three chunks with data values of three matrices A, B, and D, respectively. The columns of A and B contain the canonical coefficients. D is a vector with sample canonical correlation values. Version 1.1.0

Ports/Properties

X

Data X to process.

  • verbose name: X
  • default value: None
  • port type: DataPort
  • value type: Packet (can be None)
  • data direction: IN

Y

Data Y to process.

  • verbose name: Y
  • default value: None
  • port type: DataPort
  • value type: Packet (can be None)
  • data direction: IN

A

Canonical coefficients corresponding to X.

  • verbose name: A
  • default value: None
  • port type: DataPort
  • value type: Packet (can be None)
  • data direction: OUT

B

Canonical coefficients corresponding to Y.

  • verbose name: B
  • default value: None
  • port type: DataPort
  • value type: Packet (can be None)
  • data direction: OUT

D

Sample canonical correlation values.

  • verbose name: D
  • default value: None
  • port type: DataPort
  • value type: Packet (can be None)
  • data direction: OUT

axis

Axis holding the canonical components, which will form the matrix together with the time axis.

  • verbose name: Axis
  • default value: space
  • port type: ComboPort
  • value type: str (can be None)

set_breakpoint

Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.

  • verbose name: Set Breakpoint (Debug Only)
  • default value: False
  • port type: BoolPort
  • value type: bool (can be None)

metadata

User-definable meta-data associated with the node. Usually reserved for technical purposes.

  • verbose name: Metadata
  • default value: {}
  • port type: DictPort
  • value type: dict (can be None)