Can Machine Learning Predict Star Trek's Most Popular Commander Cards?

By Wylie Conlon ·

I’m building Manayard, a tool for finding Magic: The Gathering cards that work together in Commander. On the side, I wanted to know whether a computer could learn from older cards to guess which new cards people will put in their decks. I’m a beginner at machine learning, so treat this as an experiment, not expert advice.

The test case is Magic’s Star Trek release: the main set, TRK, and its Commander decks, TRC, both out on November 13. I forecast all 191 new cards revealed by October 20: 70 commander candidates, 107 other spells and 14 lands. Reprints and basic lands are left out.

“Popular” here means how many Commander decks include a card, measured by the popularity rank in Scryfall’s public card data. It is not win rate or power level.

The questions

How a forecast is made

How the Star Trek forecast is made: older cards train a text model and a pairwise model, their percentile scores are averaged into a blend, and the blend ranks 191 Star Trek cards within three categories.

Hiding the name means a model can’t simply remember that a famous card is popular. A new card is read the same way and gets a score; a higher score means the model expects it in more decks.

The text model is the baseline every other method has to beat. A card’s score is the sum of its phrases’ weights. The technique is called ridge regression; “ridge” stops any single phrase from getting an extreme weight.

The pairwise model works like a taste test that asks “which of these two?” instead of “rate this out of 10.” It compares commanders only with commanders, and it reads facts from Manayard’s parser, which turns rules text into structured effects, costs and conditions.

The blend turns each model’s score into a percentile: the share of older cards that scored lower. A card above 90% of older cards in one model and 96% in the other gets a blend score of 0.93.

How I tested the methods

To test a forecaster fairly, you hide the answers. I trained each method on older cards, asked it to rank later cards whose popularity I already knew, then compared.

How the tests were split in time: test 1 trains before 2024 and tests 2024 to March 2026; tests 2 and 3 train before April 2026 and test April to August and early October 2026; the Star Trek forecast trains on everything before its November 13 release.

I chose the blend after test 1 and froze it before running tests 2 and 3. Test 1 is a practice exam: because I picked a winner there, it flatters the winner. Test 2 is a repeated exam, because I had looked at those six releases in earlier experiments. Test 3 is fresh but early: one release family whose popularity ranks were only 18 days old.

The score is the Spearman correlation, which compares two orderings. Think of predicting the finishing order of a race: an exactly right order scores 1, a guess with no relation to the result scores about 0, and an exactly backwards order scores −1. I compute it within each release, so a card is only compared with cards that came out alongside it. Commanders are harder to predict than other cards, so each score is the average of two correlations: one for all cards and one for commander candidates only.

The best method: a text-and-pairwise blend

MethodTest 1Test 2Test 3
Text model (baseline)0.4690.5800.669
Text plus updated parser facts0.4650.5680.687
Five nearest older cards0.2530.2730.380
Pairwise model0.4710.5550.656
Boosted trees0.4450.4970.630
Learning-to-rank trees0.3890.4600.554
Text + pairwise blend (selected)0.4890.5720.679
Text + parser-fact correction0.4830.5590.714

The blend won test 1, 0.489 against 0.469 for the text model, so I picked it. In tests 2 and 3 it landed close to the text model: a little behind in one, a little ahead in the other.

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.

To check whether a gap like that is real, I redrew the releases at random many times and recomputed it. Every range crosses zero, so I can’t tell the blend’s lead from luck.

The Star Trek forecast

For the forecast I retrained the blend on all 32,048 older cards and ranked the 191 Star Trek cards within their categories. “Text-only” is the same card’s place in the baseline text model.

All 14 new lands are in TRK. Both models put the same three on top, in a different order: Starfleet Academy, Quark’s Bar and The Unicomplex.

The models agree on the top two commanders and disagree more further down: U.S.S. Reliant is 5th in the blend and 12th in the text model. These tables are the October 20 snapshot. The Sets page is rerun as more cards are revealed, so its order now differs slightly. The 191-card CSV keeps this snapshot.

What failed

These eight methods are a small set I chose to compare, not a survey of machine learning. Within that set:

A decent correlation can still miss the cards people care about most. I checked whether each release’s single most-played card landed in a model’s top three. Across tests 2 and 3, the blend and the text model each caught 2 of 9 overall winners and 4 of 8 commander winners. Neither reliably spots a breakout card.

Limitations

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

This plot shows the kind of mistake a text model makes, using 36 older cards I picked as examples. A dot on the dashed line means the model got that card right. It underrates Harmonize, Lightning Bolt and Shock, and overrates Standing Stones. These were training cards, so they show the type of error, not accuracy on new cards.

Next steps

After the November 13 release, I’ll grade these forecasts against December popularity, misses included. It will be the first check where no model and no choice of mine saw the answer in advance. Until then the text model stays the baseline and the blend stays an experiment.

After that, I want to test one kind of effect in small, controlled game situations and see whether those results improve a future forecast.

The experiment used no paid services. The code and full method comparison, including separate all-card and commander scores, are in the repository report.

Card and spoiler data: Scryfall’s TRK and TRC listings, as saved on October 20.

Explore the data