Skip to content

Commit

Permalink
Merge pull request #13 from sparks-baird/non-verbose-test
Browse files Browse the repository at this point in the history
Non verbose test
  • Loading branch information
sgbaird authored Jul 29, 2022
2 parents 426a23c + 0b73241 commit b14807e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/test_matbench_genmetrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,21 @@ def test_mpts_metrics():
print(mptm.recorded_metrics)


def test_non_verbose():
mptm = MPTSMetrics(dummy=True, verbose=False)
fold = mptm.folds[0]
train_val_inputs = mptm.get_train_and_val_data(fold)

np.random.seed(10)
dg = DummyGenerator()
dg.fit(train_val_inputs)
gen_structures = dg.gen(n=2)

mptm.evaluate_and_record(fold, gen_structures)

print(mptm.recorded_metrics)


# %% Code Graveyard
# def flatten_params(
# fixtures: List[Callable], expecteds: List[dict]
Expand Down

0 comments on commit b14807e

Please sign in to comment.