和顺 / 知几 返回所属 Agent
ZJ-03.02

主题归类

原能力

按对象、变化类型和地区给线索分类,保存同一线索归入多类的理由。(细化版 p.4–5)

首选项目

scikit-learn(BSD-3-Clause)。 scikit-learn

匹配范围

多标签分类组件对已标注线索建立预测分类。

源码

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

实现与验收要点

主题体系、地区角色、少样本评估和人工覆盖。