You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What's mentioned in the docstring actually isn't true, a namedtuple is actually just a shortcut for creating a python class. You can subtype or just define the magic methods on it directly.
While looking through the code to figure out handling of label segmentation I saw this bit:
What's mentioned in the docstring actually isn't true, a
namedtuple
is actually just a shortcut for creating a python class. You can subtype or just define the magic methods on it directly.So something like:
Should be perfectly legal, no esoteric messing around is needed here to get that behavior. This might make the interface cleaner.
The text was updated successfully, but these errors were encountered: