Using Claude to predict the popularity of Star Trek cards

By Wylie Conlon ·

The Borg Queen art
The Borg Queen · art by Jodie Muir

I'm a big fan of both Star Trek and Magic. Since I started building Manayard I've been thinking more about ways where algorithms fail to understand the concepts of Magic. So since I don't know how to do machine learning, I asked Claude.

What I asked for

On October 10 I wrote: "For the upcoming Star Trek set could we attempt to estimate popularity of the commanders as well as the best archetypes using our unique approach, and then come back to this in a few months to see?" The only popularity data I have access to is from Scryfall's public data exports that contain an EDHRec rank, which roughly tracks how many Commander decks include a card. At the time only half the cards from the set were spoiled. The simple analysis that Claude did was based purely on the words and phrases in a card's rules text (including colors, cost and types). The results showed Dr. Beverly Crusher, Captain Kathryn Janeway and Brad Boimler as the top three, because their rules text looks like cards that are already popular. Crusher makes your lifegain triggers fire twice, which Claude's notes called "the same shape as other popular doublers." I wasn't very impressed by the analysis because cards like Seven of Nine that I was personally ranking highly were nowhere near the top. The model had never seen the new "dilemma" mechanic, so it read her as a small draw trigger and ranked her 16th of 27.

As a follow up, I asked Claude to try an approach based on the commander "needs", like if the card requires gaining life, it needs lifegain cards, and to use the overall count of those cards as the score. Across all past sets that score correlated with popularity at +0.16, but if you limit this to just popularity within a set the correlation is almost zero. Turns out the score had mostly been counting how many cards exist in each commander's colors. So I abandoned this approach.

Revisiting after more spoilers

By this week, 191 new cards have been revealed and I have a parser that understands more of them. This new "parser" lets me extract the mechanical features of cards directly from the text, and turns it into millions of links that connect cards to each other. I thought this new dataset would be helpful for a new round of predictions.

For this analysis, Claude chose to do a "pairwise" analysis. In this one, it tries to learn why one card is more popular than another from the same set release. The findings here were that popularity can be explained partially by cost and card type. Within a release, cards that cost 0 to 2 mana beat ones that cost 4 to 6, artifacts and lands do well, and so do words like "add" (mana) and "draw". Almost none of it came from the parser: of the biggest pairwise contributions on the forecast page, only about 2 in 100 come from parsed card facts., so the links rarely showed up among the top reasons for a score.

Claude picked a method using older cards to predict releases from 2024 to March 2026 (test 1), then tested it on two more groups of releases from April to early October (tests 2 and 3). It was chosen before either of those was scored.

Blend score minus text model score in each test. The blend leads in test 1, trails slightly in test 2 and leads slightly in test 3. Every range in tests 2 and 3 crosses zero.

The blend of the text model and a pairwise model (one that learns from "which of these two cards ended up in more decks?") won test 1, so it became the forecast. In the next two tests it was within noise of the plain text model, and none of the other methods reliably beat it either.

Results

I ended up building a live Star Trek forecast page with the predictions for the Star Trek cards, and every other card. As of October 20 the blended model ranks The Borg Queen, Captain Jean-Luc Picard and Dr. Joseph M’Benga as the top three commanders, and Starship Enterprise for non-commander spells.

October 21 text-plus-parser model scores versus observed popularity for 36 older cards.

This plot shows the kind of mistake these models make, on 36 older cards from training. It underrates Lightning Bolt, Shock and Harmonize, and overrates Standing Stones, a mana rock few decks play.

Why I don't think this was a good use of machine learning

Popularity is easier to predict than whether a card is any good, and those are different things.

Across those two later tests, which covered nine releases, the most-played card of each release landed in the model's top three only 2 times out of 9.

What I actually want to know about a new card is whether it does something in my deck, which depends on the rules and on the rest of the deck. That's why Manayard ranks cards by what they do and keeps popularity as a small baseline.

What's next

In December I'll grade the forecast against real popularity, misses included. It'll be the first check on cards that came out after the forecast was frozen. The results will go on the Star Trek forecast page.

The same day as the comparison, I asked for a different experiment: using a simulator as part of ranking, testing cards in small game situations so Manayard learns how a card plays. That's closer to the question I care about.

Card and spoiler data: Scryfall’s TRK and TRC listings.

Explore the data