Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass in function arguments from the terminal #21

Closed
rlnsanz opened this issue Nov 30, 2018 · 0 comments
Closed

Pass in function arguments from the terminal #21

rlnsanz opened this issue Nov 30, 2018 · 0 comments

Comments

@rlnsanz
Copy link
Collaborator

rlnsanz commented Nov 30, 2018

The formal parameters of a function should be configurable from the terminal. For example, if we have a function defined as:

@flor.track
def fit_and_score_model(gamma, C, test_size, random_state):
    ...

Then when we run the script from the terminal, the input arguments should be flaggable:

python iris.py --gamma 0.001 --C 100.0 --test_size 0.15 --random_state 42

If the function argument names are the same across functions, we'll need some way to disambiguate the names. A possible solution is to prefix the function name in the flag, much like in SQL we would prefix the name of the table when a column name appears in more than one table in the FROM clause.

@rlnsanz rlnsanz closed this as completed Apr 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant