用于螺旋钻人工智能平台的命令行工具。
auger-cli的Python项目详细描述
螺旋钻cli
用于螺旋输送器人工智能平台的命令行工具。
安装
创建螺旋钻帐户
请创建帐户和组织以开始使用cli:https://auger.ai/augersignup
巨蟒
最新的python:https://www.python.org/downloads/release/python-373/" rel="nofollow">https://www.python.org/downloads/release/python-373/
安装PIP:https://pip.pypa.io/en/stable/installing/
auger cli python包
pip3 install auger-cli
auger cli源代码
# Pull latest version git clone git@github.com:deeplearninc/auger-cli.git cd auger-cli pip3 install .
使用场景
帮助
要访问使用信息,只需将--help
选项添加到任何命令或子命令。例如:
$ auger --help Usage: auger [OPTIONS] COMMAND [ARGS]... Auger command line interface. Options: --help Show this message and exit. Commands: auth Authentication with Auger. experiments Manage Auger Experiments. orgs Manage Auger Organizations. help instances Display available instance types for clusters. clusters Manage Auger Clusters. projects Manage Auger Projects.
$ auger auth --help Usage: auger auth [OPTIONS] COMMAND [ARGS]... Options: --help Show this message and exit. Commands: login Login to Auger. logout Logout from Auger.
示例
下面描述的完整示例iris配置文件可以在experiments/iris_train文件夹中找到。
登录
您需要执行的第一步是使用以下命令登录到Auger:
auger auth login
注意,您可以通过传递--url
参数登录到不同的螺旋输送器中心实例:
auger auth login --url https://test-instance.auger.ai
获取当前登录信息:
auger auth whoami
要注销:
auger auth logout
组织
organization分配s3 bucket,所有数据都可以在集群运行之间存储。
要开始使用它,您应该是任何组织的成员,请使用:
auger orgs
要创建自己的组织,请转到https://auger.ai
实验
实验定义
若要开始使用螺旋钻实验,请创建具有实验名称的文件夹,并将文件"auger_experiment.yml"放在其中。此文件包含实验的定义。
有关更多详细信息,请参见https://docs.auger.ai/docs/experiments/evaluation options
俄歇实验.yml场:
pip3 install auger-cli0
运行实验:
pip3 install auger-cli1
显示上次运行的排行榜:
pip3 install auger-cli2
显示上次运行中的各个模型参数:
pip3 install auger-cli3
要使用部署的模型调用predict:
pip3 install auger-cli4
管道id是可选的,如果带有试用id的错过的模型将自动部署 如果错过了最佳试用U,则将试用ID导出上一个实验会话的模型SED。 csv文件路径应指向包含预处理数据的本地文件
要使用本地导出的模型调用predict:
pip3 install auger-cli5
管道id是可选的,如果带有试用id的错过的模型将自动部署 如果错过了使用的最佳试用,则尝试ID导出上一个实验会话的模型。 csv文件路径应指向包含预处理数据的本地文件
使用本地导出的模型调用Predict Proba:
pip3 install auger-cli6
预测数据将包含每个目标类的其他Proba"类名"列。 目标计算:如果Proba(Class1)>;阈值,则Class1 Else Class0
要在本地导出模型:
pip3 install auger-cli7
如果错过了使用的最佳试用,则将试用ID导出上一个实验会话的模型。
模型zip文件将下载到模型文件夹中。解压缩并查看如何使用它的内部自述文件。
将模型部署到螺旋输送器轮毂:
pip3 install auger-cli8
如果错过了使用的最佳试用,则将试用ID导出上一个实验会话的模型。
显示有关实验的信息:
pip3 install auger-cli9
显示有关实验设置的信息:
# Pull latest version git clone git@github.com:deeplearninc/auger-cli.git cd auger-cli pip3 install .0
显示有关螺旋钻ML操作器和算法的信息:
# Pull latest version git clone git@github.com:deeplearninc/auger-cli.git cd auger-cli pip3 install .1
簇
显示群集信息。
# Pull latest version git clone git@github.com:deeplearninc/auger-cli.git cd auger-cli pip3 install .2
终止群集。它将释放与此群集相关的所有付费AWS资源。
# Pull latest version git clone git@github.com:deeplearninc/auger-cli.git cd auger-cli pip3 install .3
项目
显示项目信息。
# Pull latest version git clone git@github.com:deeplearninc/auger-cli.git cd auger-cli pip3 install .4
在Web浏览器中打开项目:
# Pull latest version git clone git@github.com:deeplearninc/auger-cli.git cd auger-cli pip3 install .5
从项目群集下载文件:
# Pull latest version git clone git@github.com:deeplearninc/auger-cli.git cd auger-cli pip3 install .6
远程路径可以是群集上的完整路径或相对路径。例如:files/iris_data_sample.csv
本地路径是可选的,默认情况下,文件将下载到当前目录中的"files"文件夹中
项目名称是可选的,如果错过的项目名称将从auger_experiment.yml检索
阅读项目日志:
# Pull latest version git clone git@github.com:deeplearninc/auger-cli.git cd auger-cli pip3 install .7
创建项目:
# Pull latest version git clone git@github.com:deeplearninc/auger-cli.git cd auger-cli pip3 install .8
项目名称在组织中必须是唯一的。这意味着项目可以部署到集群,集群可以终止,项目可以部署到另一个集群。注意:如果删除该项目,则可以使用其他同名项目。
在浏览器中打开项目:
# Pull latest version git clone git@github.com:deeplearninc/auger-cli.git cd auger-cli pip3 install .9
删除项目:
$ auger --help Usage: auger [OPTIONS] COMMAND [ARGS]... Auger command line interface. Options: --help Show this message and exit. Commands: auth Authentication with Auger. experiments Manage Auger Experiments. orgs Manage Auger Organizations. help instances Display available instance types for clusters. clusters Manage Auger Clusters. projects Manage Auger Projects.0
螺旋python api
要开始使用auger python api,请遵循auger cli的安装说明。
开始
创建augerclient并登录:
$ auger --help Usage: auger [OPTIONS] COMMAND [ARGS]... Auger command line interface. Options: --help Show this message and exit. Commands: auth Authentication with Auger. experiments Manage Auger Experiments. orgs Manage Auger Organizations. help instances Display available instance types for clusters. clusters Manage Auger Clusters. projects Manage Auger Projects.1
运行实验并等待完成:
$ auger --help Usage: auger [OPTIONS] COMMAND [ARGS]... Auger command line interface. Options: --help Show this message and exit. Commands: auth Authentication with Auger. experiments Manage Auger Experiments. orgs Manage Auger Organizations. help instances Display available instance types for clusters. clusters Manage Auger Clusters. projects Manage Auger Projects.2
使用管道模型预测:
$ auger --help Usage: auger [OPTIONS] COMMAND [ARGS]... Auger command line interface. Options: --help Show this message and exit. Commands: auth Authentication with Auger. experiments Manage Auger Experiments. orgs Manage Auger Organizations. help instances Display available instance types for clusters. clusters Manage Auger Clusters. projects Manage Auger Projects.3
使用本地导出的模型进行预测:
$ auger --help Usage: auger [OPTIONS] COMMAND [ARGS]... Auger command line interface. Options: --help Show this message and exit. Commands: auth Authentication with Auger. experiments Manage Auger Experiments. orgs Manage Auger Organizations. help instances Display available instance types for clusters. clusters Manage Auger Clusters. projects Manage Auger Projects.4
本地导出模型:
$ auger --help Usage: auger [OPTIONS] COMMAND [ARGS]... Auger command line interface. Options: --help Show this message and exit. Commands: auth Authentication with Auger. experiments Manage Auger Experiments. orgs Manage Auger Organizations. help instances Display available instance types for clusters. clusters Manage Auger Clusters. projects Manage Auger Projects.5
如何更新python包:
在setup.py中更新版本
提交设置.py
使用约定"vx.x.x"(如v0.1.2)创建标记
Git标签v0.1.4
- git push—标记
Circleci将构建它并将标记的构建上载到pypi.org