是否有使用强化学习进行多标签文本分类的示例?

发布于 2025-01-24 10:40:14 字数 139 浏览 4 评论 0原文

我有一个标记的数据集,我将开发一个用于多标签分类问题的分类器(例如:5标签)。我已经开发了Bert和CNN,但是我想知道是否也可以将RL用于文本分类。

众所周知,使用RL我们可以使用较小的培训数据集,

我正在寻找RL的Python代码。

I have a labeled dataset and I am going to develop a classifier for a multilabel classification problem (ex: 5 labels). I have already developed BERT, and CNN, but I was wondering if I could use RL for text classification as well.

As I know, using RL we can use a smaller training dataset

I am looking for a python code for RL.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夜雨飘雪 2025-01-31 10:40:14

加强学习是与BERT或CNN不同的不同事物。它实际上不是一种技术或模型,而是一种类型的问题(隐藏的马尔可夫模型),以及用于解决该问题的技术集。

更确切地说,要加强学习类别的问题,您必须选择

  • 代理人
  • 必须选择行动采取
  • 这些行动将改变其状态和给它一个奖励
    您的目标是最大化奖励。

例如,这非常适合游戏AI或机器人应用程序。

但是就您而言,您想从标记的数据集开发分类器。那是不是强化学习问题,它是监督的学习

Reinforcement learning is a different thing from BERT or 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.

More precisely, Reinforcement Learning it the class of problems where you have

  • 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.

This fits very well with game AI, or robotics applications for example.

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文