boston=ResourceData["Sample Data: Boston Homes"];
LDB=LearnDistribution[boston[All,{"RM","MEDV"}]]
syntheticboston=Table[SynthesizeMissingValues[LDB,
{n,Missing[]}],{n,Range[4,8,0.2]}];
syntheticboston[[1;;3]]
p1=ListPlot[boston[All,{"RM","MEDV"}],PlotLegends -> {"Data"}];
p2=ListPlot[syntheticboston,PlotStyle->Red,
PlotLegends -> {"Synthetic Data"}];
Show[p1,p2,GridLines->Automatic,ImageSize->Large]
Show[p1,p2,GridLines->Automatic,ImageSize->Large]
No comments:
Post a Comment