GINN icon indicating copy to clipboard operation
GINN copied to clipboard

Does input X in degrade_dataset(...) has nan (missing values)?

Open yezhengli-Mr9 opened this issue 5 years ago • 2 comments

Hi Indro, Does input X in degrade_dataset(...) possibly have nan (missing values, I mean the raw data has intrinsic missing values)?

If so, why mask_1d = np.ones(n) rather than mask_1d = #where X is not nan?

yezhengli-Mr9 avatar Jul 27 '20 11:07 yezhengli-Mr9

Hi! If you use degrade_dataset it is supposed that the raw data is perfect and you want to create missing values. By the way, if your raw data has already some missing values, you can still use degrade_dataset to add some noise. In this case, you have to sum the original mask of missing values to the one produced by the function

If so, why 'mask_1d = np.ones(n)' rather than 'mask_1d = #where X is not nan'?

What I said before should clear also this point.

Let me know if it is ok now :)

spindro avatar Jul 30 '20 07:07 spindro

@spindro Is this code working for filling missing values?

Coding511 avatar Oct 06 '23 11:10 Coding511