We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe1b450 commit d1d432aCopy full SHA for d1d432a
1 file changed
model2vec/model.py
@@ -68,7 +68,7 @@ def normalize(self, value: bool) -> None:
68
"""Update the config if the value of normalize changes."""
69
config_normalize = self.config.get("normalize", False)
70
self._normalize = value
71
- if config_normalize is not None and value != config_normalize:
+ if value != config_normalize:
72
logger.warning(
73
f"Set normalization to `{value}`, which does not match config value `{config_normalize}`. Updating config."
74
)
0 commit comments