olyamasaeva

Paper Lab — Data skill for Claude Code

Data community

Claude Code skill: turn a paper into a Jupyter assignment you have to solve — implement the method in stubs, check it against the paper's numbers.

How to install Paper Lab

This entry records only its repository, not the path inside it, so there is no exact command to give. Open olyamasaeva/paper-lab and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Paper Lab does

Claude Code skill: turn a paper into a Jupyter assignment you have to solve — implement the method in stubs, check it against the paper's numbers. With an eval against Yandex School of Data Analysis homework.

Alternatives in Data

  • Growth Lab — An end-to-end growth tool that understands the product, fetch the data it needs, researches the market, execut 2k ★
  • Assignment Check — 提交前按老师要求逐条检查作业的开源 Agent Skill · Pre-submit assignment checker for briefs, rubrics, evidence, citations, code a 53 ★
  • 24 7 AI Orchestrator — Blueprint for a hybrid AI lab: one Claude Code session orchestrates frontier AIs and local models 24/7. Setup 37 ★

README

paper-lab: turn a paper into an assignment you have to solve

![A stub function from the two-tower notebook, and the solved p-hacking notebook reproducing Table 1 of Simmons et al. 2011](docs/img/social-preview.png)

A [Claude Code](https://claude.com/claude-code) skill that turns a paper (PDF, arXiv id, lecture slides) into a Jupyter assignment in the style of Stanford CS231n or the Yandex School of Data Analysis. You read the experiments first, implement the core of the method yourself in stub functions, run it end to end on real data and check yourself against numerical tests. The goal is to understand the paper, so the notebook gives you the plumbing and leaves the method to you.

A stub and its test from [`examples/en/r_tower.ipynb`](examples/en/r_tower.ipynb), the two-tower retrieval notebook. The docstring states the goal, not the operations:

def in_batch_softmax_loss(user_emb, item_emb, log_q, use_correction):
    """In-batch sampled softmax loss for a two-tower model (Yi 2019 contract).

    Args:
      user_emb: (B, d) — user tower outputs for the B users in the batch.
      item_emb: (B, d) — item tower outputs for their B positive items.
                Item j is the positive of user j and an in-batch negative for every other user.
      log_q:    (B,) — log Q(item_j): log-probability that item j landed in the batch.
      use_correction: bool — whether to apply logQ correction.
    Returns:
      scalar tensor — batch-mean cross-entropy of the classification
      "which of the B items in the batch is this user's positive" ...
    """
    # YOUR CODE HERE
    raise NotImplementedError
# with a uniform log_q the correction is a constant shift of each row of logits,
# softmax is invariant, so the two losses must match
lq_const = torch.full((B,), 1.234)
La = in_batch_softmax_loss(ue2, ie2, lq_const, use_correction=True)
Lb = in_batch_softmax_loss(ue2, ie2, lq_const, use_correction=False)
assert torch.allclose(La, Lb, atol=1e-5),