Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@pass_context
def review(ctx, provider, model_id, output):
"""Predict with deployed model."""
A2MLModel(ctx, provider).review(model_id)
@pass_context
def cmdl(ctx, provider, model_id, locally, review):
"""Deploy trained model."""
ctx.setup_logger(format='')
A2ML(ctx, provider).deploy(model_id, locally, review)
@pass_context
def cmdl(ctx):
"""Dataset(s) management"""
ctx.setup_logger(format='')
@pass_context
def whoami(ctx, provider):
"""Display the current logged in user."""
ctx.setup_logger(format='')
AuthCmd(ctx, provider).whoami()
@pass_context
def cmdl(ctx, provider, filename, model_id, threshold, locally, output):
"""Predict with deployed model."""
ctx.setup_logger(format='')
A2ML(ctx, provider).predict(
filename, model_id, threshold=threshold, locally=locally, output=output)
@pass_context
def cmdl(ctx, run_id, provider):
"""Evaluate models after training."""
ctx.setup_logger(format='')
A2ML(ctx, provider).evaluate(run_id)
@pass_context
def add_commands(ctx):
cmdl.add_command(deploy)
cmdl.add_command(predict)
cmdl.add_command(actuals)
cmdl.add_command(review)
@pass_context
def cmdl(ctx):
"""Model management"""
ctx.setup_logger(format='')
@pass_context
def delete(ctx, provider, name):
"""Delete Project"""
A2MLProject(ctx, provider).delete(name)
@pass_context
def add_commands(ctx):
cmdl.add_command(list_cmd, name='list')
cmdl.add_command(create)
cmdl.add_command(delete)
cmdl.add_command(select)