diff options
Diffstat (limited to 'lib/parameters.py')
-rw-r--r-- | lib/parameters.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/parameters.py b/lib/parameters.py index 00ab70a..45a577b 100644 --- a/lib/parameters.py +++ b/lib/parameters.py @@ -1286,8 +1286,11 @@ class ModelAttribute: ) ) ) + assert len(child_indexes[-1]) > 0 - if len(list(filter(len, child_indexes))) <= 1: + assert len(child_indexes) != 0 + + if len(child_indexes) == 1: # this param only has a single value. there's no point in splitting. loss.append(np.inf) continue |