varimax#

varimax(data, tolerance=0.0001, reorder=True, *, max_iterations=50)#

Rotate matrix rows toward a sparse, orthogonal simple structure.

Parameters:
  • data (Any) – Components by features or observations matrix.

  • tolerance (float) – Pairwise rotation and convergence tolerance.

  • reorder (bool | str) – Reorient and sort rows by descending energy. The strings "reorder" and "noreorder" are also accepted.

  • max_iterations (int) – Maximum sweeps through all row pairs.

Returns:

Orthogonal rotation and the rotated data rotation @ data.

Return type:

tuple[ndarray, ndarray]