Message Boards Message Boards

Processing missing value with SynthesizeMissingValues?

Posted 2 years ago

I have an exercise below.

Use the SynthesizeMissingValues function to replace these missing values. Make sure you specify the FeatureExtractor so that it assigns the correct data type to the column having missing values.

I hvae tried to add FeatureExtractor to the function, SynthesizeMissingValues as the website. enter image description here

But it always shows an error.

ld=LearnDistribution[{{2,1.4},{3,3.1},{5,5.4},{7,7.5}}]
SynthesizeMissingValues[{1,Missing[]},RefLink[FeatureExtractor,paclet:ref/FeatureExtractor]->"Minimal"]

enter image description here

What can I do to add FeatureExtrator to SynthesizeMissingValues?

POSTED BY: Pei Hsuan Shen
2 Replies
Posted 2 years ago

You have somehow copied the hyperlink meta-data when you added the FeatureExtractor option. It should look like this:

SynthesizeMissingValues[{1, Missing[]}, FeatureExtractor -> "Minimal"]

Although, I'm sceptical that that's what you're really wanting to do. One data point isn't enough to meaningfully generate missing values. It'll produce an output, but I don't know what it's worth. Are you trying to use the learned distribution to generate values? If so, then you need to add the distribution, something like this:

ld = LearnDistribution[{{2, 1.4}, {3, 3.1}, {5, 5.4}, {7, 7.5}}];
SynthesizeMissingValues[ld, {1, Missing[]}, 
 FeatureExtractor -> "Minimal"]
POSTED BY: Eric Rimbey
Posted 2 years ago

Thanks a lot.

POSTED BY: Pei Hsuan Shen
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract