Skip to content

Commit

Permalink
Merge pull request #43 from WenjieDu/dev
Browse files Browse the repository at this point in the history
Fix wrong argument order
  • Loading branch information
WenjieDu authored Aug 13, 2024
2 parents fa47c6b + 8c2db20 commit f07e041
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygrinder/missing_at_random/mar_logistic.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def mar_logistic(
X = np.asarray(X)

if isinstance(X, np.ndarray) or isinstance(X, torch.Tensor):
corrupted_X = _mar_logistic_torch(X, missing_rate, obs_rate)
corrupted_X = _mar_logistic_torch(X, obs_rate, missing_rate)
else:
raise TypeError(
f"X must be type of list/numpy.ndarray/torch.Tensor, but got {type(X)}"
Expand Down

0 comments on commit f07e041

Please sign in to comment.