# 智能分流Bandit算法

本节我们将详细得向您介绍智能分流是什么？并说明如何正确的配置一个智能分流的体验部署 阅读本章节前，我们强烈建议您先阅读[A/B测试](/cn/experience/campaign/create-new-2.md)的相关内容。

### 什么是智能分流Bandit算法 <a href="#shen-me-shi-zhi-neng-fen-liu-bandit-suan-fa" id="shen-me-shi-zhi-neng-fen-liu-bandit-suan-fa"></a>

本节会着重讲解智能分流的实现逻辑，如果您理解了Bandit的逻辑会更好的帮助到您的体验构思。 当然如果您已经对智能分流有一定了解的话，可以跳转至操作说明环节。

简单来讲： Bandit智能分流是一种智能流量托管系统；智能分流算法会根据设定的转化目标，保证将流量及时向最优版本倾斜。

Ptengine中实现的智能分流算法可以根据各版本的转化状态自动地决策出是利用目前的最优版本还是尝试其他有潜力的版本，并逐步达到探索与利用的平衡点。在这段过程中既节省了随机A/B test实验在低价值版本上浪费的部分流量，同时还省去了人工调整流量的成本，并且对于流量的调整更加的科学客观。另外，对于中途加入新版本的情况也更加的适应，智能算法并不会因为加入新版本而完全重置分配策略。

### 如何配置一个智能分流体验 <a href="#ru-he-pei-zhi-yi-ge-zhi-neng-fen-liu-ti-yan" id="ru-he-pei-zhi-yi-ge-zhi-neng-fen-liu-ti-yan"></a>

1. 在编辑A/B test或重定向测试时，选择流量分配设置<br>

   <figure><img src="/files/ATO0dJyxVVTw9QPYaqVy" alt=""><figcaption></figcaption></figure>
2. 选择智能分配选项，之后选择转化目标。

\
此处转化目标的选择方式类似于A/B test，Ptengine建议选择一个想通过这次创意影响到的最直观指标。（如创意为“活动页引流弹窗”->“活动页跳转”作为目标） 3. 最后，点击确认并发布创意便完成了所有设置！同时你也会观察到，流量分配显示为”自动”，在A/B test报告界面也会和传统的有所区别，少了”提升”与“优胜率”两个条目。

<figure><img src="https://help-ptengine-com-vitepress.oss-cn-guangzhou.aliyuncs.com/doc/Experience/AB-Bandit/Bandit-Step-2.png" alt=""><figcaption></figcaption></figure>

### 如何正确理解智能分流的作用 <a href="#ru-he-zheng-que-li-jie-zhi-neng-fen-liu-de-zuo-yong" id="ru-he-zheng-que-li-jie-zhi-neng-fen-liu-de-zuo-yong"></a>

或许我们可以通过两张图快速了解智能分流的作用、以及A/B测试与智能分流Bandit算法的区别：

❶A/B测试与Bandit的实验差异

<figure><img src="https://help-ptengine-com-vitepress.oss-cn-guangzhou.aliyuncs.com/doc/Experience/AB-Bandit/Bandit%E5%AF%B9%E6%AF%94AB-test.png" alt=""><figcaption></figcaption></figure>

❷　A/B测试与Bandit组合拳

<figure><img src="https://help-ptengine-com-vitepress.oss-cn-guangzhou.aliyuncs.com/doc/Experience/AB-Bandit/ABtest-Bandit%E5%90%88%E4%BD%9C.png" alt=""><figcaption></figcaption></figure>

Step1： A/B测试验证灵感价值（加购区放到底部还是放到页面中部）

Step2: 活动期间围绕灵感制作多个样式（颜色/样式） Step3：通过Bandit将流量及时导向最佳版本

### **何时使用A/B测试与智能分流**

当我们希望通过花费时间成本与流量成本验证运营策略是否有效，并希望在的到结果后，用于我们未来另改的服用。我们建议使用A/B 测试

当在一个时间段内（例如维持1周或1个月的短期促销等），我们希望通过多个版本的到最大的价值，我们极力推荐Bandit智能分流\
如果您还有不了解的内容，与欢迎联系我们的客户成功经理，快速为您讲解产品功能与价值。


---

# 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://helps.ptengine.com/cn/experience/campaign/create-new-2/bandit-algorithm.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.
