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 reference and output 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) -
reference_pca(DataFrame | None) -
output_pca(DataFrame | None)
reference_pca = None
pydantic-field
¶
PCA-projected reference dataframe.
output_pca = None
pydantic-field
¶
PCA-projected output dataframe.
jinja_context
cached
property
¶
Template context with PCA scatter plot figure.
from_evaluation_dataset(evaluation_dataset, config=None)
staticmethod
¶
Compute PCA projections and the principal component stability score.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
evaluation_dataset
|
EvaluationDataset
|
Paired reference/output 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(reference_pca, output_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.