-
Notifications
You must be signed in to change notification settings - Fork 6
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
missing 9 required positional arguments: 'explanation_location_train', ... #3
Comments
Hi, thanks for reporting the bug. I've corrected it by modifying the code slightly. |
Thanks, however, it seems another bug appear when run cell: def generate_mask(num_players: int, num_mask_samples: int or None = None, paired_mask_samples: bool = True,
mode: str = 'uniform', random_state: np.random.RandomState or None = None) -> np.array:
"""
Args:
num_players: the number of players in the coalitional game
num_mask_samples: the number of masks to generate
paired_mask_samples: if True, the generated masks are pairs of x and 1-x.
mode: the distribution that the number of masked features follows. ('uniform' or 'shapley')
random_state: random generator
Returns:
torch.Tensor of shape
(num_masks, num_players) if num_masks is int
(num_players) if num_masks is None
"""
random_state = random_state or np.random bug:
and I have the same problem when I try command in python main.py with 'stage = "classifier"' \
'wandb_project_name = "wandb_transformer_interpretability_project"' 'exp_name = "ImageNette_classifier_vit_small_patch16_224_1e-5_train"' \
env_chanwkim 'gpus_classifier=[0]' \
dataset_ImageNette \
'classifier_backbone_type = "vit_small_patch16_224"' 'classifier_download_weight = True' 'classifier_load_path = None' \
training_hyperparameters_transformer 'checkpoint_metric = "accuracy"' 'learning_rate = 1e-5' report bug:
|
Hi, can you help debug this error? thanks. |
I've found that this error occurs when the |
Hi, I use |
I am not sure when the |
Hi there, thanks for your great work. When I run
1_surrogate_sanity_check.ipynb
, when turning to the 5-th cell:It reports bugs:
I tried to print
_config
and I find:these values are set as None. How can I modify the bug?
The text was updated successfully, but these errors were encountered: