Open daskol opened 1 year ago
Option groups ignores empty prefix (empty string '' behaves like None) for option names.
''
None
class LearningOptions(Group): batch_size: int = 256 learning_rate: float = 1e-1 class Namespace(Parser): learning_opts = LearningOptions(title='learning options', prefix='')
Expected options are following.
learning options: --batch-size BATCH_SIZE (default: 256) --learning-rate LEARNING_RATE (default: 0.1)
Actually we have these options.
learning options: --learning-opts-batch-size LEARNING_OPTS_BATCH_SIZE (default: 256) --learning-opts-learning-rate LEARNING_OPTS_LEARNING_RATE (default: 0.1)
Option groups ignores empty prefix (empty string
''
behaves likeNone
) for option names.Expected options are following.
Actually we have these options.