Skip to content

Commit 11fb1a3

Browse files
authored
Merge branch 'master' into hsic
2 parents 490fdb3 + 653fb9e commit 11fb1a3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ignite/handlers/mlflow_logger.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,15 +245,15 @@ def __call__(self, engine: Engine, logger: MLflowLogger, event_name: Union[str,
245245
)
246246

247247
# Additionally recheck metric names as MLflow rejects non-valid names with MLflowException
248-
from mlflow.utils.validation import _VALID_PARAM_AND_METRIC_NAMES
248+
from mlflow.utils.validation import validate_param_and_metric_name
249249

250250
metrics = {}
251251
for keys, value in rendered_metrics.items():
252252
key = " ".join(keys)
253253
metrics[key] = value
254254

255255
for key in list(metrics.keys()):
256-
if not _VALID_PARAM_AND_METRIC_NAMES.match(key):
256+
if not validate_param_and_metric_name(key):
257257
warnings.warn(
258258
f"MLflowLogger output_handler encountered an invalid metric name '{key}' that "
259259
"will be ignored and not logged to MLflow"

ignite/handlers/wandb_logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def __getattr__(self, attr: Any) -> Any:
141141
return getattr(self._wandb, attr)
142142

143143
def close(self) -> None:
144-
self._wandb.finish() # type: ignore[attr-defined]
144+
self._wandb.finish()
145145

146146
def _create_output_handler(self, *args: Any, **kwargs: Any) -> "OutputHandler":
147147
return OutputHandler(*args, **kwargs)

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ tensorboardX
1717
visdom
1818
polyaxon
1919
wandb
20-
mlflow<2.16.0 # https://github.com/pytorch/ignite/issues/3277
20+
mlflow
2121
neptune-client>=0.16.17
2222
tensorboard
2323
torchvision

0 commit comments

Comments
 (0)