Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Feature: quick CLIs #390
This feature adds functionality to build quick CLIs for scripts based on skorch. The intent is to encourage users to adopt skorch by reducing the boilerplate required to make experiments reproducible.
This basically leverages the features of fire to automatically create CLIs. In combination with skorch, almost all possible model parameters are immediately available via the command line, without all the boilerplate typically required to parse the arguments. This way, things like
Furthermore, if there are docstrings in the numpydoc format, those can be displayed via
A restriction right now is passing complex python objects via the command line. Things like
I have my own utility class that helps me to minimize CLI boilerplate. It's not as advanced when it comes to automatic discovery of parameters, so I need to manually add module parameters that are of interest. On the other hand, it helps me organize my
I guess what I want to say is, sure, a CLI helper is great to have and can give a productivity boost. Unfortunately I don't have enough time to play with your proposed implementation now. Nevertheless, it looks good and relies on an established third-party library, so I only see benefits in including this.
Thanks for the feedback.
This sounds like something that could be combined with the current feature. Do you think that would be a good idea?