Classify & Predict: How to extract imputed data?

The functions “Classify” and “Predict” are working with an ‘embedded’ preprocessing pipeline for data preparation. The following image from Etienne Barnard’s book “Introduction to Machine Learning” shows what is meant.

One step of the preprocessing pipeline is to Synthesize Missing Values which finally means the function imputes missing data by itself.

My question: How to get access / how to extract the imputed data?

Using the same dataset

data = ResourceData["Sample Data: Titanic Survival"];
titanic = Classify[data -> "SurvivalStatus"]

after training you can extract the estimated data distribution using Information

dist = Information[titanic, "MissingSynthesizer"]

then it is possible to recreate the imputed data separately

imputed = SynthesizeMissingValues[dist, data]

Giulio,

Thank you. Your solution works well.

Have a nice weekend.