athena.kas.KernelActiveSubspaces._reparametrize

KernelActiveSubspaces._reparametrize(inputs, gradients)[source]

Computes the pseudo-gradients solving an overdetermined linear system.

Parameters
  • inputs (numpy.ndarray) – array n_samples-by-n_params containing the points in the original parameter space.

  • gradients (numpy.ndarray) – array n_samples-by-n_params containing the gradient samples oriented as rows.

Returns

array n_samples-by-output_dim-by-n_params matrix containing the pseudo gradients corresponding to each sample; array n_samples-by-n_features containing the image of the inputs in the feature space.

Return type

numpy.ndarray, numpy.ndarray