diff --git a/benchmarks/ridge/objective.py b/benchmarks/ridge/objective.py index 4681241..0c34844 100644 --- a/benchmarks/ridge/objective.py +++ b/benchmarks/ridge/objective.py @@ -95,10 +95,7 @@ def evaluate_result(self, weights, intercept, n_iter, **solver_parameters): if not (isinstance(n_iter, numbers.Number) or (n_iter is None)): n_iter = set(n_iter) if len(n_iter) > 1: - raise ValueError( - "In multitarget mode, the same number of iterations is expected " - "for all targets, to keep reports comparable." - ) + n_iter = max(n_iter) n_iter = n_iter.pop() # NB: str for n_iter is a more practical type because it enables diff --git a/benchmarks/ridge/solvers/scikit_learn.py b/benchmarks/ridge/solvers/scikit_learn.py index 8a0c76b..971a76d 100644 --- a/benchmarks/ridge/solvers/scikit_learn.py +++ b/benchmarks/ridge/solvers/scikit_learn.py @@ -46,7 +46,7 @@ def skip(self, **objective_dict): ) if solver == "DefaultDense": - return True, "No support this solver parameter." + return True, "No support for this solver parameter." return False, None diff --git a/benchmarks/ridge/solvers/scikit_learn_intelex.py b/benchmarks/ridge/solvers/scikit_learn_intelex.py index 571705a..02445bb 100644 --- a/benchmarks/ridge/solvers/scikit_learn_intelex.py +++ b/benchmarks/ridge/solvers/scikit_learn_intelex.py @@ -51,7 +51,7 @@ def skip(self, **objective_dict): if solver != "DefaultDense": # TODO: investigate ? - return True, "DefaultDense is the only supported solver parameter." + return True, "The only supported solver parameter is DefaultDense." return False, None