# regression

Python API: `depthai_nodes.message.creators.regression`

## 函数

### create_regression_message

```python
def create_regression_message(predictions: list[float]) -> dai.beta.Predictions:
```

为预测模型创建 DepthAI 消息。

参数

 * `predictions` (`list[float]`): 预测值。

返回

 * `dai.beta.Predictions`: 包含预测值的预测消息。

抛出

 * `ValueError`: 如果 predictions 不是列表。如果每个预测都不是浮点数。
