From e95d9498599d4b97aa5c5dc23f353652a9467ca1 Mon Sep 17 00:00:00 2001 From: zz367 Date: Sun, 1 Oct 2023 13:35:35 -0400 Subject: [PATCH] BUG: fix default for post_tfm_kwargs, fixes Inconsistent syllable error rate between vak eval and predict #697 --- 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 )