LKCell / base_ml /base_validator.py
xiazhi1
initial commit
aea73e2
raw
history blame contribute delete
No virus
425 Bytes
# -*- coding: utf-8 -*-
# Validators
#
# @ Fabian Hörst, [email protected]
# Institute for Artifical Intelligence in Medicine,
# University Medicine Essen
from schema import Schema, Or
sweep_schema = Schema(
{
"method": Or("grid", "random", "bayes"),
"name": str,
"metric": {"name": str, "goal": Or("maximize", "minimize")},
"run_cap": int,
},
ignore_extra_keys=True,
)