E-IG0001 — Category label with no labels
Error Type |
|
|---|---|
Phase |
generating random instance data |
Python exception |
|
Message
Cannot generate a random value for category label `{name}`: it has no labels defined
Possible fix: give `{name}` a non-empty keys list or a size of at least 1 in the generation options.
Cause
Random instance generation needed to pick a value for a category label, but the label set defined for it is empty, so there is nothing to choose from.
Fix
Provide at least one label for the category label via the options argument of Problem.generate_random_dataset — either list the labels explicitly, e.g. options={"L": {"keys": ["a", "b"]}}, or request a positive number of generated labels, e.g. options={"L": {"size": range(1, 5)}}.