Skip to content

Commit

Permalink
Change copy to deepcopy
Browse files Browse the repository at this point in the history
  • Loading branch information
ccanel committed Feb 7, 2024
1 parent 085bf0f commit 1851068
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion unfair/model/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ def test(
dat_in,
dat_out_classes,
dat_extra,
graph_prms=copy.copy({"sort_by_unfairness": True, "dur_s": None}),
graph_prms=copy.deepcopy({"sort_by_unfairness": True, "dur_s": None}),
):
"""
Tests this model on the provided dataset and returns the test accuracy
Expand Down
2 changes: 1 addition & 1 deletion unfair/model/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ def prepare_args(args_):
# any manually-specified values. This allows the caller to specify values
# only for parameters that they care about while ensuring that all
# parameters have values.
args = copy.copy(defaults.DEFAULTS)
args = copy.deepcopy(defaults.DEFAULTS)
args.update(args_)
return args

Expand Down

0 comments on commit 1851068

Please sign in to comment.