deep_structure
deep_structure
¶
Classes:
| Name | Description |
|---|---|
DeepStructure |
Deep Structure Stability metric via joined PCA. |
DeepStructure
pydantic-model
¶
Bases: Component
Deep Structure Stability metric via joined PCA.
Projects training and synthetic data into a shared principal-component space and scores the distributional similarity of the projections.
Config:
arbitrary_types_allowed:True
Fields:
-
score(EvaluationScore) -
name(str) -
training_pca(DataFrame | None) -
synthetic_pca(DataFrame | None)
training_pca = None
pydantic-field
¶
PCA-projected training dataframe.
synthetic_pca = None
pydantic-field
¶
PCA-projected synthetic dataframe.
jinja_context
cached
property
¶
Template context with PCA scatter plot figure.
from_evaluation_datasets(evaluation_datasets, config=None)
staticmethod
¶
Compute PCA projections and the principal component stability score.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
evaluation_datasets
|
EvaluationDatasets
|
Paired training/synthetic data. |
required |
config
|
SafeSynthesizerParameters | None
|
Pipeline configuration (unused, reserved for future use). |
None
|
Returns:
| Type | Description |
|---|---|
DeepStructure
|
A |
Source code in src/nemo_safe_synthesizer/evaluation/components/deep_structure.py
get_principal_component_stability(training_pca, synthetic_pca)
staticmethod
¶
Score the distributional similarity of PCA projections.
Computes per-component Jensen-Shannon divergence, averages, and applies an exponential function to produce a 0--10 score.