-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adapt prop, patterns and weights matrices for pattern with only 1's, and adding warnings when patterns cannot be generated (#449, #317) #451
Conversation
sorry for chipping in again, just wanted to mention an issue imho that is slightly related to the check.patterns Lines 258 to 270 in 2cd32a7
is it possible that the Lines 505 to 521 in 2cd32a7
leads to division by 0 for rows of ones thus is always true? but maybe I'm wrong. sorry for bothering again |
@RianneSchouten sorry it's me again 😄 I now pretty much finished porting the ampute functionality to a different ML system and one additional question came up for me: It would be why the proportion adjustment for cellwise amputation (bycases = FALSE) in recalculate.prop is using n^2 (n = ncol(data) when being called)? Lines 514 to 530 in 6b2be70
shouldnt it be cheers Bernhard |
Again, you are right. Can I ask, to which ML system are you porting the function? Bests, |
sure. for a university project I'm porting it to https://github.com/apache/systemds which is ran under the open source Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0) and has its own R-like script language. I hope that is okay in terms of legality? |
@stefvanbuuren @gerkovink is it possible to accept this PR? |
Dear Stef, dear Gerko,
I have made adjustments in ampute() regarding the calculation of prop, patterns and weights in the situation that a user specifies a pattern with only 1s (issue #449). I have furthermore added unittests and evaluated that all other tests work.
Can you accept my pull request?
Thank you,
Rianne