Skip to content

Commit

Permalink
fi_random_state_fix (#1182)
Browse files Browse the repository at this point in the history
* fi_random_state_fix

* fi_random_state_fix
  • Loading branch information
JKL98ISR committed Apr 5, 2022
1 parent c824e77 commit e229d89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepchecks/utils/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def calculate_feature_importance(
# TODO: maybe it is better to split it into two functions, one for dataframe instances
# second for dataset instances
permutation_kwargs = permutation_kwargs or {}
permutation_kwargs['random_state'] = permutation_kwargs.get('random_state') or 42
permutation_kwargs['random_state'] = permutation_kwargs.get('random_state', 42)
validation.validate_model(dataset, model)
permutation_failure = None
calc_type = None
Expand Down

0 comments on commit e229d89

Please sign in to comment.