The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

completing missing data with knn

smetinsmetin Member Posts: 2 Learner I

data set as above



knn in impute missing value fails

Answers

  • jacobcybulskijacobcybulski Member, University Professor Posts: 391 Unicorn
    What it means is that almost all examples have missing values. The way the impute operator works is: it takes an attribute with missing values and treats it as a label, then it uses the remaining attributes as predictors. It then trains a model, in your case knn, using all examples where predictors have no missing values, the examples with missing values are rejected. Once the model is trained it is used to predict the missing values in the label. This is repeated for each attribute with missing values (to become a label). If at any stage your predictors have too many missing values, you may end up with no examples to train the moeel on, which happened in your case. 
  • jacobcybulskijacobcybulski Member, University Professor Posts: 391 Unicorn
    To verify this out a break point before knn and see what you get on input. 
Sign In or Register to comment.