From a783922e24d77fb6d142d106c1837d0482fcfff0 Mon Sep 17 00:00:00 2001 From: zhileiz1992 <144953579+zhileiz1992@users.noreply.github.com> Date: Mon, 2 Oct 2023 19:22:45 -0400 Subject: [PATCH] BUG: Fix default for post_tfm_kwargs, fixes #697 (#710) * BUG: fix default for post_tfm_kwargs, fixes Inconsistent syllable error rate between vak eval and predict #697 --------- Co-authored-by: zz367 --- src/vak/config/eval.py | 2 +- src/vak/config/learncurve.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vak/config/eval.py b/src/vak/config/eval.py index cc0bbe996..471680795 100644 --- a/src/vak/config/eval.py +++ b/src/vak/config/eval.py @@ -128,7 +128,7 @@ class EvalConfig: post_tfm_kwargs = attr.ib( validator=validators.optional(are_valid_post_tfm_kwargs), converter=converters.optional(convert_post_tfm_kwargs), - default={}, # empty dict so we can pass into transform with **kwargs expansion + default=None, # empty dict so we can pass into transform with **kwargs expansion ) # optional, data loader diff --git a/src/vak/config/learncurve.py b/src/vak/config/learncurve.py index a70ba22b2..379553f67 100644 --- a/src/vak/config/learncurve.py +++ b/src/vak/config/learncurve.py @@ -74,5 +74,5 @@ class LearncurveConfig(TrainConfig): post_tfm_kwargs = attr.ib( validator=validators.optional(are_valid_post_tfm_kwargs), converter=converters.optional(convert_post_tfm_kwargs), - default={}, # empty dict so we can pass into transform with **kwargs expansion + default=None, # empty dict so we can pass into transform with **kwargs expansion )