Remove legacy utils/ml/utils.py func.
@@ -78,46 +78,6 @@ def check_for_nans_in_parameters(model, check_gradients=True):
return False
-def check_required_data(method, r_xz, t_xz0, t_xz1, theta0, theta1, x, y):
- data_is_there = True
- if x is None:
- data_is_there = False
- if (
- method
- in {
- "carl",
- "carl2",
- "nde",
- "scandal",
- "rolr",
- "alice",
- "rascal",
- "alices",
- "rolr2",
- "alice2",
- "rascal2",
- "alices2",
- }
- and theta0 is None
- ):
- data_is_there = False
- if method in {"rolr", "alice", "rascal", "alices", "rolr2", "alice2", "rascal2", "alices2"} and r_xz is None:
- data_is_there = False
- if (
- method in {"carl", "carl2", "rolr", "alice", "rascal", "alices", "rolr2", "alice2", "rascal2", "alices2"}
- and y is None
- ):
- data_is_there = False
- if method in {"scandal", "rascal", "alices", "rascal2", "alices2", "sally", "sallino"} and t_xz0 is None:
- data_is_there = False
- if method in {"carl2", "rolr2", "alice2", "rascal2", "alices2"} and theta1 is None:
- data_is_there = False
- if method in {"rascal2", "alices2"} and t_xz1 is None:
- data_is_there = False
-
- return data_is_there
-
-
def get_optimizer(optimizer, nesterov_momentum):
opt_kwargs = None
if optimizer == "adam":
