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?
giulioa
(Giulio Alessandrini)
November 4, 2022, 10:47am
2
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.