Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Update Chinese Translation #2871

Merged
merged 2 commits into from
Sep 18, 2020
Merged

Update Chinese Translation #2871

merged 2 commits into from
Sep 18, 2020

Conversation

JunweiSUN
Copy link
Contributor

No description provided.

@@ -0,0 +1,221 @@
# 超参数优化的对比
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

refer to guidance to remove deleted files.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed.

@@ -0,0 +1,44 @@

# 在 Google Colab 上使用 NNI
NNI 可以轻易地在 Google Colab 平台上运行。 然而,Colab 没有暴露它的公网 IP 及端口,因此默认情况下无法在 Colab 中访问 NNI 的 Web 界面。 为解决此问题,需要使用反向代理软件,例如 `ngrok` 或 `frp`。 此教程将展示如何使用 ngrok 在 Colab 上访问 NNI 的Web 界面。
Copy link
Member

@squirrelsc squirrelsc Sep 7, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NNI 可以轻易地在 Google Colab 平台上运行。

->

在 Google Colab 上可运行 NNI。

# 在 Google Colab 上使用 NNI
NNI 可以轻易地在 Google Colab 平台上运行。 然而,Colab 没有暴露它的公网 IP 及端口,因此默认情况下无法在 Colab 中访问 NNI 的 Web 界面。 为解决此问题,需要使用反向代理软件,例如 `ngrok` 或 `frp`。 此教程将展示如何使用 ngrok 在 Colab 上访问 NNI 的Web 界面。

## 如何在 Google Colab 上打开 NNI 的Web 界面
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add whitespace at left side of Web

! git clone https://github.com/microsoft/nni.git nni_repo/nni # clone NNI's offical repo to get examples
```

2. 在[此处](https://ngrok.com/)注册 ngrok 账号,之后使用 authtoken 来连接到账号。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

之后使用 authtoken 来连接到账号。

->

然后通过 authtoken 来连接。

! ./ngrok authtoken <your-authtoken>
```

3. 在大于 1024 的端口号上启动 NNI 样例,之后在相同端口上启动 ngrok。 如果希望使用GPU,确保 config.yml 中 gpuNum >= 1 。 使用 `get_ipython()` 来启动 ngrok 。因为使用 `! ngrok http 5000 &` 会卡住。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add whitespaces around GPU

! ./ngrok authtoken <your-authtoken>
```

3. 在大于 1024 的端口号上启动 NNI 样例,之后在相同端口上启动 ngrok。 如果希望使用GPU,确保 config.yml 中 gpuNum >= 1 。 使用 `get_ipython()` 来启动 ngrok 。因为使用 `! ngrok http 5000 &` 会卡住。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

使用 get_ipython() 来启动 ngrok 。因为使用 ! ngrok http 5000 & 会卡住。

->

因为使用 ! ngrok http 5000 & 会停止响应,要使用 get_ipython() 来启动 ngrok。

@@ -47,7 +47,8 @@ nnictl create --config examples/trials/mnist-tfv1/config.yml
#### TypeScript

* 如改动了 `src/nni_manager`,在此目录下运行 `yarn watch` 可持续编译改动。 它将持续的监视并编译代码。 可能需要重启 `nnictl` 来重新加载 NNI 管理器。
* 如果改动了 `src/webui` 或 `src/nasui`,在相应目录下运行 `yarn start`。 Web 界面会在代码修改后自动刷新
* 如改动了 `src/webui`, 运行 `yarn dev`, 该命令将同时运行一个 模拟 API 服务器和一个 webpack 开发服务器。 使用环境变量 `EXPERIMENT`(例如 `mnist-tfv1-running`)来指定要用到的模拟数据。 内置的模拟实验列在 `src/webui/mock`。 一个完整的命令的示例是 `EXPERIMENT=mnist-tfv1-running yarn dev`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merge error? why there are two items for same folder?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

src/webui and src/nasui are different directories.

@@ -47,7 +47,8 @@ nnictl create --config examples/trials/mnist-tfv1/config.yml
#### TypeScript

* 如改动了 `src/nni_manager`,在此目录下运行 `yarn watch` 可持续编译改动。 它将持续的监视并编译代码。 可能需要重启 `nnictl` 来重新加载 NNI 管理器。
* 如果改动了 `src/webui` 或 `src/nasui`,在相应目录下运行 `yarn start`。 Web 界面会在代码修改后自动刷新
* 如改动了 `src/webui`, 运行 `yarn dev`, 该命令将同时运行一个 模拟 API 服务器和一个 webpack 开发服务器。 使用环境变量 `EXPERIMENT`(例如 `mnist-tfv1-running`)来指定要用到的模拟数据。 内置的模拟实验列在 `src/webui/mock`。 一个完整的命令的示例是 `EXPERIMENT=mnist-tfv1-running yarn dev`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

一个完整的命令的示例是 EXPERIMENT=mnist-tfv1-running yarn dev

->

完整示例: EXPERIMENT=mnist-tfv1-running yarn dev

@@ -16,7 +16,7 @@ Neural Network Intelligence
模型压缩<model_compression>
特征工程<feature_engineering>
参考<reference>
社区分享 <CommunitySharings/community_sharings>
用例与解决方案<CommunitySharings/community_sharings>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

用例 -> 示例

# create an experiment instance
exp = Experiment()

# start an experiment, then connect the instance to this experiment
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

translate it

模型压缩 <Compressor/CompressionReference>
NNI Client <nnicli_ref>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

translate Client

@JunweiSUN
Copy link
Contributor Author

@squirrelsc @SparkSnail All comments have been resolved.


```json
[
{"parameter": {"x": 0.5, "y": 0.9, "TRIAL_BUDGET": 27}, "value": 0.03}
]
```

* 示例
* 样例
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

样例 -> 示例

@QuanluZhang QuanluZhang self-requested a review September 18, 2020 09:09
@QuanluZhang QuanluZhang merged commit 0e49e65 into microsoft:master Sep 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants