Skip to content

Commit

Permalink
fix: wrong argument order;
Browse files Browse the repository at this point in the history
  • Loading branch information
WenjieDu committed Aug 13, 2024
1 parent 0d11d60 commit 8c2db20
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 8c2db20

Please sign in to comment.