knnimpute package in python

700 views Asked by At

I am trying to perform a knn imputation using the python package knnimpute. I am kind of lost with what the parameter missing_mask should be. I fail to understand what this means ( from the docs)

 missing_mask : np.ndarray
            Boolean array of same shape as X

Somebody who has used this package - would be great if you can help me with it.

1

There are 1 answers

0
user2106546 On

missing_mask should be np.isnan(your_numpy_matrix_data).

In my environment it goes ok.