gemmr.generative_model._generate_dominant_subspace_rotations_from_opti¶
-
gemmr.generative_model.
_generate_dominant_subspace_rotations_from_opti
(U, V, m, qx, qy, rng, uvrots)¶ Generates weight vectors in the dominant subspaces (of dimension qx and qy) using a random entry in a list of predefined rotation matrices.
Parameters: - U (np.ndarray(px, px)) – basis vectors for X
- V (np.ndarray(py, py)) – basis vectors for Y
- m (int) – number of between-set association modes
- qx (int) – the dimensionality of the “dominant” subspace for X
- qy (int) – the dimensionality of the “dominant” subspace for Y
- rng (random number generator instance) –
- uvrots (list of 3-tuples) – where the 2nd and 3rd entries are rotation matrices for X and Y, respectively, i.e. np.ndarrays with dimension (qx,) and (qy,)
Returns: - U_dominant (np.ndarray (px, m)) – weight vectors for X living in “dominant” subspace
- V_dominant (np.ndarray (py, m)) – weight vectors for Y living in “dominant subspace