pyFM.optimize.weights.effective_p

pyFM.optimize.weights.effective_p(*descr_red)

Estimation of independent descriptors using gram matrix.

p_eff = (tr G)^2 / ||G||_F^2 with G = F.T @ F. Ignores the constant mode for each descriptor.

Parameters:

*descr_red ((K, p) np.ndarray) – Descriptors in the reduced basis, one array per shape.

Returns:

p_eff

Return type:

float