Define lineage schema
Decide node and edge types (datasets, tables, transformations) and a stable identifier scheme to join provenance records.
Visualise data lineage. Assess provenance relationships.
Data lineage visualization maps datasets, transformations and model inputs so engineers and auditors can trace how a prediction was produced. Key concerns are authoritative provenance, correct edge direction, scale of the graph and the user interface for exploring upstream/downstream dependencies. Visual clutter, missing metadata and inconsistent identifiers are common failure modes.
Learning concept · Not a validated service
Data lineage visualization maps datasets, transformations and model inputs so engineers and auditors can trace how a prediction was produced. Key concerns are authoritative provenance, correct edge direction, scale of the graph and the user interface for exploring upstream/downstream dependencies. Visual clutter, missing metadata and inconsistent identifiers are common failure modes.
A proposed application: a dashboard for data engineers and auditors to inspect which tables, transformations and model inputs contributed to a decision. The dashboard should surface uncertainty and require a human reviewer before any operational decisions are made.
Decide node and edge types (datasets, tables, transformations) and a stable identifier scheme to join provenance records.
Build a minimal pipeline that ingests provenance rows and constructs a directed graph for a small set of models or pipelines.
Aggregate metrics such as access frequency, data drift or model-feature importance for nodes to highlight notable lineage paths.
Display an interactive graph (zoom, filter, inspect node metadata) and collect reviewer annotations for disputed links.
The supplied starter generates a synthetic classification dataset (sklearn.make_classification), fits a RandomForestClassifier, computes permutation feature importances on the test set, and prints the model score and a small importance table. It does not ingest provenance records, create lineage graphs, or produce visualisations of lineage.
X, y = make_classification(n_samples=700, n_features=8, n_informative=5, random_state=42)
columns = [f"feature_{i}" for i in range(X.shape[1])]
X = pd.DataFrame(X, columns=columns)
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.25, random_state=42, stratify=y)
model = RandomForestClassifier(n_estimators=250, random_state=42)
model.fit(X_train, y_train)
The starter uses synthetic tabular features and trains a RandomForest; it only computes permutation feature importances and prints a small report. It does not implement any data-lineage ingestion, graph construction, provenance metadata handling or visualization components required for a lineage system. The synthetic labels and features do not represent provenance relationships.
Proposed extension: replace synthetic input with exported provenance rows (dataset id, job id, timestamp, operation) and build a small dashboard that renders an interactive directed graph and highlights nodes by importance or drift.
This is a potential application pathway, not a delivered product. The supplied starter does not implement this service or validate it with real users.
Networkers Home runs this topic inside its AI Engineer Course, with placement support and hands-on labs.