签名CLI
signate的Python项目详细描述
SIGNATE CLI
SIGNATE的官方API命令行接口(以下:SIGNATE CLI)。
SIGNATE是以Data Science Compoetition的提供为首,为数据科学的各位提供的综合平台。
^{str1$※SIGNATE CLI的动作需要Python 3.6以后的环境。
※本CLI为β版,有可能不经预告而变更。请事先谅解。
※SIGNATE CLI支持Mac OS及Linux。
^{str1}安装和事前准备
请使用以下命令安装。$ pip install signate
安装后,请执行以下步骤。
-
在
- SIGNATE中注册账户
- 注册账户后,单击アカウント設定画面的“API Token”的“创建” 创建新的列表
- 将获取的API Token放置在^{cd2>}正下方
*在SIGNATE CLI上也可以取得API Token。详情请参照“使用方法”⑤。
*在SNS注册会员时,仅在アカウント設定画面中可获取API Token。
如果用以下命令显示帮助,则使用准备结束。
$ signate --help
^{cd3>}显示时,请确认环境变量$PATH的目录内是否存在signate。在<4>命令中
- 确认安装有signate命令的目录
- signate命令的卸载
。
使用方法>> 在SIGNATE CLI中可以使用以下功能。$ signate --help Usage: signate [OPTIONS] COMMAND [ARGS]... Options: --help Show this message and exit. Commands: download Download the file of competition files List file of competition list List competition submit Submit a result file to the competition token Download the API Token
^{str1}获取可投稿的竞赛列表
$ signate list
显示可投稿的竞赛列表。
$ signate list competitionId title closing prize participants ------------- ---------------- ------------------- --------- -------------- 1 a-ai-competition - $200,00 1002 b-ai-competition 2019-12-31 Knowledge 50 ……
^{str1}$②获取竞赛提供的文件列表
$ signate files --competition-id=<competition-id>
显示竞赛提供的文件列表。
$ signate files --competition-id=1 fileId name title size updated_at -------- ----------------- -------------- ------- ------------------- 1 train.csv 学習用データ 23450672016-05-31 11:19:48 2 test.csv 検証用データ 1523536 ……
^{str1}$③下载由竞赛提供的文件
^{str1}使用这个功能的话,需要同意参加竞赛(同意前)。
详情请确认補足 コンペティションへの同意。
$ signate download --competition-id=<competition-id>
下载竞赛提供的文件。
默认情况下,文件将被下载到当前目录。
如果只指定了comption-id,该竞赛提供的所有文件都将被下载。
$ signate download --competition-id=1 submit_sample.csv 100% [.................................................................]205890 / 205890 test.csv 100% [.................................................................]1523536 / 1523536 train.csv 100% [.................................................................]2345067 / 2345067 Download completed.
如下所示,可以指定下载文件和指定下载路径。
$ signate download --competition-id=1 --file-id=1 --path=/Users/[user_name]/Desktop/ train.csv 100% [.................................................................]2345067 / 2345067 Download completed.
^{str1}$④数据集的提交
^{str1}使用这个功能的话,需要同意参加竞赛(同意前)。
详情请确认補足 コンペティションへの同意。
signate submit --competition-id=<competition-id> <結果ファイルのパス>
向竞赛提交数据集。
$ signate submit --competition-id=1 /Users/[user_name]/Desktop/result.csv You have successfully submitted your predictions. We will send you the submission result to your email address.
可以留下评论。
$ signate submit --competition-id=1 /Users/[user_name]/Desktop/result.csv --note 頑張りました You have successfully submitted your predictions. We will send you the submission result to your email address.
^{str1}$⑤获得APIToken
执行API令牌获取命令,通过API获取访问所需的令牌。
$ signate token --email=事前準備で登録したemail --password=事前準備で登録したパスワード The Api Token successfully downloaded.
^{str1}美元补充
同意竞赛
当输出以下消息时
You have not accepted the competition terms of use!
Do you accept the competition terms of use?
Please read the terms of use before accepting: https://signate.jp/competitions/*#terms
[y/N]:
请阅读链接地址,输入^
简介输入不足
You have not filled in user infomation to join the competition. Go to https://signate.jp/profile.
如果显示了的信息,请访问SIGNATE,输入个人简介。
^{str1}美元许可证
SIGNATE CLI适用Apache 2.0 license。
- 项目
标签: