Created
March 17, 2021 15:37
-
-
Save oscar-defelice/960865fbb5f0e4eac342346fe9abfea0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# estimator.py | |
import click | |
from utils import read_config, train | |
@click.command() | |
@click.argument('operation') | |
@click.option('--conf', type=click.Path(exists=True)) | |
def main(operation, conf): | |
click.echo(f"{operation} started") | |
if operation == 'train': | |
config = read_config(conf) | |
train(config) | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment