How to solve error: Error in nnet.default(X, Y, w, mask = mask, size = 0, skip = TRUE, softmax = TRUE, : too many (1666) weights? #359
Replies: 6 comments
-
Related #111. It might be that the number of categories is a little too much for |
Beta Was this translation helpful? Give feedback.
-
See also the discussion in https://stefvanbuuren.name/fimd/sec-categorical.html#evaluation |
Beta Was this translation helpful? Give feedback.
-
Thank you for your quick reply! |
Beta Was this translation helpful? Give feedback.
-
library(mice)
str(boys)
mice(boys, method = "pmm", print = FALSE)
|
Beta Was this translation helpful? Give feedback.
-
Maybe I need to adjust my data. And, I want to know, dose mice have potentially difficult in large data (like 5000*400)? I would be very grateful if you could provide me with a literature about performance of mice. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Blindly running In general, it pays huge benefits, both in terms of speed and quality, if you spend some time in building the imputation model. Probably the most important thing you can do is downsize the number of predictors in each model to the most important, say, 20-30 variables. See https://stefvanbuuren.name/fimd/sec-modelform.html#sec:predictors for some guidelines on how to do that. Your reward will be a high-quality and speedy model without warning stars that will easily scale to larger datasets. |
Beta Was this translation helpful? Give feedback.
-
I have a matrix that shape is 7000*165, and I want to impute it by mice. The max NA rate in columns is 47%, and in row is 49% (I have del col and row that NA rate > 50%). Total NA rate in data is 7%. There is 32 factor variable and another is numeric.
When mice is running, an error occurred. Can you tell me what should I do?
Another question, when most variable class are 'factor', the speed of imputation will be very very slow, even error. Can it be solved? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions