tdfs4ds.lineage.sensitivity¶
tdfs4ds.lineage.sensitivity
¶
Where a declared sensitive feature reaches (0.3.7.23). Pure, read-only.
A feature declared SENSITIVE (feature properties) is not only in the datasets that expose it:
a process that reads such a dataset computes features from it, and a model trained on that
dataset inherits it. :func:sensitive_reach follows the dependency graph downstream from every
sensitive feature, through datasets, the processes that read them and the features those produce.
Nothing is changed or blocked; the result is for reports and warnings.
sensitive_features
¶
[(DATA_DOMAIN, ENTITY_NAME, FEATURE_NAME)] declared sensitive in the props frame
(feature_properties()); empty for None / an empty frame.
sensitive_feature_nodes
¶
{feature node: feature name} of the graph's features declared sensitive.
A property row names the feature by name and, when it gives them, entity and data domain; a missing entity / domain matches any.
sensitive_reach
¶
{node: [sensitive feature names it inherits]} over the dependency graph.
graph: the DiGraph of :func:tdfs4ds.dependencies.build_dependency_graph (edges go from
upstream to dependent: process -> feature, feature -> dataset, dataset -> process reading it).
props: the frame feature_properties() returns. A node appears when it is downstream of
at least one sensitive feature (datasets, processes, derived features); the sensitive features
themselves appear only if another sensitive feature reaches them. Empty when nothing is
declared sensitive. Names are sorted and unique.
describe_reach
¶
Rows {node, kind, label, features} of a :func:sensitive_reach result, datasets first.