反馈属性与质量维度
原能力
保存反馈来源、质量和缺席状态,不以用户偏好替代真实结果。(合同附件 R7 19.3)
首选项目
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'),
Pandera · def validate(
pandera/api/pandas/container.py · 127–140 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
def validate(
self,
check_obj: pd.DataFrame,
head: int | None = None,
tail: int | None = None,
sample: int | None = None,
random_state: int | None = None,
lazy: bool = False,
inplace: bool = False,
) -> pd.DataFrame:
"""Validate a DataFrame based on the schema specification.
:param pd.DataFrame check_obj: the dataframe to be validated.
:param head: validate the first n rows. Rows overlapping with `tail` or
实现与验收要点
反馈属性、来源权、用途、冲突与质量标准。