# 回归问题提升树前向分步算法

**输入：**\
训练数据集T

**输出：** 提升树$$f\_M(x)$$

**过程：**\
1\. 令$$f\_0(x)=0$$\
2\. 对当前m计算残存差：

$$
r\_{mi} = y\_i - f\_{m-1}(x\_i), i = 1,2,\cdots,M
$$

1. 拟合残差$$r\_{mi}$$学习一个回归树，得到$$T(x;\Theta\_m)$$ &#x20;
2. 更新$$f\_m(x) = f\_{m-1}(x) + T(x; \Theta\_m)$$
3. 重复2-4步M次，得到M个回归树 &#x20;
4. 得到回归问题提升树： &#x20;

   $$
   f\_M(x) = \sum\_{m=1}^MT(x; \Theta\_m)
   $$


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://windmising.gitbook.io/lihang-tongjixuexifangfa/boostingtree/7.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
