lm_polygraph.estimators.rde module

lm_polygraph.estimators.rde.MCD_covariance(X, y=None, label=None, seed=42)[source]
class lm_polygraph.estimators.rde.RDESeq(embeddings_type: str = 'decoder', parameters_path: str = None, normalize: bool = False)[source]

Bases: Estimator

The RDE method improves over MD by reducing the dimensionality of h(x) via PCA decomposition. It also computes the covariance matrix in a robust way using the Minimum Covariance Determinant estimate (Rousseeuw, 1984).

load_mcd()[source]
load_pca()[source]
save_mcd()[source]
save_pca()[source]
lm_polygraph.estimators.rde.load_array(filename)[source]
lm_polygraph.estimators.rde.save_array(array, filename)[source]