dsImpute
Dataset imputing for missing values
Contents
Syntax
- ds2=dsImpute(ds, opt)
Description
ds2=dsSubset(ds, opt): return a subset of the given ds based on the given opt
- opt.input: input names or indices to be retained.
- opt.output: output names of indices to be retained.
Example
ds=prData('iris');
[dim, count]=size(ds.input);
mask=rand(dim, count)>0.95;
ds.input(mask)=nan;
dsNanMap(ds);
ds2=dsImpute(ds);
figure;
dsNanMap(ds2);