代码拉取完成,页面将自动刷新
NNI (Neural Network Intelligence) 是自动机器学习(AutoML)的工具包。 它通过多种调优的算法来搜索最好的神经网络结构和(或)超参,并支持单机、本地多机、云等不同的运行环境。
支持的框架和库 | 调优算法 | 训练平台 | |
内置 |
|
Tuner(调参器) Assessor(评估器) | |
参考 |
以开发和先进技术为目标,Microsoft Research (MSR) 发布了一些开源项目。
我们鼓励研究人员和学生利用这些项目来加速 AI 开发和研究。
通过 pip 命令安装
python >= 3.5
的环境中,只需要运行 pip install
即可完成安装。Linux 和 macOS
python3 -m pip install --upgrade nni
Windows
python -m pip install --upgrade nni
注意:
--user
,这样也不需要任何特殊权限。Segmentation fault
这样的任何错误请参考常见问题。通过源代码安装
Linux 和 macOS
python >= 3.5
的环境中运行命令: git
和 wget
,确保安装了这两个组件。 git clone -b v1.0 https://github.com/Microsoft/nni.git
cd nni
source install.sh
Windows
python >=3.5
的环境中运行命令: git
和 PowerShell
,确保安装了这两个组件。 git clone -b v1.0 https://github.com/Microsoft/nni.git
cd nni
powershell -ExecutionPolicy Bypass -file install.ps1
参考安装 NNI 了解系统需求。
Windows 上参考 Windows 上使用 NNI。
验证安装
以下示例 Experiment 依赖于 TensorFlow 。 在运行前确保安装了 TensorFlow。
git clone -b v1.0 https://github.com/Microsoft/nni.git
Linux 和 macOS
nnictl create --config nni/examples/trials/mnist/config.yml
Windows
nnictl create --config nni\examples\trials\mnist\config_windows.yml
INFO: Successfully started experiment!
。 此消息表明 Experiment 已成功启动。 通过命令行输出的 Web UI url
来访问 Experiment 的界面。INFO: Starting restful server...
INFO: Successfully started Restful server!
INFO: Setting local config...
INFO: Successfully set local config!
INFO: Starting experiment...
INFO: Successfully started experiment!
-----------------------------------------------------------------------
The experiment id is egchD4qy
The Web UI urls are: http://223.255.255.1:8080 http://127.0.0.1:8080
-----------------------------------------------------------------------
You can use these commands to get more information about the experiment
-----------------------------------------------------------------------
commands description
1. nnictl experiment show show the information of experiments
2. nnictl trial ls list all of trial jobs
3. nnictl top monitor the status of running experiments
4. nnictl log stderr show stderr log content
5. nnictl log stdout show stdout log content
6. nnictl stop stop an experiment
7. nnictl trial kill kill a trial job by id
8. nnictl --help get help information about nnictl
-----------------------------------------------------------------------
Web UI url
,可看到下图的 Experiment 详细信息,以及所有的 Trial 任务。 查看这里的更多页面。主要文档都可以在这里找到,文档均从本代码库生成。
点击阅读:
非常欢迎通过各种方式参与此项目,例如:
在编写代码前,可以先看看贡献指南来了解更多信息。 此外,还提供了以下文档:
经作者许可的一些 NNI 用法示例和相关文档。
代码库遵循 MIT 许可协议
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。