Skip to content

Commit ae8a056

Browse files
committed
Merge branch 'feature/inference_flavor' of https://github.com/Helmholtz-AI-Energy/special-couscous into feature/inference_flavor
2 parents 505b915 + 5b41e42 commit ae8a056

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

tests/test_evaluate_from_checkpoint.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
"random_state_model",
2323
[17, None],
2424
)
25-
def test_evaluate_from_checkpoint(random_state_model: int , mpi_tmp_path: pathlib.Path) -> None:
25+
def test_evaluate_from_checkpoint(
26+
random_state_model: int, mpi_tmp_path: pathlib.Path
27+
) -> None:
2628
"""
2729
Test parallel evaluation of random forest from pickled model checkpoints.
2830
@@ -106,8 +108,7 @@ def test_evaluate_from_checkpoint(random_state_model: int , mpi_tmp_path: pathli
106108
output_path=output_dir, experiment_id=experiment_id
107109
)
108110
if comm.rank == 0:
109-
log.info(
110-
f"EVALUATION: Checkpoint path is {checkpoint_path}.")
111+
log.info(f"EVALUATION: Checkpoint path is {checkpoint_path}.")
111112

112113
evaluate_parallel_from_checkpoint(
113114
n_samples=n_samples,

tests/test_rf_parallel_synthetic.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
"random_state_model",
1717
[17, None],
1818
)
19-
def test_parallel_synthetic(random_state_model: int, mpi_tmp_path: pathlib.Path) -> None:
19+
def test_parallel_synthetic(
20+
random_state_model: int, mpi_tmp_path: pathlib.Path
21+
) -> None:
2022
"""
2123
Test parallel training of random forest on synthetic data.
2224

0 commit comments

Comments
 (0)