INNER CODE UNIT · Python

GroupParams

jayin92/Skyfall-GS · arguments/__init__.py:30

class GroupParams:
    """Empty class to hold extracted parameter groups."""
    pass


class ParamGroup:
    """Base class for parameter groups with automatic argument parsing."""
    
    def __init__(self, parser: ArgumentParser, name: str, fill_none: bool = False):
        """
        Initialize parameter group and add arguments to parser.
        
        Args:
            parser: ArgumentParser to add arguments to
            name: Name of the argument group
            fill_none: If True, set all defaults to None
        """
        group = parser.add_argument_group(name)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…