Skip to content

Commit d1d432a

Browse files
stephantulPringled
andauthored
Update model2vec/model.py
Co-authored-by: Thomas van Dongen <thomas123@live.nl>
1 parent fe1b450 commit d1d432a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

model2vec/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def normalize(self, value: bool) -> None:
6868
"""Update the config if the value of normalize changes."""
6969
config_normalize = self.config.get("normalize", False)
7070
self._normalize = value
71-
if config_normalize is not None and value != config_normalize:
71+
if value != config_normalize:
7272
logger.warning(
7373
f"Set normalization to `{value}`, which does not match config value `{config_normalize}`. Updating config."
7474
)

0 commit comments

Comments
 (0)