How to use the a2ml.api.utils.context.pass_context function in a2ml

To help you get started, we’ve selected a few a2ml examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github augerai / a2ml / a2ml / cmdl / commands / cmd_model.py View on Github external
@pass_context
def review(ctx, provider, model_id, output):
    """Predict with deployed model."""
    A2MLModel(ctx, provider).review(model_id)
github augerai / a2ml / a2ml / cmdl / commands / cmd_deploy.py View on Github external
@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)
github augerai / a2ml / a2ml / cmdl / commands / cmd_dataset.py View on Github external
@pass_context
def cmdl(ctx):
    """Dataset(s) management"""
    ctx.setup_logger(format='')
github augerai / a2ml / a2ml / cmdl / commands / cmd_auth.py View on Github external
@pass_context
def whoami(ctx, provider):
    """Display the current logged in user."""
    ctx.setup_logger(format='')
    AuthCmd(ctx, provider).whoami()
github augerai / a2ml / a2ml / cmdl / commands / cmd_predict.py View on Github external
@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)
github augerai / a2ml / a2ml / cmdl / commands / cmd_evaluate.py View on Github external
@pass_context
def cmdl(ctx, run_id, provider):
    """Evaluate models after training."""
    ctx.setup_logger(format='')
    A2ML(ctx, provider).evaluate(run_id)
github augerai / a2ml / a2ml / cmdl / commands / cmd_model.py View on Github external
@pass_context
def add_commands(ctx):
    cmdl.add_command(deploy)
    cmdl.add_command(predict)
    cmdl.add_command(actuals)
    cmdl.add_command(review)
github augerai / a2ml / a2ml / cmdl / commands / cmd_model.py View on Github external
@pass_context
def cmdl(ctx):
    """Model management"""
    ctx.setup_logger(format='')
github augerai / a2ml / a2ml / cmdl / commands / cmd_project.py View on Github external
@pass_context
def delete(ctx, provider, name):
    """Delete Project"""
    A2MLProject(ctx, provider).delete(name)
github augerai / a2ml / a2ml / cmdl / commands / cmd_project.py View on Github external
@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)