# 推导5：update b

已知：当$$0 \lt a\_i \lt C$$时，样本i位于间隔边界上，此时

$$
y\_i = \sum\_{j=1}^Na\_jy\_jK(i,j)+b
$$

1. 如果新算出来的a1或a2满足条件，任意一个代入公式（1）即可算出b。 &#x20;
2. 如果a1和a2都满足条件，计算出来的b是相同的。 &#x20;
3. 如果a1和a2都不满足条件，a1、a2分别代入公式（1）将得出两个不同的b，则取两个b的平均值。 &#x20;


---

# 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/smo/21.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.
