Skip to content

Show the reviewed Pinkfong video under Music and Narrative - #8

Open
aruship4 wants to merge 1 commit into
mainfrom
013-growing-dataset-aruship4
Open

aruship4 wants to merge 1 commit into
mainfrom
013-growing-dataset-aruship4

Conversation

@aruship4

@aruship4 aruship4 commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Required site-wide rollout

The requested outcome is automatic category classification for every video in the reference and collected datasets and for every future collector addition.

This PR currently contains the reviewed Pinkfong correction and the rankings support for multiple memberships. The site-wide classifier and backfill are pending review of the updates to plans 007 and 013.

  • Run a repeatable backfill across both datasets and persist the collector memberships for future exports.
  • Apply the same classifier to new uploads and preserve reviewed overrides.
  • Report held-out accuracy and full-dataset coverage, and verify the rankings on the built website against the real backend using a backfilled video and a newly collected video.

Supersedes #7. This PR uses the same tested commit.

Related issue

Refs #1. This fixes the reviewed example and keeps the broader classifier evaluation open.

Type of change

  • Bug fix (something didn't work as intended)
  • New feature (something new visitors can see or use)
  • Improvement to an existing feature
  • Breaking change (a link stops working, or scores change meaning)
  • Docs, tests or refactoring only (no visible change)

Problem

The reviewed Pinkfong upload opens with a story and ends with a featured song. The previous single-category filter showed it under Music, so visitors looking for stories missed it.

Solution

  • Apply the reviewed Music and Narrative memberships by video ID when loading the dataset and writing collector exports. Legacy rows still use their primary category.
  • Use memberships in the real video and channel rankings endpoints. Keep the existing primary category and filter URLs, and add a category list to the typed API contract.
  • Keep the current classifier for other videos. The weighted candidate matched fewer reviewed memberships in the preliminary blind review. The wider evaluation remains open.

Visitor-facing changes

  • Interface: The existing Music and Narrative filters both find the video. It appears once in All.
  • Claims and text: None.

Screenshots

None. The existing controls and layout present the corrected results.

Ready for review

  • Tests added or updated; a bug fix includes a test that fails without it.
  • Lint, type check, tests (unit, component, end-to-end) and build pass. Verified 529 backend tests, 601 frontend tests, and 355 browser tests against the static build and real backend (33 configuration skips). The Pinkfong regression passed in Chromium and WebKit on phone and desktop.
  • Test coverage of the changed lines (npm run test:coverage, uv run pytest --cov): frontend N/A (type-only application change), backend 100% (17 of 17 executable lines).
  • UI changes checked at the three sizes above, with the keyboard, and in the Safari check. N/A for layout and control changes. The separate Safari suite passed all 16 checks, including the rankings controls.
  • Docs updated (READMEs, .env.example) if setup, commands or settings changed. N/A, none changed. Plans 007 and 013 describe the behavior.
  • The privacy policy (/privacy) is still true.
  • Nothing secret or server-specific in the diff (keys, tokens, hostnames, server paths, unreleased research data).
  • Every commit message follows "Commit messages" in DEVELOPMENT.md (PRs are merged with "Rebase and merge", so each commit lands as written).

@sonarqubecloud

Copy link
Copy Markdown

@shaoyuchu

Copy link
Copy Markdown
Contributor

suggestion: I'd like to see a broader investigation into how we can improve content categorization. Both the proposed changes and the PR description seem to focus primarily on addressing one particular Pinkfong video. However, the goal of this issue is to improve categorization accuracy overall. We should also avoid hardcoding categories for individual videos or relying on manual labels, since new videos are continuously being added to our dataset.

I think it would be helpful to first develop a better understanding of the existing approach and its limitations. For example, how well does our current keyword-based approach perform? Are certain categories more prone to misclassification than others? Is our current scheme of assigning each video to 0-1 category appropriate?

Based on these findings, it would be helpful to explore different approaches (e.g., revising the keyword sets, introducing different weights, or using model-based categorization) and evaluate their performance. Feel free to define the evaluation metrics that you think are appropriate for this task.

In addition to the resulting implementation, I'd like the PR description to document the exploration behind it. e.g., what approaches were explored, how they performed, and what informed the choice of the proposed approach. There's no need to include the implementations of all the approaches explored in this PR, but documenting their evaluation results would help justify the choice of the final approach.

We don't necessarily need an approach that categorizes every video correctly. The goal is to better understand the limitations of the current approach and identify ways to improve its overall performance in a scalable and generalizable manner.

@shaoyuchu

Copy link
Copy Markdown
Contributor

btw, make sure to make changes on the issue branch

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants