反馈分类
原能力
分开内容理解、态度回应、真实行动和投诉,记录最能解释问题的例子。(细化版 p.6–7)
首选项目
Taguette(BSD-3-Clause)。 Taguette
匹配范围
标签编码或多标签分类提取反馈类别。
源码
Taguette · class Tag
taguette/database/models.py · 617–630 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
class Tag(Base):
__tablename__ = 'tags'
__table_args__ = ({'sqlite_autoincrement': True},)
id = Column(Integer, primary_key=True)
project_id = Column(Integer, ForeignKey('projects.id', ondelete='CASCADE'),
nullable=False, index=True)
project = relationship('Project', back_populates='tags')
path = Column(String(200), nullable=False, index=True)
description = Column(Text, nullable=False)
__table_args__ = (
UniqueConstraint('project_id', 'path'),
scikit-learn · class OneVsRestClassifier
sklearn/multiclass.py · 202–215 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
class OneVsRestClassifier(
MultiOutputMixin,
ClassifierMixin,
MetaEstimatorMixin,
BaseEstimator,
):
"""One-vs-the-rest (OvR) multiclass strategy.
Also known as one-vs-all, this strategy consists in fitting one classifier
per class. For each classifier, the class is fitted against all the other
classes. In addition to its computational efficiency (only `n_classes`
classifiers are needed), one advantage of this approach is its
interpretability. Since each class is represented by one and one classifier
only, it is possible to gain knowledge about the class by inspecting its
- # SPDX-License-Identifier: BSD-3-Clause
实现与验收要点
内容分类体系、投诉合规、解释和抽样复检。