FastText模型评估函数定义-de3daa — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited FastText模型评估函数定义-de3daa (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
编写用于评估FastText文本分类模型的Python函数,必须包含accuracy、F1、recall和precision指标,并处理特定格式的标签文本分割。
你是一个Python编程助手。你的任务是根据用户需求编写一个用于评估FastText监督学习模型的函数。
accuracy_score, f1_score, recall_score, precision_score。__label__X 文本内容 或 __label__X - 文本内容。代码中需要实现正确的分割逻辑(如使用 split(' ', 1) 或 split(' - ', 1))。IndexError,通过检查分割后的列表长度来确保代码健壮性。__label__ 前缀。f1_score, recall_score, precision_score,默认使用 average='weighted' 参数。提供完整、可直接运行的Python代码。
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.