简体   繁体   English

有没有使用强化学习进行多label文本分类的例子?

[英]Are there examples of using reinforcement learning for multi label text classification?

I have a labeled dataset and I am going to develop a classifier for a multilabel classification problem (ex: 5 labels).我有一个带标签的数据集,我打算为多标签分类问题(例如:5 个标签)开发一个分类器。 I have already developed BERT, and CNN, but I was wondering if I could use RL for text classification as well.我已经开发了 BERT 和 CNN,但我想知道我是否也可以使用 RL 进行文本分类。

As I know, using RL we can use a smaller training dataset据我所知,使用 RL 我们可以使用较小的训练数据集

I am looking for a python code for RL.我正在寻找 RL 的 python 代码。

Reinforcement learning is a different thing from BERT or CNN.强化学习与 BERT 或 CNN不同 It is not actually a technique or a model, it is a type of problem (hidden markov models), and the set of techniques used to solve that problem.它实际上不是一种技术或 model,它是一种问题(隐马尔可夫模型),以及用于解决该问题的一组技术。

More precisely, Reinforcement Learning it the class of problems where you have更准确地说,强化学习是你遇到的问题的 class

  • An agent代理人
  • who has to chooses actions to take谁必须选择要采取的行动
  • Those actions will change its state and give it a reward Where your goal is to maximize the reward.这些动作将改变它的state并给予它奖励,而你的目标是最大化奖励。

This fits very well with game AI, or robotics applications for example.这非常适合游戏 AI 或机器人应用程序。

But in your case, you want to develop a classifier from a labeled dataset.但在您的情况下,您想从标记的数据集中开发分类器。 That is not a reinforcement learning problem , it is supervised learning不是强化学习问题,而是监督学习

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM