Fix params being changed during pipeline.eval() (#2638)

This commit is contained in:
tstadel 2022-06-08 19:43:09 +02:00 committed by GitHub
parent 374155fd5c
commit 293a3b53d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1109,6 +1109,8 @@ class Pipeline:
if add_isolated_node_eval:
if params is None:
params = {}
else:
params = params.copy()
params["add_isolated_node_eval"] = True
# if documents is None, set docs_per_label to None for each label