Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added src/.vuepress/public/img/ainode-timer-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/.vuepress/public/img/ainode-timer-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/.vuepress/public/img/ainode-timer-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions src/UserGuide/Master/Tree/User-Manual/AINode_timecho.md
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,46 @@ Total line number = 4

In the result set, each row's label corresponds to the output of the anomaly detection model after inputting each group of 24 rows of data.

### 4.6 AINode-Timer Model Import Steps
1. Open the IoTDB CLI console and verify that the ConfigNode, DataNode, and AINode statuses are all ​Running.

Check command:
```sql
show cluster
```

![](/img/ainode-timer-1.png)

2. Model file storage path: It is recommended to place the model files in the same directory as the AINode installation package.
You may create a new folder to store model files.
3. Register the model

Use the following SQL statement:

```sql
create model <model_name> using uri <uri>
```

Example (for the Timer model):

```sql
create model Timer using uri <uri>
```

Note: When importing the Timer model, the name must be "Timer" (case-sensitive), otherwise it will not be recognized by the IoTDB visualization console.

![](/img/ainode-timer-2.png)

4. Verify model registration success

Check command:

```sql
show models
```

![](/img/ainode-timer-3.png)

## 5. Privilege Management

When using AINode related functions, the authentication of IoTDB itself can be used to do a permission management, users can only use the model management related functions when they have the USE_MODEL permission. When using the inference function, the user needs to have the permission to access the source sequence corresponding to the SQL of the input model.
Expand Down
40 changes: 40 additions & 0 deletions src/UserGuide/latest/User-Manual/AINode_timecho.md
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,46 @@ Total line number = 4

In the result set, each row's label corresponds to the output of the anomaly detection model after inputting each group of 24 rows of data.

### 4.6 AINode-Timer Model Import Steps
1. Open the IoTDB CLI console and verify that the ConfigNode, DataNode, and AINode statuses are all ​Running.

Check command:
```sql
show cluster
```

![](/img/ainode-timer-1.png)

2. Model file storage path: It is recommended to place the model files in the same directory as the AINode installation package.
You may create a new folder to store model files.
3. Register the model

Use the following SQL statement:

```sql
create model <model_name> using uri <uri>
```

Example (for the Timer model):

```sql
create model Timer using uri <uri>
```

Note: When importing the Timer model, the name must be "Timer" (case-sensitive), otherwise it will not be recognized by the IoTDB visualization console.

![](/img/ainode-timer-2.png)

4. Verify model registration success

Check command:

```sql
show models
```

![](/img/ainode-timer-3.png)

## 5. Privilege Management

When using AINode related functions, the authentication of IoTDB itself can be used to do a permission management, users can only use the model management related functions when they have the USE_MODEL permission. When using the inference function, the user needs to have the permission to access the source sequence corresponding to the SQL of the input model.
Expand Down
38 changes: 38 additions & 0 deletions src/zh/UserGuide/Master/Tree/User-Manual/AINode_timecho.md
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,44 @@ Total line number = 4

其中结果集中每行的标签对应每24行数据为一组,输入该异常检测模型后的输出。

### 4.6 AINode-Timer模型导入操作步骤

1. 打开 IoTDB cli 控制台,检查 ConfigNode、DataNode、AINode 节点确保均为 Running。

检查命令:
```sql
show cluster
```

![](/img/ainode-timer-1.png)

2. 模型文件存放路径:推荐放在 AINode 安装包相同文件夹下,可新建模型文件夹存放模型文件
3. 注册模型语句

```sql
create model <model_name> using uri <uri>
```

示例:

```sql
create model Timer using uri <uri>
```

注意:导入 Timer 模型时名称需命名为“Timer”,否则无法被可视化控制台识别。

![](/img/ainode-timer-2.png)

4. 检查模型是否注册成功

检查命令:

```sql
show models
```

![](/img/ainode-timer-3.png)

## 5. 权限管理

使用AINode相关的功能时,可以使用IoTDB本身的鉴权去做一个权限管理,用户只有在具备 USE_MODEL 权限时,才可以使用模型管理的相关功能。当使用推理功能时,用户需要有访问输入模型的SQL对应的源序列的权限。
Expand Down
38 changes: 38 additions & 0 deletions src/zh/UserGuide/latest/User-Manual/AINode_timecho.md
Copy link
Collaborator

Choose a reason for hiding this comment

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

步骤还是有点随意,参考下面 改成这样吧

  1. 打开 IoTDB cli 控制台,检查 ConfigNode、DataNode、AINode 节点确保均为 Running
    检查命令:
show cluster


2. 模型文件存放路径:推荐放在 AINode 安装包相同文件夹下,可新建模型文件夹存放模型文件
3. 注册模型语句:

create model <model_name> using uri <uri>

示例:

create model Timer using uri  "file:///data/ainode/Timer"

注意:导入 Timer 模型时名称需命名为“Timer”,否则无法被可视化控制台识别。
4.使用上述检查命令,检查模型是否注册成功

Copy link
Collaborator

Choose a reason for hiding this comment

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

英文版也对应改改叭~

Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,44 @@ Total line number = 4

其中结果集中每行的标签对应每24行数据为一组,输入该异常检测模型后的输出。

### 4.6 AINode-Timer模型导入操作步骤

1. 打开 IoTDB cli 控制台,检查 ConfigNode、DataNode、AINode 节点确保均为 Running。

检查命令:
```sql
show cluster
```

![](/img/ainode-timer-1.png)

2. 模型文件存放路径:推荐放在 AINode 安装包相同文件夹下,可新建模型文件夹存放模型文件
3. 注册模型语句

```sql
create model <model_name> using uri <uri>
```

示例:

```sql
create model Timer using uri <uri>
```

注意:导入 Timer 模型时名称需命名为“Timer”,否则无法被可视化控制台识别。

![](/img/ainode-timer-2.png)

4. 检查模型是否注册成功

检查命令:

```sql
show models
```

![](/img/ainode-timer-3.png)

## 5. 权限管理

使用AINode相关的功能时,可以使用IoTDB本身的鉴权去做一个权限管理,用户只有在具备 USE_MODEL 权限时,才可以使用模型管理的相关功能。当使用推理功能时,用户需要有访问输入模型的SQL对应的源序列的权限。
Expand Down