Update Discord trade listings

This commit is contained in:
2026-11-21 00:42:57 +01:00
parent d29892eac5
commit 6b152854bd
21 changed files with 4702 additions and 4149 deletions
+35 -11
View File
@@ -8,6 +8,13 @@ Run `py -B provisional_valuelist.py` to regenerate:
- `confidence_report.csv`: unrounded fits and leave-one-quote-out sensitivity by variant. - `confidence_report.csv`: unrounded fits and leave-one-quote-out sensitivity by variant.
- `quote_impact.csv`: every variant's value after each connected quote is removed. - `quote_impact.csv`: every variant's value after each connected quote is removed.
- `quote_conflicts.csv`: direct quotes for the same pair with incompatible ratios. - `quote_conflicts.csv`: direct quotes for the same pair with incompatible ratios.
- `evidence_comparison.csv`: the weighted fit beside an explicit-only refit,
including changes and variants disconnected when inferred pairs are removed.
The detailed `trades.csv` keeps a pretrade unit in `offer`, marks an explicit
`PRE`/`Pretrade` listing in `pretrade`, and puts any already received
`BEST OFFER`/`HIGH OFFER` in `received_bid`. Received bids are not owned
inventory or completed trades. A request for the "best offer" remains in LF.
Record confirmed exchanges in `completed_trades.csv` before regenerating. Each Record confirmed exchanges in `completed_trades.csv` before regenerating. Each
row needs a unique `trade_id`, ISO `trade_date`, exact `given` and `received` row needs a unique `trade_id`, ISO `trade_date`, exact `given` and `received`
@@ -20,12 +27,14 @@ ambiguous wording and overlapping variants are rejected. To use another input
file, pass `--completed-trades path/to/file.csv`. The checked-in file has only file, pass `--completed-trades path/to/file.csv`. The checked-in file has only
a header until real completed trades are recorded. a header until real completed trades are recorded.
The current snapshot contains 1,335 listings. The parser found 18 simple quotes The current snapshot contains 1,759 listings. The parser found 24 simple quotes
and 25 bundle quotes, and no completed trades have been entered. Thirty-eight and 22 bundle quotes, and no completed trades have been entered. Forty-one
asking quotes connect 42 variants to Aizen Evo. Six asking quotes connect 44 variants to Aizen Evo. Eight
eligible estimates are marked `unstable` and unranked. Aizen Evo, Shiny Homura eligible estimates are marked `unstable` and unranked. Aizen Evo and Shiny
Evo, and Shiny Dark Mage Evo have numeric entries. The conflict report finds Homura Evo have numeric entries. The direct-pair conflict report is empty after
one direct quote pair: Homura Evo and Alucard Evo are quoted at both 2:1 and 1:1. stat-specific offers were removed from the base-variant quotes. An explicit
ask for six Aizen Evo in exchange for one Homura Evo remains in the evidence;
it makes Homura Evo unstable.
## How the estimates work ## How the estimates work
@@ -34,11 +43,18 @@ whose two sides contain only named variants and quantities. It rejects broad
wish lists, alternatives, unspecified adds, stats and quality descriptions, wish lists, alternatives, unspecified adds, stats and quality descriptions,
and inventory rows that do not clearly describe a bundle. Each offered unit and inventory rows that do not clearly describe a bundle. Each offered unit
must appear in the listing's `offer` field. Repeated identical quotes from one must appear in the listing's `offer` field. Repeated identical quotes from one
author count once. author count once. A proposal is excluded from the base-variant fit when its
offered inventory identifies the unit only with specific stats. The current
audit excluded eight such proposals; they remain in `trades.csv` for later
stat-aware modeling.
The model fixes **Aizen Evo = 1,000 points**. It fits unit values so the sum of The model fixes **Aizen Evo = 1,000 points**. It fits unit values so the sum of
points on each side of an exchange is approximately equal. Completed trades points on each side of an exchange is approximately equal. Completed trades
have weight 9, direct unit asks weight 3, and bundle asks weight 1. The two ask have weight 9. Explicit direct asks have weight 3 and explicit bundle asks
weight 1. Inferred offer/LF pairs get one-third of the matching explicit
weight: 1 for direct pairs and 1/3 for bundles. This snapshot contains 29
explicit proposals and 17 inferred pairs. The ValueList and confidence report
show their source counts separately. The two ask
files contain only proposed exchanges; completed records stay in their own files contain only proposed exchanges; completed records stay in their own
input file. A small pull toward the 1,000-point reference keeps sparse equations input file. A small pull toward the 1,000-point reference keeps sparse equations
solvable. Values are rounded to the nearest 50 points. The regularization solvable. Values are rounded to the nearest 50 points. The regularization
@@ -46,7 +62,8 @@ affects thin estimates, and a manually recorded completion is only as reliable
as its evidence reference. as its evidence reference.
The ValueList and confidence report show separate `asking_quote_count` and The ValueList and confidence report show separate `asking_quote_count` and
`completed_trade_count` columns. `quote_count` is the combined number of `completed_trade_count` columns, plus `explicit_ask_count` and
`inferred_ask_count`. `quote_count` is the combined number of
distinct source listings and trade IDs. A variant with a completed trade and distinct source listings and trade IDs. A variant with a completed trade and
at least one other independent source can become eligible for ranking; the at least one other independent source can become eligible for ranking; the
leave-one-out stability gate still applies. `source_rows` uses normal row leave-one-out stability gate still applies. `source_rows` uses normal row
@@ -65,6 +82,13 @@ has no numeric value or rank if any removal disconnects it or changes its fit
by more than 25%. This is a practical screening threshold, not a statistical by more than 25%. This is a practical screening threshold, not a statistical
confidence interval. The Aizen reference remains fixed by definition. confidence interval. The Aizen reference remains fixed by definition.
`evidence_comparison.csv` refits the model using only explicit proposals and
completed trades. Its `all_fit` and `explicit_only_fit` are unrounded diagnostic
fits, even for unstable variants. The `*_ranked_value` columns remain blank
whenever the corresponding fit is unstable or insufficient. A disconnected
variant has no explicit-only fit or value. Shiny Dark Mage Evo is unstable and
unranked in both the weighted and explicit-only fits.
`quote_conflicts.csv` compares exact direct quotes for the same pair of variants. `quote_conflicts.csv` compares exact direct quotes for the same pair of variants.
It lists both source texts when their implied value ratios differ by more than It lists both source texts when their implied value ratios differ by more than
25%. Bundle quotes participate in the sensitivity check, but the direct-pair 25%. Bundle quotes participate in the sensitivity check, but the direct-pair
@@ -91,6 +115,6 @@ more completed trades with provenance and exact quantities, evolution state,
shiny state, stat quality, and date, then fit the model again. shiny state, stat quality, and date, then fit the model again.
`interest_index.csv`, generated by `py -B calculate_interest_index.py`, is a `interest_index.csv`, generated by `py -B calculate_interest_index.py`, is a
separate demand-versus-supply report. The current report covers 32 variants separate demand-versus-supply report. The current report covers 35 variants
from 1,231 distinct authors. In explicit `my X for Y` proposals, X counts as from 1,550 distinct authors. In explicit `my X for Y` proposals, X counts as
offered and Y as requested. It must not be read as a value ranking. offered and Y as requested. It must not be read as a value ranking.
+2 -5
View File
@@ -5,14 +5,9 @@
174,explicit_for,"{""Shiny Boros Evo"": 1, ""Shiny Gilgamesh Evo"": 1}","{""Shiny Emilia Evo"": 1}",Shiny Emilia Evo FOR Shiny Boros Evo AND Shiny Gilgamesh Evo 174,explicit_for,"{""Shiny Boros Evo"": 1, ""Shiny Gilgamesh Evo"": 1}","{""Shiny Emilia Evo"": 1}",Shiny Emilia Evo FOR Shiny Boros Evo AND Shiny Gilgamesh Evo
253,explicit_for,"{""Shiny Dark Mage Evo"": 1, ""Buddha Evo"": 1}","{""Homura Evo"": 1}",my Shiny Dark Mage Evo + Buddha Evo for Homura Evo 253,explicit_for,"{""Shiny Dark Mage Evo"": 1, ""Buddha Evo"": 1}","{""Homura Evo"": 1}",my Shiny Dark Mage Evo + Buddha Evo for Homura Evo
366,explicit_for,"{""Aizen Evo"": 1, ""Homura Evo"": 1}","{""Thorfinn Evo"": 1}",My Aizen Evo and Homura Evo for Thorfinn Evo 366,explicit_for,"{""Aizen Evo"": 1, ""Homura Evo"": 1}","{""Thorfinn Evo"": 1}",My Aizen Evo and Homura Evo for Thorfinn Evo
377,explicit_for,"{""Shiny Poseidon Evo"": 1, ""Dark Mage Evo"": 1, ""Chuuni Evo"": 2}","{""Homura Evo"": 1}","My Shiny Poseidon Evo, 1 Dark Mage Evo, 2x Chuuni Evo for Homura Evo"
397,explicit_for,"{""Alucard Evo"": 1, ""Shiny Ice Queen Evo"": 1}","{""Aizen Evo"": 1}",MY Alucard Evo AND Shiny ICE QUEEN Evo FOR Aizen Evo
463,explicit_for,"{""Shiny Somber Evo"": 1, ""Shiny Sakamoto Evo"": 1, ""Jelly Evo"": 1, ""Cid Unevo"": 2, ""Nagumo Unevo"": 2}","{""Shiny Chuuni Evo"": 1}",Shiny Somber Evo + Shiny Sakamoto Evo + Jelly Evo + 2 x Cid Unevo + 2 x Nagumo Unevo for Shiny Chuuni Evo 463,explicit_for,"{""Shiny Somber Evo"": 1, ""Shiny Sakamoto Evo"": 1, ""Jelly Evo"": 1, ""Cid Unevo"": 2, ""Nagumo Unevo"": 2}","{""Shiny Chuuni Evo"": 1}",Shiny Somber Evo + Shiny Sakamoto Evo + Jelly Evo + 2 x Cid Unevo + 2 x Nagumo Unevo for Shiny Chuuni Evo
536,listing_pair,"{""Shiny Buddha Evo"": 1}","{""Homura Evo"": 1, ""Chuuni Evo"": 1}",Shiny Buddha Evo -> Homura Evo + Chuuni Evo 536,listing_pair,"{""Shiny Buddha Evo"": 1}","{""Homura Evo"": 1, ""Chuuni Evo"": 1}",Shiny Buddha Evo -> Homura Evo + Chuuni Evo
636,listing_pair,"{""Poseidon Evo"": 2, ""Nami Evo"": 1}","{""Dark Mage Evo"": 1}",2 Poseidon Evo AND Nami Evo -> Dark Mage Evo 636,listing_pair,"{""Poseidon Evo"": 2, ""Nami Evo"": 1}","{""Dark Mage Evo"": 1}",2 Poseidon Evo AND Nami Evo -> Dark Mage Evo
712,explicit_for,"{""Roger Evo"": 1, ""Homura Evo"": 1}","{""Aizen Evo"": 1}",MY ROGER Evo AND Homura Evo FOR Aizen Evo
715,explicit_for,"{""Shiny Poseidon Evo"": 1, ""Dark Mage Evo"": 1, ""Chuuni Evo"": 2}","{""Homura Evo"": 1}","My Shiny Poseidon Evo, 1 Dark Mage Evo, 2x Chuuni Evo for Homura Evo"
742,explicit_for,"{""Shiny Chuuni Evo"": 1, ""Gilgamesh Evo"": 1}","{""Homura Evo"": 1}",My Shiny Chuuni Evo and Gilgamesh Evo for Homura Evo
776,explicit_for,"{""Shiny Mamy Evo"": 1, ""Shiny Dark Mage Evo"": 1}","{""Aizen Evo"": 1}",My Shiny Mamy Evo and Shiny Dark Mage Evo for Aizen Evo 776,explicit_for,"{""Shiny Mamy Evo"": 1, ""Shiny Dark Mage Evo"": 1}","{""Aizen Evo"": 1}",My Shiny Mamy Evo and Shiny Dark Mage Evo for Aizen Evo
800,listing_pair,"{""Homura Evo"": 2, ""Buddha Evo"": 1}","{""Aizen Evo"": 1}",2 Homura Evo+Buddha Evo -> Aizen Evo 800,listing_pair,"{""Homura Evo"": 2, ""Buddha Evo"": 1}","{""Aizen Evo"": 1}",2 Homura Evo+Buddha Evo -> Aizen Evo
1101,listing_pair,"{""Chuuni Evo"": 1, ""Cream Evo"": 1}","{""Dark Mage Evo"": 1}",Chuuni Evo AND Cream Evo -> Dark Mage Evo 1101,listing_pair,"{""Chuuni Evo"": 1, ""Cream Evo"": 1}","{""Dark Mage Evo"": 1}",Chuuni Evo AND Cream Evo -> Dark Mage Evo
@@ -24,3 +19,5 @@
1265,explicit_for,"{""Cid Evo"": 1, ""Skull Knight Evo"": 1, ""Dark Mage Evo"": 3}","{""Homura Evo"": 1}","Cid Evo,Skull Knight Evo, 3 Dark Mage Evo FOR Homura Evo" 1265,explicit_for,"{""Cid Evo"": 1, ""Skull Knight Evo"": 1, ""Dark Mage Evo"": 3}","{""Homura Evo"": 1}","Cid Evo,Skull Knight Evo, 3 Dark Mage Evo FOR Homura Evo"
1306,listing_pair,"{""Jiraiya Evo"": 1, ""Poseidon Evo"": 1}","{""Dark Mage Evo"": 1}",my Jiraiya Evo and Poseidon Evo -> Dark Mage Evo 1306,listing_pair,"{""Jiraiya Evo"": 1, ""Poseidon Evo"": 1}","{""Dark Mage Evo"": 1}",my Jiraiya Evo and Poseidon Evo -> Dark Mage Evo
1334,explicit_for,"{""Shiny Issei Evo"": 1, ""Shiny Nagumo Evo"": 1, ""Ice Lily Evo"": 1}","{""Shiny Buddha Evo"": 1}","Shiny Buddha Evo For Shiny Issei Evo, Shiny Nagumo Evo And Ice Lily Evo" 1334,explicit_for,"{""Shiny Issei Evo"": 1, ""Shiny Nagumo Evo"": 1, ""Ice Lily Evo"": 1}","{""Shiny Buddha Evo"": 1}","Shiny Buddha Evo For Shiny Issei Evo, Shiny Nagumo Evo And Ice Lily Evo"
1543,listing_pair,"{""Cid Evo"": 1, ""Skull Knight Unevo"": 1}","{""Dark Mage Evo"": 1}",Cid Evo and Skull Knight Unevo -> Dark Mage Evo
1702,explicit_for,"{""Shiny Poseidon Evo"": 1, ""Shiny Saki Evo"": 1, ""Shiny Tiger Evo"": 1}","{""Homura Evo"": 1}",My Shiny Poseidon Evo + Shiny Saki Evo + Shiny Tiger Evo for Homura Evo
1 source_row quote_type offered requested source_text
5 174 explicit_for {"Shiny Boros Evo": 1, "Shiny Gilgamesh Evo": 1} {"Shiny Emilia Evo": 1} Shiny Emilia Evo FOR Shiny Boros Evo AND Shiny Gilgamesh Evo
6 253 explicit_for {"Shiny Dark Mage Evo": 1, "Buddha Evo": 1} {"Homura Evo": 1} my Shiny Dark Mage Evo + Buddha Evo for Homura Evo
7 366 explicit_for {"Aizen Evo": 1, "Homura Evo": 1} {"Thorfinn Evo": 1} My Aizen Evo and Homura Evo for Thorfinn Evo
377 explicit_for {"Shiny Poseidon Evo": 1, "Dark Mage Evo": 1, "Chuuni Evo": 2} {"Homura Evo": 1} My Shiny Poseidon Evo, 1 Dark Mage Evo, 2x Chuuni Evo for Homura Evo
397 explicit_for {"Alucard Evo": 1, "Shiny Ice Queen Evo": 1} {"Aizen Evo": 1} MY Alucard Evo AND Shiny ICE QUEEN Evo FOR Aizen Evo
8 463 explicit_for {"Shiny Somber Evo": 1, "Shiny Sakamoto Evo": 1, "Jelly Evo": 1, "Cid Unevo": 2, "Nagumo Unevo": 2} {"Shiny Chuuni Evo": 1} Shiny Somber Evo + Shiny Sakamoto Evo + Jelly Evo + 2 x Cid Unevo + 2 x Nagumo Unevo for Shiny Chuuni Evo
9 536 listing_pair {"Shiny Buddha Evo": 1} {"Homura Evo": 1, "Chuuni Evo": 1} Shiny Buddha Evo -> Homura Evo + Chuuni Evo
10 636 listing_pair {"Poseidon Evo": 2, "Nami Evo": 1} {"Dark Mage Evo": 1} 2 Poseidon Evo AND Nami Evo -> Dark Mage Evo
712 explicit_for {"Roger Evo": 1, "Homura Evo": 1} {"Aizen Evo": 1} MY ROGER Evo AND Homura Evo FOR Aizen Evo
715 explicit_for {"Shiny Poseidon Evo": 1, "Dark Mage Evo": 1, "Chuuni Evo": 2} {"Homura Evo": 1} My Shiny Poseidon Evo, 1 Dark Mage Evo, 2x Chuuni Evo for Homura Evo
742 explicit_for {"Shiny Chuuni Evo": 1, "Gilgamesh Evo": 1} {"Homura Evo": 1} My Shiny Chuuni Evo and Gilgamesh Evo for Homura Evo
11 776 explicit_for {"Shiny Mamy Evo": 1, "Shiny Dark Mage Evo": 1} {"Aizen Evo": 1} My Shiny Mamy Evo and Shiny Dark Mage Evo for Aizen Evo
12 800 listing_pair {"Homura Evo": 2, "Buddha Evo": 1} {"Aizen Evo": 1} 2 Homura Evo+Buddha Evo -> Aizen Evo
13 1101 listing_pair {"Chuuni Evo": 1, "Cream Evo": 1} {"Dark Mage Evo": 1} Chuuni Evo AND Cream Evo -> Dark Mage Evo
19 1265 explicit_for {"Cid Evo": 1, "Skull Knight Evo": 1, "Dark Mage Evo": 3} {"Homura Evo": 1} Cid Evo,Skull Knight Evo, 3 Dark Mage Evo FOR Homura Evo
20 1306 listing_pair {"Jiraiya Evo": 1, "Poseidon Evo": 1} {"Dark Mage Evo": 1} my Jiraiya Evo and Poseidon Evo -> Dark Mage Evo
21 1334 explicit_for {"Shiny Issei Evo": 1, "Shiny Nagumo Evo": 1, "Ice Lily Evo": 1} {"Shiny Buddha Evo": 1} Shiny Buddha Evo For Shiny Issei Evo, Shiny Nagumo Evo And Ice Lily Evo
22 1543 listing_pair {"Cid Evo": 1, "Skull Knight Unevo": 1} {"Dark Mage Evo": 1} Cid Evo and Skull Knight Unevo -> Dark Mage Evo
23 1702 explicit_for {"Shiny Poseidon Evo": 1, "Shiny Saki Evo": 1, "Shiny Tiger Evo": 1} {"Homura Evo": 1} My Shiny Poseidon Evo + Shiny Saki Evo + Shiny Tiger Evo for Homura Evo
+4 -1
View File
@@ -6,7 +6,7 @@ from collections import Counter
import re import re
from calculate_interest_index import variants from calculate_interest_index import variants
from extract_exchange_quotes import FOR, parse_side from extract_exchange_quotes import FOR, only_stat_specific_inventory, parse_side
SEPARATOR = re.compile(r"\s*(?:\+|,|\band\b)\s*", re.IGNORECASE) SEPARATOR = re.compile(r"\s*(?:\+|,|\band\b)\s*", re.IGNORECASE)
@@ -69,6 +69,9 @@ def extract_bundle_quotes(rows: list[dict[str, str]]) -> list[dict]:
continue continue
if not set(offered) <= inventory or set(offered) & set(requested): if not set(offered) <= inventory or set(offered) & set(requested):
continue continue
if any(only_stat_specific_inventory(row.get("offer") or "", unit)
for unit in offered):
continue
key = (author, tuple(sorted(offered.items())), tuple(sorted(requested.items()))) key = (author, tuple(sorted(offered.items())), tuple(sorted(requested.items())))
if key in seen: if key in seen:
continue continue
+45 -43
View File
@@ -1,43 +1,45 @@
unit_variant,quote_count,asking_quote_count,completed_trade_count,full_fit_value,leave_one_out_min,leave_one_out_max,max_change_pct,most_influential_source_row,most_influential_evidence_type,most_influential_quote,disconnects_when_removed,status,conflicting_source_rows unit_variant,quote_count,asking_quote_count,explicit_ask_count,inferred_ask_count,completed_trade_count,full_fit_value,leave_one_out_min,leave_one_out_max,max_change_pct,most_influential_source_row,most_influential_evidence_type,most_influential_quote,disconnects_when_removed,status,conflicting_source_rows
Aizen Evo,9,9,0,1000.0,1000.0,1000.0,0.0,,,,,reference, Aizen Evo,8,8,6,2,0,1000.0,1000.0,1000.0,0.0,,,,,reference,
Alucard Evo,5,5,0,870.5,612.4,1006.1,29.7,6,asking_direct,MY Alucard Evo FOR Aizen Evo,,unstable,187 | 947 Alucard Evo,2,2,2,0,0,2488.9,840.0,2908.9,66.3,187,asking_direct_explicit,2 Homura Evo FOR Alucard Evo,,insufficient,
Alucard Unevo,1,1,0,947.8,931.4,971.0,2.5,187,asking_direct,2 Homura Evo FOR Alucard Evo,65 | 536 | 1334,insufficient, Alucard Unevo,1,1,1,0,0,1037.9,985.1,1077.5,5.1,1687,asking_direct_explicit,MY Homura Evo FOR 6 Aizen Evo,65 | 536 | 1334,insufficient,
Android 21 Evo,1,1,0,902.2,769.8,1063.1,17.8,6,asking_direct,MY Alucard Evo FOR Aizen Evo,52,insufficient, Android 21 Evo,1,1,1,0,0,1.0,1.0,840.0,83896.7,187,asking_direct_explicit,2 Homura Evo FOR Alucard Evo,52,insufficient,
Buddha Evo,5,5,0,97.8,54.0,140.6,44.7,115,asking_direct,Gilgamesh Unevo for my Buddha Evo,,unstable, Buddha Evo,5,5,3,2,0,258.1,172.2,441.4,71.1,800,asking_bundle_inferred,2 Homura Evo+Buddha Evo -> Aizen Evo,,unstable,
Chuuni Evo,7,7,0,93.4,48.9,115.5,47.7,750,asking_direct,Chuuni Evo -> Dark Mage Evo,,unstable, Chuuni Evo,6,6,2,4,0,254.2,154.5,328.3,39.2,1687,asking_direct_explicit,MY Homura Evo FOR 6 Aizen Evo,,unstable,
Cid Evo,2,2,0,365.8,216.1,542.2,48.2,1265,asking_bundle,"Cid Evo,Skull Knight Evo, 3 Dark Mage Evo FOR Homura Evo",,insufficient, Cid Evo,5,5,3,2,0,252.6,148.3,331.1,41.3,1687,asking_direct_explicit,MY Homura Evo FOR 6 Aizen Evo,,unstable,
Cid Unevo,1,1,0,63.1,1.0,69.2,98.4,228,asking_direct,Shiny Chuuni Evo for Aizen Evo,463,insufficient, Cid Unevo,1,1,1,0,0,65.8,17.7,70.3,73.1,228,asking_direct_explicit,Shiny Chuuni Evo for Aizen Evo,463,insufficient,
Cream Evo,1,1,0,229.4,217.2,266.9,16.3,750,asking_direct,Chuuni Evo -> Dark Mage Evo,1101,insufficient, Cream Evo,1,1,0,1,0,451.5,442.7,457.2,2.0,800,asking_bundle_inferred,2 Homura Evo+Buddha Evo -> Aizen Evo,1101,insufficient,
Dark Mage Evo,13,13,0,114.8,92.2,147.3,28.3,187,asking_direct,2 Homura Evo FOR Alucard Evo,,unstable, Dark Mage Evo,16,16,5,11,0,261.5,150.6,345.9,42.4,1687,asking_direct_explicit,MY Homura Evo FOR 6 Aizen Evo,,unstable,
Gilgamesh Evo,1,1,0,1.0,1.0,400.1,39906.6,228,asking_direct,Shiny Chuuni Evo for Aizen Evo,742,insufficient, Elf Mage Evo,1,1,0,1,0,1000.0,1000.0,1000.0,0.0,52,asking_direct_explicit,MY Shiny Gilgamesh Evo FOR THORFINN Evo,1641,insufficient,
Gilgamesh Unevo,1,1,0,132.5,98.5,173.6,31.0,800,asking_bundle,2 Homura Evo+Buddha Evo -> Aizen Evo,115,insufficient, Gilgamesh Unevo,1,1,1,0,0,286.6,204.0,462.9,61.5,800,asking_bundle_inferred,2 Homura Evo+Buddha Evo -> Aizen Evo,115,insufficient,
Homura Evo,15,15,0,610.9,469.0,813.4,33.1,187,asking_direct,2 Homura Evo FOR Alucard Evo,,unstable,187 | 947 Homura Evo,12,12,8,4,0,1360.1,694.9,1858.5,48.9,1687,asking_direct_explicit,MY Homura Evo FOR 6 Aizen Evo,,unstable,
Ice Lily Evo,1,1,0,367.0,325.5,426.2,16.1,187,asking_direct,2 Homura Evo FOR Alucard Evo,536 | 1334,insufficient, Ice Lily Evo,1,1,1,0,0,596.5,462.0,697.2,22.6,1687,asking_direct_explicit,MY Homura Evo FOR 6 Aizen Evo,536 | 1334,insufficient,
Jelly Evo,1,1,0,531.5,486.4,534.6,8.5,228,asking_direct,Shiny Chuuni Evo for Aizen Evo,463,insufficient, Jelly Evo,1,1,1,0,0,532.9,508.9,535.1,4.5,228,asking_direct_explicit,Shiny Chuuni Evo for Aizen Evo,463,insufficient,
Jiraiya Evo,1,1,0,478.2,313.5,542.2,34.4,636,asking_bundle,2 Poseidon Evo AND Nami Evo -> Dark Mage Evo,1306,insufficient, Jiraiya Evo,1,1,0,1,0,526.3,494.7,593.0,12.7,1378,asking_direct_explicit,MY 2 Poseidon Evo FOR Dark Mage Evo,1306,insufficient,
Kisuke Evo,1,1,0,386.3,345.1,437.5,13.2,187,asking_direct,2 Homura Evo FOR Alucard Evo,1195,insufficient, Kisuke Evo,1,1,1,0,0,520.5,372.4,614.9,28.5,1687,asking_direct_explicit,MY Homura Evo FOR 6 Aizen Evo,1195,insufficient,
Nagumo Unevo,1,1,0,63.1,1.0,69.2,98.4,228,asking_direct,Shiny Chuuni Evo for Aizen Evo,463,insufficient, Nagumo Evo,1,1,0,1,0,340.6,241.6,416.0,29.1,1687,asking_direct_explicit,MY Homura Evo FOR 6 Aizen Evo,1540,insufficient,
Nami Evo,1,1,0,702.5,554.5,808.7,21.1,1306,asking_bundle,my Jiraiya Evo and Poseidon Evo -> Dark Mage Evo,636,insufficient, Nagumo Unevo,1,1,1,0,0,65.8,17.7,70.3,73.1,228,asking_direct_explicit,Shiny Chuuni Evo for Aizen Evo,463,insufficient,
Poseidon Evo,3,3,0,1.0,1.0,1.0,0.0,6,asking_direct,MY Alucard Evo FOR Aizen Evo,,ranked, Nami Evo,1,1,0,1,0,599.9,591.8,698.6,16.5,1378,asking_direct_explicit,MY 2 Poseidon Evo FOR Dark Mage Evo,636,insufficient,
Roger Evo,1,1,0,518.9,359.5,630.7,30.7,187,asking_direct,2 Homura Evo FOR Alucard Evo,712,insufficient, Poseidon Evo,4,4,1,3,0,118.8,1.0,159.8,99.2,1378,asking_direct_explicit,MY 2 Poseidon Evo FOR Dark Mage Evo,,unstable,
Shiny Boros Evo,1,1,0,209.6,187.0,572.0,172.9,52,asking_direct,MY Shiny Gilgamesh Evo FOR THORFINN Evo,,insufficient, Shiny Boros Evo,1,1,1,0,0,183.8,24.8,726.8,295.5,52,asking_direct_explicit,MY Shiny Gilgamesh Evo FOR THORFINN Evo,,insufficient,
Shiny Buddha Evo,2,2,0,901.8,747.0,1061.1,17.7,187,asking_direct,2 Homura Evo FOR Alucard Evo,536,insufficient, Shiny Buddha Evo,2,2,1,1,0,1520.0,1157.6,1791.2,23.8,1687,asking_direct_explicit,MY Homura Evo FOR 6 Aizen Evo,536,insufficient,
Shiny Chuuni Evo,4,4,0,947.3,363.8,987.1,61.6,228,asking_direct,Shiny Chuuni Evo for Aizen Evo,,unstable, Shiny Chuuni Evo,4,4,4,0,0,965.2,654.4,994.1,32.2,228,asking_direct_explicit,Shiny Chuuni Evo for Aizen Evo,,unstable,
Shiny Dark Mage Evo,4,4,0,616.1,523.8,746.4,21.2,187,asking_direct,2 Homura Evo FOR Alucard Evo,,ranked, Shiny Dark Mage Evo,4,4,3,1,0,986.0,646.4,1304.6,34.4,1687,asking_direct_explicit,MY Homura Evo FOR 6 Aizen Evo,,unstable,
Shiny Elf Mage Evo,1,1,0,214.8,198.8,450.1,109.6,228,asking_direct,Shiny Chuuni Evo for Aizen Evo,47,insufficient, Shiny Elf Mage Evo,1,1,1,0,0,207.6,198.6,332.9,60.4,228,asking_direct_explicit,Shiny Chuuni Evo for Aizen Evo,47,insufficient,
Shiny Emilia Evo,1,1,0,1341.9,1113.3,1557.7,17.0,52,asking_direct,MY Shiny Gilgamesh Evo FOR THORFINN Evo,174,insufficient, Shiny Emilia Evo,1,1,1,0,0,1688.3,1357.1,1784.6,19.6,52,asking_direct_explicit,MY Shiny Gilgamesh Evo FOR THORFINN Evo,174,insufficient,
Shiny Gilgamesh Evo,2,2,0,1224.6,572.0,1347.3,53.3,52,asking_direct,MY Shiny Gilgamesh Evo FOR THORFINN Evo,,insufficient, Shiny Gilgamesh Evo,2,2,2,0,0,1690.4,726.8,1971.6,57.0,52,asking_direct_explicit,MY Shiny Gilgamesh Evo FOR THORFINN Evo,,insufficient,
Shiny Homura Evo,3,3,0,1746.2,1569.3,1792.9,10.1,174,asking_bundle,"Shiny Homura Evo FOR Shiny Boros Evo, Shiny Gilgamesh Evo, 2x Shiny Mamy Evo",,ranked, Shiny Homura Evo,3,3,3,0,0,2116.6,1602.2,2225.4,24.3,52,asking_bundle_explicit,MY Android 21 Evo + Alucard Evo FOR Shiny Homura Evo,,ranked,
Shiny Ice Queen Evo,1,1,0,314.6,207.8,517.8,64.6,6,asking_direct,MY Alucard Evo FOR Aizen Evo,397,insufficient, Shiny Issei Evo,1,1,1,0,0,596.5,462.0,697.2,22.6,1687,asking_direct_explicit,MY Homura Evo FOR 6 Aizen Evo,536 | 1334,insufficient,
Shiny Issei Evo,1,1,0,367.0,325.5,426.2,16.1,187,asking_direct,2 Homura Evo FOR Alucard Evo,536 | 1334,insufficient, Shiny Killstreak Evo,1,1,0,1,0,340.6,241.6,416.0,29.1,1687,asking_direct_explicit,MY Homura Evo FOR 6 Aizen Evo,490,insufficient,
Shiny Killstreak Evo,1,1,0,148.8,127.1,180.1,21.0,187,asking_direct,2 Homura Evo FOR Alucard Evo,490,insufficient, Shiny Mamy Evo,2,2,2,0,0,169.2,1.0,347.2,105.2,776,asking_bundle_explicit,My Shiny Mamy Evo and Shiny Dark Mage Evo for Aizen Evo,,insufficient,
Shiny Mamy Evo,2,2,0,324.2,245.5,587.5,81.2,174,asking_bundle,"Shiny Homura Evo FOR Shiny Boros Evo, Shiny Gilgamesh Evo, 2x Shiny Mamy Evo",,insufficient, Shiny Nagumo Evo,2,2,2,0,0,520.7,491.9,577.3,10.9,65,asking_direct_explicit,2 Shiny Nagumo Evo for Alucard Unevo,536 | 1334,insufficient,
Shiny Nagumo Evo,2,2,0,471.5,395.1,484.2,16.2,65,asking_direct,2 Shiny Nagumo Evo for Alucard Unevo,536 | 1334,insufficient, Shiny Piccolo Evo,1,1,1,0,0,207.6,198.6,332.9,60.4,228,asking_direct_explicit,Shiny Chuuni Evo for Aizen Evo,47,insufficient,
Shiny Piccolo Evo,1,1,0,214.8,198.8,450.1,109.6,228,asking_direct,Shiny Chuuni Evo for Aizen Evo,47,insufficient, Shiny Poseidon Evo,2,2,2,0,0,942.0,525.8,988.0,44.2,1357,asking_direct_explicit,MY Shiny Poseidon Evo FOR Shiny Chuuni Evo,,insufficient,
Shiny Poseidon Evo,2,2,0,497.7,427.4,598.1,20.2,187,asking_direct,2 Homura Evo FOR Alucard Evo,,insufficient, Shiny Power Evo,1,1,1,0,0,1091.8,686.7,1177.4,37.1,52,asking_bundle_explicit,MY Android 21 Evo + Alucard Evo FOR Shiny Homura Evo,1138,insufficient,
Shiny Power Evo,1,1,0,800.2,660.9,837.0,17.4,174,asking_bundle,"Shiny Homura Evo FOR Shiny Boros Evo, Shiny Gilgamesh Evo, 2x Shiny Mamy Evo",1138,insufficient, Shiny Sakamoto Evo,1,1,1,0,0,532.9,508.9,535.1,4.5,228,asking_direct_explicit,Shiny Chuuni Evo for Aizen Evo,463,insufficient,
Shiny Sakamoto Evo,1,1,0,531.5,486.4,534.6,8.5,228,asking_direct,Shiny Chuuni Evo for Aizen Evo,463,insufficient, Shiny Saki Evo,1,1,1,0,0,362.1,101.5,557.4,72.0,1687,asking_direct_explicit,MY Homura Evo FOR 6 Aizen Evo,1702,insufficient,
Shiny Somber Evo,1,1,0,531.5,486.4,534.6,8.5,228,asking_direct,Shiny Chuuni Evo for Aizen Evo,463,insufficient, Shiny Somber Evo,1,1,1,0,0,532.9,508.9,535.1,4.5,228,asking_direct_explicit,Shiny Chuuni Evo for Aizen Evo,463,insufficient,
Shiny Yoshina Evo,1,1,0,493.7,424.5,644.0,30.5,1195,asking_bundle,Homura Evo for my Shiny Yoshina Evo+Chuuni Evo+Buddha Evo+kisuke Evo,,insufficient, Shiny Tiger Evo,1,1,1,0,0,362.1,101.5,557.4,72.0,1687,asking_direct_explicit,MY Homura Evo FOR 6 Aizen Evo,1702,insufficient,
Skull Knight Evo,1,1,0,471.5,437.8,541.9,14.9,636,asking_bundle,2 Poseidon Evo AND Nami Evo -> Dark Mage Evo,1265,insufficient, Shiny Yoshina Evo,1,1,1,0,0,686.8,466.5,899.5,32.1,1687,asking_direct_explicit,MY Homura Evo FOR 6 Aizen Evo,,insufficient,
Thorfinn Evo,2,2,0,1265.2,747.1,1490.9,41.0,366,asking_bundle,My Aizen Evo and Homura Evo for Thorfinn Evo,,insufficient, Skull Knight Evo,1,1,1,0,0,674.5,564.9,754.6,16.3,1687,asking_direct_explicit,MY Homura Evo FOR 6 Aizen Evo,1265,insufficient,
Skull Knight Unevo,1,1,0,1,0,452.4,448.6,459.1,1.5,1624,asking_direct_explicit,MY Cid Evo FOR Dark Mage Evo,1543,insufficient,
Thorfinn Evo,2,2,2,0,0,1750.6,846.2,2116.1,51.7,366,asking_bundle_explicit,My Aizen Evo and Homura Evo for Thorfinn Evo,,insufficient,
1 unit_variant quote_count asking_quote_count explicit_ask_count inferred_ask_count completed_trade_count full_fit_value leave_one_out_min leave_one_out_max max_change_pct most_influential_source_row most_influential_evidence_type most_influential_quote disconnects_when_removed status conflicting_source_rows
2 Aizen Evo 9 8 9 8 6 2 0 1000.0 1000.0 1000.0 0.0 reference
3 Alucard Evo 5 2 5 2 2 0 0 870.5 2488.9 612.4 840.0 1006.1 2908.9 29.7 66.3 6 187 asking_direct asking_direct_explicit MY Alucard Evo FOR Aizen Evo 2 Homura Evo FOR Alucard Evo unstable insufficient 187 | 947
4 Alucard Unevo 1 1 1 0 0 947.8 1037.9 931.4 985.1 971.0 1077.5 2.5 5.1 187 1687 asking_direct asking_direct_explicit 2 Homura Evo FOR Alucard Evo MY Homura Evo FOR 6 Aizen Evo 65 | 536 | 1334 insufficient
5 Android 21 Evo 1 1 1 0 0 902.2 1.0 769.8 1.0 1063.1 840.0 17.8 83896.7 6 187 asking_direct asking_direct_explicit MY Alucard Evo FOR Aizen Evo 2 Homura Evo FOR Alucard Evo 52 insufficient
6 Buddha Evo 5 5 3 2 0 97.8 258.1 54.0 172.2 140.6 441.4 44.7 71.1 115 800 asking_direct asking_bundle_inferred Gilgamesh Unevo for my Buddha Evo 2 Homura Evo+Buddha Evo -> Aizen Evo unstable
7 Chuuni Evo 7 6 7 6 2 4 0 93.4 254.2 48.9 154.5 115.5 328.3 47.7 39.2 750 1687 asking_direct asking_direct_explicit Chuuni Evo -> Dark Mage Evo MY Homura Evo FOR 6 Aizen Evo unstable
8 Cid Evo 2 5 2 5 3 2 0 365.8 252.6 216.1 148.3 542.2 331.1 48.2 41.3 1265 1687 asking_bundle asking_direct_explicit Cid Evo,Skull Knight Evo, 3 Dark Mage Evo FOR Homura Evo MY Homura Evo FOR 6 Aizen Evo insufficient unstable
9 Cid Unevo 1 1 1 0 0 63.1 65.8 1.0 17.7 69.2 70.3 98.4 73.1 228 asking_direct asking_direct_explicit Shiny Chuuni Evo for Aizen Evo 463 insufficient
10 Cream Evo 1 1 0 1 0 229.4 451.5 217.2 442.7 266.9 457.2 16.3 2.0 750 800 asking_direct asking_bundle_inferred Chuuni Evo -> Dark Mage Evo 2 Homura Evo+Buddha Evo -> Aizen Evo 1101 insufficient
11 Dark Mage Evo 13 16 13 16 5 11 0 114.8 261.5 92.2 150.6 147.3 345.9 28.3 42.4 187 1687 asking_direct asking_direct_explicit 2 Homura Evo FOR Alucard Evo MY Homura Evo FOR 6 Aizen Evo unstable
12 Gilgamesh Evo Elf Mage Evo 1 1 0 1 0 1.0 1000.0 1.0 1000.0 400.1 1000.0 39906.6 0.0 228 52 asking_direct asking_direct_explicit Shiny Chuuni Evo for Aizen Evo MY Shiny Gilgamesh Evo FOR THORFINN Evo 742 1641 insufficient
13 Gilgamesh Unevo 1 1 1 0 0 132.5 286.6 98.5 204.0 173.6 462.9 31.0 61.5 800 asking_bundle asking_bundle_inferred 2 Homura Evo+Buddha Evo -> Aizen Evo 115 insufficient
14 Homura Evo 15 12 15 12 8 4 0 610.9 1360.1 469.0 694.9 813.4 1858.5 33.1 48.9 187 1687 asking_direct asking_direct_explicit 2 Homura Evo FOR Alucard Evo MY Homura Evo FOR 6 Aizen Evo unstable 187 | 947
15 Ice Lily Evo 1 1 1 0 0 367.0 596.5 325.5 462.0 426.2 697.2 16.1 22.6 187 1687 asking_direct asking_direct_explicit 2 Homura Evo FOR Alucard Evo MY Homura Evo FOR 6 Aizen Evo 536 | 1334 insufficient
16 Jelly Evo 1 1 1 0 0 531.5 532.9 486.4 508.9 534.6 535.1 8.5 4.5 228 asking_direct asking_direct_explicit Shiny Chuuni Evo for Aizen Evo 463 insufficient
17 Jiraiya Evo 1 1 0 1 0 478.2 526.3 313.5 494.7 542.2 593.0 34.4 12.7 636 1378 asking_bundle asking_direct_explicit 2 Poseidon Evo AND Nami Evo -> Dark Mage Evo MY 2 Poseidon Evo FOR Dark Mage Evo 1306 insufficient
18 Kisuke Evo 1 1 1 0 0 386.3 520.5 345.1 372.4 437.5 614.9 13.2 28.5 187 1687 asking_direct asking_direct_explicit 2 Homura Evo FOR Alucard Evo MY Homura Evo FOR 6 Aizen Evo 1195 insufficient
19 Nagumo Unevo Nagumo Evo 1 1 0 1 0 63.1 340.6 1.0 241.6 69.2 416.0 98.4 29.1 228 1687 asking_direct asking_direct_explicit Shiny Chuuni Evo for Aizen Evo MY Homura Evo FOR 6 Aizen Evo 463 1540 insufficient
20 Nami Evo Nagumo Unevo 1 1 1 0 0 702.5 65.8 554.5 17.7 808.7 70.3 21.1 73.1 1306 228 asking_bundle asking_direct_explicit my Jiraiya Evo and Poseidon Evo -> Dark Mage Evo Shiny Chuuni Evo for Aizen Evo 636 463 insufficient
21 Poseidon Evo Nami Evo 3 1 3 1 0 1 0 1.0 599.9 1.0 591.8 1.0 698.6 0.0 16.5 6 1378 asking_direct asking_direct_explicit MY Alucard Evo FOR Aizen Evo MY 2 Poseidon Evo FOR Dark Mage Evo 636 ranked insufficient
22 Roger Evo Poseidon Evo 1 4 1 4 1 3 0 518.9 118.8 359.5 1.0 630.7 159.8 30.7 99.2 187 1378 asking_direct asking_direct_explicit 2 Homura Evo FOR Alucard Evo MY 2 Poseidon Evo FOR Dark Mage Evo 712 insufficient unstable
23 Shiny Boros Evo 1 1 1 0 0 209.6 183.8 187.0 24.8 572.0 726.8 172.9 295.5 52 asking_direct asking_direct_explicit MY Shiny Gilgamesh Evo FOR THORFINN Evo insufficient
24 Shiny Buddha Evo 2 2 1 1 0 901.8 1520.0 747.0 1157.6 1061.1 1791.2 17.7 23.8 187 1687 asking_direct asking_direct_explicit 2 Homura Evo FOR Alucard Evo MY Homura Evo FOR 6 Aizen Evo 536 insufficient
25 Shiny Chuuni Evo 4 4 4 0 0 947.3 965.2 363.8 654.4 987.1 994.1 61.6 32.2 228 asking_direct asking_direct_explicit Shiny Chuuni Evo for Aizen Evo unstable
26 Shiny Dark Mage Evo 4 4 3 1 0 616.1 986.0 523.8 646.4 746.4 1304.6 21.2 34.4 187 1687 asking_direct asking_direct_explicit 2 Homura Evo FOR Alucard Evo MY Homura Evo FOR 6 Aizen Evo ranked unstable
27 Shiny Elf Mage Evo 1 1 1 0 0 214.8 207.6 198.8 198.6 450.1 332.9 109.6 60.4 228 asking_direct asking_direct_explicit Shiny Chuuni Evo for Aizen Evo 47 insufficient
28 Shiny Emilia Evo 1 1 1 0 0 1341.9 1688.3 1113.3 1357.1 1557.7 1784.6 17.0 19.6 52 asking_direct asking_direct_explicit MY Shiny Gilgamesh Evo FOR THORFINN Evo 174 insufficient
29 Shiny Gilgamesh Evo 2 2 2 0 0 1224.6 1690.4 572.0 726.8 1347.3 1971.6 53.3 57.0 52 asking_direct asking_direct_explicit MY Shiny Gilgamesh Evo FOR THORFINN Evo insufficient
30 Shiny Homura Evo 3 3 3 0 0 1746.2 2116.6 1569.3 1602.2 1792.9 2225.4 10.1 24.3 174 52 asking_bundle asking_bundle_explicit Shiny Homura Evo FOR Shiny Boros Evo, Shiny Gilgamesh Evo, 2x Shiny Mamy Evo MY Android 21 Evo + Alucard Evo FOR Shiny Homura Evo ranked
31 Shiny Ice Queen Evo Shiny Issei Evo 1 1 1 0 0 314.6 596.5 207.8 462.0 517.8 697.2 64.6 22.6 6 1687 asking_direct asking_direct_explicit MY Alucard Evo FOR Aizen Evo MY Homura Evo FOR 6 Aizen Evo 397 536 | 1334 insufficient
32 Shiny Issei Evo Shiny Killstreak Evo 1 1 0 1 0 367.0 340.6 325.5 241.6 426.2 416.0 16.1 29.1 187 1687 asking_direct asking_direct_explicit 2 Homura Evo FOR Alucard Evo MY Homura Evo FOR 6 Aizen Evo 536 | 1334 490 insufficient
33 Shiny Killstreak Evo Shiny Mamy Evo 1 2 1 2 2 0 0 148.8 169.2 127.1 1.0 180.1 347.2 21.0 105.2 187 776 asking_direct asking_bundle_explicit 2 Homura Evo FOR Alucard Evo My Shiny Mamy Evo and Shiny Dark Mage Evo for Aizen Evo 490 insufficient
34 Shiny Mamy Evo Shiny Nagumo Evo 2 2 2 0 0 324.2 520.7 245.5 491.9 587.5 577.3 81.2 10.9 174 65 asking_bundle asking_direct_explicit Shiny Homura Evo FOR Shiny Boros Evo, Shiny Gilgamesh Evo, 2x Shiny Mamy Evo 2 Shiny Nagumo Evo for Alucard Unevo 536 | 1334 insufficient
35 Shiny Nagumo Evo Shiny Piccolo Evo 2 1 2 1 1 0 0 471.5 207.6 395.1 198.6 484.2 332.9 16.2 60.4 65 228 asking_direct asking_direct_explicit 2 Shiny Nagumo Evo for Alucard Unevo Shiny Chuuni Evo for Aizen Evo 536 | 1334 47 insufficient
36 Shiny Piccolo Evo Shiny Poseidon Evo 1 2 1 2 2 0 0 214.8 942.0 198.8 525.8 450.1 988.0 109.6 44.2 228 1357 asking_direct asking_direct_explicit Shiny Chuuni Evo for Aizen Evo MY Shiny Poseidon Evo FOR Shiny Chuuni Evo 47 insufficient
37 Shiny Poseidon Evo Shiny Power Evo 2 1 2 1 1 0 0 497.7 1091.8 427.4 686.7 598.1 1177.4 20.2 37.1 187 52 asking_direct asking_bundle_explicit 2 Homura Evo FOR Alucard Evo MY Android 21 Evo + Alucard Evo FOR Shiny Homura Evo 1138 insufficient
38 Shiny Power Evo Shiny Sakamoto Evo 1 1 1 0 0 800.2 532.9 660.9 508.9 837.0 535.1 17.4 4.5 174 228 asking_bundle asking_direct_explicit Shiny Homura Evo FOR Shiny Boros Evo, Shiny Gilgamesh Evo, 2x Shiny Mamy Evo Shiny Chuuni Evo for Aizen Evo 1138 463 insufficient
39 Shiny Sakamoto Evo Shiny Saki Evo 1 1 1 0 0 531.5 362.1 486.4 101.5 534.6 557.4 8.5 72.0 228 1687 asking_direct asking_direct_explicit Shiny Chuuni Evo for Aizen Evo MY Homura Evo FOR 6 Aizen Evo 463 1702 insufficient
40 Shiny Somber Evo 1 1 1 0 0 531.5 532.9 486.4 508.9 534.6 535.1 8.5 4.5 228 asking_direct asking_direct_explicit Shiny Chuuni Evo for Aizen Evo 463 insufficient
41 Shiny Yoshina Evo Shiny Tiger Evo 1 1 1 0 0 493.7 362.1 424.5 101.5 644.0 557.4 30.5 72.0 1195 1687 asking_bundle asking_direct_explicit Homura Evo for my Shiny Yoshina Evo+Chuuni Evo+Buddha Evo+kisuke Evo MY Homura Evo FOR 6 Aizen Evo 1702 insufficient
42 Skull Knight Evo Shiny Yoshina Evo 1 1 1 0 0 471.5 686.8 437.8 466.5 541.9 899.5 14.9 32.1 636 1687 asking_bundle asking_direct_explicit 2 Poseidon Evo AND Nami Evo -> Dark Mage Evo MY Homura Evo FOR 6 Aizen Evo 1265 insufficient
43 Thorfinn Evo Skull Knight Evo 2 1 2 1 1 0 0 1265.2 674.5 747.1 564.9 1490.9 754.6 41.0 16.3 366 1687 asking_bundle asking_direct_explicit My Aizen Evo and Homura Evo for Thorfinn Evo MY Homura Evo FOR 6 Aizen Evo 1265 insufficient
44 Skull Knight Unevo 1 1 0 1 0 452.4 448.6 459.1 1.5 1624 asking_direct_explicit MY Cid Evo FOR Dark Mage Evo 1543 insufficient
45 Thorfinn Evo 2 2 2 0 0 1750.6 846.2 2116.1 51.7 366 asking_bundle_explicit My Aizen Evo and Homura Evo for Thorfinn Evo insufficient
+693 -796
View File
File diff suppressed because it is too large Load Diff
+33 -2
View File
@@ -924,6 +924,8 @@ def normalize_fodder_units(value: str) -> str:
def normalize_unit_names(value: str) -> str: def normalize_unit_names(value: str) -> str:
value = re.sub(r"(?<!\w)×\s*(\d+)(?=\s+\w)", r"\1x", value)
value = re.sub(r"\b(\d+)\s*×\s*(?=\w)", r"\1x ", value)
value = re.sub(r"\bInfinity\s+Mage\s*/\s*Merlin\s+(Evo|Unevo)\b", value = re.sub(r"\bInfinity\s+Mage\s*/\s*Merlin\s+(Evo|Unevo)\b",
lambda m: "Merlin " + m.group(1).capitalize(), value, flags=re.I) lambda m: "Merlin " + m.group(1).capitalize(), value, flags=re.I)
value = re.sub(r"\bShiny(?=Heathcliff\b)", "Shiny ", value, flags=re.I) value = re.sub(r"\bShiny(?=Heathcliff\b)", "Shiny ", value, flags=re.I)
@@ -1474,6 +1476,11 @@ def normalize_evo_status(value: str) -> str:
def normalize_variant_quantities(value: str) -> str: def normalize_variant_quantities(value: str) -> str:
"""Expand explicit inventory totals without losing their shiny or Evo status.""" """Expand explicit inventory totals without losing their shiny or Evo status."""
unit = UNIT_MENTION.pattern unit = UNIT_MENTION.pattern
value = re.sub(
rf"(?P<unit>{unit})\s+(?P<status>Evo|Unevo)\s+×(?P<count>\d+)\b",
lambda m: f'{m.group("count")}x {m.group("unit")} {m.group("status")}',
value, flags=re.I,
)
value = re.sub(r"\b3\s+Fodder\s+Units\s*\(\s*2\s+Unevo\s*,\s*1\s+Evo\s*\)", value = re.sub(r"\b3\s+Fodder\s+Units\s*\(\s*2\s+Unevo\s*,\s*1\s+Evo\s*\)",
"2x Fodder Units Unevo | 1x Fodder Units Evo", value, flags=re.I) "2x Fodder Units Unevo | 1x Fodder Units Evo", value, flags=re.I)
@@ -1622,6 +1629,26 @@ def clean_offer_items(offer: str) -> str:
return " | ".join(kept) return " | ".join(kept)
def separate_received_bid(offer: str) -> tuple[str, str]:
"""Keep an already received best/high offer out of owned inventory."""
owned: list[str] = []
bids: list[str] = []
for raw in offer.split("|"):
part = raw.strip()
match = re.search(r"\b(?:BEST|HIGH)\s+OFFER\s*:?\s*", part, re.I)
if match:
if part[:match.start()].strip(" ,;:-"):
owned.append(part[:match.start()].strip(" ,;:-"))
bid = part[match.end():].strip(" ,;:-")
if bid:
bids.append(bid)
continue
part = re.sub(r"^PRE[-\s]?TRADE\s+", "", part, flags=re.I)
if part:
owned.append(part)
return " | ".join(owned), " | ".join(bids)
def clean_request_segments(value: str) -> str: def clean_request_segments(value: str) -> str:
"""Keep requested units and conditions, discarding clear UI/chat fragments.""" """Keep requested units and conditions, discarding clear UI/chat fragments."""
kept = [] kept = []
@@ -2533,7 +2560,8 @@ def export_csv(conn: sqlite3.Connection, output: Path, detailed: bool) -> int:
writer = csv.writer(stream) writer = csv.writer(stream)
if detailed: if detailed:
writer.writerow(["offer", "looking_for", "lf", "mlf", "nlf", writer.writerow(["offer", "looking_for", "lf", "mlf", "nlf",
"author_hash", "reposts_seen", "updates_seen"]) "author_hash", "reposts_seen", "updates_seen",
"pretrade", "received_bid"])
else: else:
writer.writerow(["offer", "looking_for"]) writer.writerow(["offer", "looking_for"])
rows = conn.execute( rows = conn.execute(
@@ -2541,7 +2569,9 @@ def export_csv(conn: sqlite3.Connection, output: Path, detailed: bool) -> int:
FROM trades ORDER BY id""" FROM trades ORDER BY id"""
) )
for row in rows: for row in rows:
pretrade = bool(re.search(r"\b(?:PRE|PRE[-\s]?TRADE)\b", row[0], re.I))
offer = clean_offer_items(clean_export_text(row[0])) offer = clean_offer_items(clean_export_text(row[0]))
offer, received_bid = separate_received_bid(offer)
if not offer: if not offer:
continue continue
values = list(row) values = list(row)
@@ -2569,6 +2599,7 @@ def export_csv(conn: sqlite3.Connection, output: Path, detailed: bool) -> int:
offer = recover_explicit_my_offers(offer, values[2], values[3]) offer = recover_explicit_my_offers(offer, values[2], values[3])
offer = recover_partial_proposal_offers(offer, values[2], values[3]) offer = recover_partial_proposal_offers(offer, values[2], values[3])
values[0] = offer values[0] = offer
values.extend(["yes" if pretrade else "", received_bid])
export_values = values if detailed else values[:2] export_values = values if detailed else values[:2]
writer.writerow([excel_safe(v) if isinstance(v, str) else v for v in export_values]) writer.writerow([excel_safe(v) if isinstance(v, str) else v for v in export_values])
count += 1 count += 1
@@ -2580,7 +2611,7 @@ def export_csv(conn: sqlite3.Connection, output: Path, detailed: bool) -> int:
"SELECT 1 FROM trades WHERE author_hash=? AND canon_offer=? LIMIT 1", key "SELECT 1 FROM trades WHERE author_hash=? AND canon_offer=? LIMIT 1", key
).fetchone() ).fetchone()
if (friend_offer and key not in emitted_friends and not already_stored): if (friend_offer and key not in emitted_friends and not already_stored):
friend_values = [friend_offer, "", "", "", "", friend_hash, 1, 0] friend_values = [friend_offer, "", "", "", "", friend_hash, 1, 0, "", ""]
writer.writerow([excel_safe(v) if isinstance(v, str) else v writer.writerow([excel_safe(v) if isinstance(v, str) else v
for v in (friend_values if detailed else friend_values[:2])]) for v in (friend_values if detailed else friend_values[:2])])
emitted_friends.add(key) emitted_friends.add(key)
+46
View File
@@ -0,0 +1,46 @@
unit_variant,all_fit,all_ranked_value,all_confidence,all_explicit_asks,all_inferred_asks,explicit_only_fit,explicit_only_ranked_value,explicit_only_confidence,change_pct_without_inferred,explicit_only_connection
Aizen Evo,1000.0,1000,low,6,2,1000.0,1000,low,0.0,connected
Alucard Evo,2488.9,,insufficient,2,0,3033.2,,insufficient,21.9,connected
Alucard Unevo,1037.9,,insufficient,1,0,,,disconnected,,disconnected
Android 21 Evo,1.0,,insufficient,1,0,1.0,,insufficient,0.0,connected
Buddha Evo,258.1,,unstable,3,2,804.8,,unstable,211.8,connected
Chuuni Evo,254.2,,unstable,2,4,348.1,,insufficient,36.9,connected
Cid Evo,252.6,,unstable,3,2,350.7,,unstable,38.8,connected
Cid Unevo,65.8,,insufficient,1,0,66.5,,insufficient,1.1,connected
Cream Evo,451.5,,insufficient,0,1,,,disconnected,,disconnected
Dark Mage Evo,261.5,,unstable,5,11,340.8,,unstable,30.3,connected
Elf Mage Evo,1000.0,,insufficient,0,1,,,disconnected,,disconnected
Gilgamesh Unevo,286.6,,insufficient,1,0,812.3,,insufficient,183.4,connected
Homura Evo,1360.1,,unstable,8,4,1669.1,,unstable,22.7,connected
Ice Lily Evo,596.5,,insufficient,1,0,,,disconnected,,disconnected
Jelly Evo,532.9,,insufficient,1,0,533.2,,insufficient,0.1,connected
Jiraiya Evo,526.3,,insufficient,0,1,,,disconnected,,disconnected
Kisuke Evo,520.5,,insufficient,1,0,455.6,,insufficient,-12.5,connected
Nagumo Evo,340.6,,insufficient,0,1,,,disconnected,,disconnected
Nagumo Unevo,65.8,,insufficient,1,0,66.5,,insufficient,1.1,connected
Nami Evo,599.9,,insufficient,0,1,,,disconnected,,disconnected
Poseidon Evo,118.8,,unstable,1,3,188.6,,insufficient,58.8,connected
Shiny Aizen Evo,,,constraint_only,0,0,,,constraint_only,,constraint_only
Shiny Boros Evo,183.8,,insufficient,1,0,67.0,,insufficient,-63.5,connected
Shiny Buddha Evo,1520.0,,insufficient,1,1,,,disconnected,,disconnected
Shiny Chuuni Evo,965.2,,unstable,4,0,969.4,,unstable,0.4,connected
Shiny Dark Mage Evo,986.0,,unstable,3,1,820.6,,unstable,-16.8,connected
Shiny Elf Mage Evo,207.6,,insufficient,1,0,205.9,,insufficient,-0.8,connected
Shiny Emilia Evo,1688.3,,insufficient,1,0,1730.7,,insufficient,2.5,connected
Shiny Gilgamesh Evo,1690.4,,insufficient,2,0,1861.1,,insufficient,10.1,connected
Shiny Homura Evo,2116.6,2100,very_low,3,0,2312.0,,unstable,9.2,connected
Shiny Issei Evo,596.5,,insufficient,1,0,,,disconnected,,disconnected
Shiny Killstreak Evo,340.6,,insufficient,0,1,,,disconnected,,disconnected
Shiny Mamy Evo,169.2,,insufficient,2,0,267.8,,insufficient,58.3,connected
Shiny Nagumo Evo,520.7,,insufficient,2,0,,,disconnected,,disconnected
Shiny Piccolo Evo,207.6,,insufficient,1,0,205.9,,insufficient,-0.8,connected
Shiny Poseidon Evo,942.0,,insufficient,2,0,950.7,,insufficient,0.9,connected
Shiny Power Evo,1091.8,,insufficient,1,0,1245.6,,insufficient,14.1,connected
Shiny Sakamoto Evo,532.9,,insufficient,1,0,533.2,,insufficient,0.1,connected
Shiny Saki Evo,362.1,,insufficient,1,0,483.2,,insufficient,33.4,connected
Shiny Somber Evo,532.9,,insufficient,1,0,533.2,,insufficient,0.1,connected
Shiny Tiger Evo,362.1,,insufficient,1,0,483.2,,insufficient,33.4,connected
Shiny Yoshina Evo,686.8,,insufficient,1,0,468.9,,insufficient,-31.7,connected
Skull Knight Evo,674.5,,insufficient,1,0,661.6,,insufficient,-1.9,connected
Skull Knight Unevo,452.4,,insufficient,0,1,,,disconnected,,disconnected
Thorfinn Evo,1750.6,,insufficient,2,0,1932.8,,insufficient,10.4,connected
1 unit_variant all_fit all_ranked_value all_confidence all_explicit_asks all_inferred_asks explicit_only_fit explicit_only_ranked_value explicit_only_confidence change_pct_without_inferred explicit_only_connection
2 Aizen Evo 1000.0 1000 low 6 2 1000.0 1000 low 0.0 connected
3 Alucard Evo 2488.9 insufficient 2 0 3033.2 insufficient 21.9 connected
4 Alucard Unevo 1037.9 insufficient 1 0 disconnected disconnected
5 Android 21 Evo 1.0 insufficient 1 0 1.0 insufficient 0.0 connected
6 Buddha Evo 258.1 unstable 3 2 804.8 unstable 211.8 connected
7 Chuuni Evo 254.2 unstable 2 4 348.1 insufficient 36.9 connected
8 Cid Evo 252.6 unstable 3 2 350.7 unstable 38.8 connected
9 Cid Unevo 65.8 insufficient 1 0 66.5 insufficient 1.1 connected
10 Cream Evo 451.5 insufficient 0 1 disconnected disconnected
11 Dark Mage Evo 261.5 unstable 5 11 340.8 unstable 30.3 connected
12 Elf Mage Evo 1000.0 insufficient 0 1 disconnected disconnected
13 Gilgamesh Unevo 286.6 insufficient 1 0 812.3 insufficient 183.4 connected
14 Homura Evo 1360.1 unstable 8 4 1669.1 unstable 22.7 connected
15 Ice Lily Evo 596.5 insufficient 1 0 disconnected disconnected
16 Jelly Evo 532.9 insufficient 1 0 533.2 insufficient 0.1 connected
17 Jiraiya Evo 526.3 insufficient 0 1 disconnected disconnected
18 Kisuke Evo 520.5 insufficient 1 0 455.6 insufficient -12.5 connected
19 Nagumo Evo 340.6 insufficient 0 1 disconnected disconnected
20 Nagumo Unevo 65.8 insufficient 1 0 66.5 insufficient 1.1 connected
21 Nami Evo 599.9 insufficient 0 1 disconnected disconnected
22 Poseidon Evo 118.8 unstable 1 3 188.6 insufficient 58.8 connected
23 Shiny Aizen Evo constraint_only 0 0 constraint_only constraint_only
24 Shiny Boros Evo 183.8 insufficient 1 0 67.0 insufficient -63.5 connected
25 Shiny Buddha Evo 1520.0 insufficient 1 1 disconnected disconnected
26 Shiny Chuuni Evo 965.2 unstable 4 0 969.4 unstable 0.4 connected
27 Shiny Dark Mage Evo 986.0 unstable 3 1 820.6 unstable -16.8 connected
28 Shiny Elf Mage Evo 207.6 insufficient 1 0 205.9 insufficient -0.8 connected
29 Shiny Emilia Evo 1688.3 insufficient 1 0 1730.7 insufficient 2.5 connected
30 Shiny Gilgamesh Evo 1690.4 insufficient 2 0 1861.1 insufficient 10.1 connected
31 Shiny Homura Evo 2116.6 2100 very_low 3 0 2312.0 unstable 9.2 connected
32 Shiny Issei Evo 596.5 insufficient 1 0 disconnected disconnected
33 Shiny Killstreak Evo 340.6 insufficient 0 1 disconnected disconnected
34 Shiny Mamy Evo 169.2 insufficient 2 0 267.8 insufficient 58.3 connected
35 Shiny Nagumo Evo 520.7 insufficient 2 0 disconnected disconnected
36 Shiny Piccolo Evo 207.6 insufficient 1 0 205.9 insufficient -0.8 connected
37 Shiny Poseidon Evo 942.0 insufficient 2 0 950.7 insufficient 0.9 connected
38 Shiny Power Evo 1091.8 insufficient 1 0 1245.6 insufficient 14.1 connected
39 Shiny Sakamoto Evo 532.9 insufficient 1 0 533.2 insufficient 0.1 connected
40 Shiny Saki Evo 362.1 insufficient 1 0 483.2 insufficient 33.4 connected
41 Shiny Somber Evo 532.9 insufficient 1 0 533.2 insufficient 0.1 connected
42 Shiny Tiger Evo 362.1 insufficient 1 0 483.2 insufficient 33.4 connected
43 Shiny Yoshina Evo 686.8 insufficient 1 0 468.9 insufficient -31.7 connected
44 Skull Knight Evo 674.5 insufficient 1 0 661.6 insufficient -1.9 connected
45 Skull Knight Unevo 452.4 insufficient 0 1 disconnected disconnected
46 Thorfinn Evo 1750.6 insufficient 2 0 1932.8 insufficient 10.4 connected
+8 -2
View File
@@ -1,5 +1,4 @@
source_row,quote_type,offered_unit,offered_qty,requested_unit,requested_qty,requested_units_per_offered_unit,source_text source_row,quote_type,offered_unit,offered_qty,requested_unit,requested_qty,requested_units_per_offered_unit,source_text
6,explicit_for,Alucard Evo,1,Aizen Evo,1,1.0,MY Alucard Evo FOR Aizen Evo
52,explicit_for,Shiny Gilgamesh Evo,1,Thorfinn Evo,1,1.0,MY Shiny Gilgamesh Evo FOR THORFINN Evo 52,explicit_for,Shiny Gilgamesh Evo,1,Thorfinn Evo,1,1.0,MY Shiny Gilgamesh Evo FOR THORFINN Evo
65,explicit_for,Shiny Nagumo Evo,2,Alucard Unevo,1,0.5,2 Shiny Nagumo Evo for Alucard Unevo 65,explicit_for,Shiny Nagumo Evo,2,Alucard Unevo,1,0.5,2 Shiny Nagumo Evo for Alucard Unevo
115,explicit_for,Buddha Evo,1,Gilgamesh Unevo,1,1.0,Gilgamesh Unevo for my Buddha Evo 115,explicit_for,Buddha Evo,1,Gilgamesh Unevo,1,1.0,Gilgamesh Unevo for my Buddha Evo
@@ -13,7 +12,14 @@
715,explicit_for,Shiny Siren Unevo,1,Shiny Elf Mage Unevo,1,1.0,My Shiny Siren Unevo for Shiny Elf Mage Unevo 715,explicit_for,Shiny Siren Unevo,1,Shiny Elf Mage Unevo,1,1.0,My Shiny Siren Unevo for Shiny Elf Mage Unevo
750,listing_pair,Chuuni Evo,1,Dark Mage Evo,1,1.0,Chuuni Evo -> Dark Mage Evo 750,listing_pair,Chuuni Evo,1,Dark Mage Evo,1,1.0,Chuuni Evo -> Dark Mage Evo
756,listing_pair,Shizo Evo,1,Rohan Evo,1,1.0,SHIZO Evo -> ROHAN Evo 756,listing_pair,Shizo Evo,1,Rohan Evo,1,1.0,SHIZO Evo -> ROHAN Evo
947,explicit_for,Homura Evo,1,Alucard Evo,1,1.0,my Homura Evo for Alucard Evo
1078,listing_pair,Dark Mage Evo,6,Homura Evo,1,0.1667,6 Dark Mage Evo -> Homura Evo 1078,listing_pair,Dark Mage Evo,6,Homura Evo,1,0.1667,6 Dark Mage Evo -> Homura Evo
1112,explicit_for,Dark Mage Evo,5,Homura Evo,1,0.2,MY 5 Dark Mage Evo FOR Homura Evo 1112,explicit_for,Dark Mage Evo,5,Homura Evo,1,0.2,MY 5 Dark Mage Evo FOR Homura Evo
1241,listing_pair,Dark Mage Evo,6,Homura Evo,1,0.1667,6 Dark Mage Evo -> Homura Evo 1241,listing_pair,Dark Mage Evo,6,Homura Evo,1,0.1667,6 Dark Mage Evo -> Homura Evo
1357,explicit_for,Shiny Poseidon Evo,1,Shiny Chuuni Evo,1,1.0,MY Shiny Poseidon Evo FOR Shiny Chuuni Evo
1378,explicit_for,Poseidon Evo,2,Dark Mage Evo,1,0.5,MY 2 Poseidon Evo FOR Dark Mage Evo
1540,listing_pair,Nagumo Evo,1,Dark Mage Evo,1,1.0,Nagumo Evo -> Dark Mage Evo
1624,explicit_for,Cid Evo,1,Dark Mage Evo,1,1.0,MY Cid Evo FOR Dark Mage Evo
1641,listing_pair,Aizen Evo,1,Elf Mage Evo,1,1.0,Aizen Evo -> Elf Mage Evo
1675,explicit_for,Chuuni Evo,1,Dark Mage Evo,1,1.0,Chuuni Evo for Dark Mage Evo
1675,explicit_for,Chuuni Evo,1,Cid Evo,1,1.0,Cid Evo for Chuuni Evo
1687,explicit_for,Homura Evo,1,Aizen Evo,6,6.0,MY Homura Evo FOR 6 Aizen Evo
1 source_row quote_type offered_unit offered_qty requested_unit requested_qty requested_units_per_offered_unit source_text
6 explicit_for Alucard Evo 1 Aizen Evo 1 1.0 MY Alucard Evo FOR Aizen Evo
2 52 explicit_for Shiny Gilgamesh Evo 1 Thorfinn Evo 1 1.0 MY Shiny Gilgamesh Evo FOR THORFINN Evo
3 65 explicit_for Shiny Nagumo Evo 2 Alucard Unevo 1 0.5 2 Shiny Nagumo Evo for Alucard Unevo
4 115 explicit_for Buddha Evo 1 Gilgamesh Unevo 1 1.0 Gilgamesh Unevo for my Buddha Evo
12 715 explicit_for Shiny Siren Unevo 1 Shiny Elf Mage Unevo 1 1.0 My Shiny Siren Unevo for Shiny Elf Mage Unevo
13 750 listing_pair Chuuni Evo 1 Dark Mage Evo 1 1.0 Chuuni Evo -> Dark Mage Evo
14 756 listing_pair Shizo Evo 1 Rohan Evo 1 1.0 SHIZO Evo -> ROHAN Evo
947 explicit_for Homura Evo 1 Alucard Evo 1 1.0 my Homura Evo for Alucard Evo
15 1078 listing_pair Dark Mage Evo 6 Homura Evo 1 0.1667 6 Dark Mage Evo -> Homura Evo
16 1112 explicit_for Dark Mage Evo 5 Homura Evo 1 0.2 MY 5 Dark Mage Evo FOR Homura Evo
17 1241 listing_pair Dark Mage Evo 6 Homura Evo 1 0.1667 6 Dark Mage Evo -> Homura Evo
18 1357 explicit_for Shiny Poseidon Evo 1 Shiny Chuuni Evo 1 1.0 MY Shiny Poseidon Evo FOR Shiny Chuuni Evo
19 1378 explicit_for Poseidon Evo 2 Dark Mage Evo 1 0.5 MY 2 Poseidon Evo FOR Dark Mage Evo
20 1540 listing_pair Nagumo Evo 1 Dark Mage Evo 1 1.0 Nagumo Evo -> Dark Mage Evo
21 1624 explicit_for Cid Evo 1 Dark Mage Evo 1 1.0 MY Cid Evo FOR Dark Mage Evo
22 1641 listing_pair Aizen Evo 1 Elf Mage Evo 1 1.0 Aizen Evo -> Elf Mage Evo
23 1675 explicit_for Chuuni Evo 1 Dark Mage Evo 1 1.0 Chuuni Evo for Dark Mage Evo
24 1675 explicit_for Chuuni Evo 1 Cid Evo 1 1.0 Cid Evo for Chuuni Evo
25 1687 explicit_for Homura Evo 1 Aizen Evo 6 6.0 MY Homura Evo FOR 6 Aizen Evo
+14
View File
@@ -21,6 +21,18 @@ FOR = re.compile(r"\bfor\b", re.IGNORECASE)
FIELDS = ("source_row", "quote_type", "offered_unit", "offered_qty", FIELDS = ("source_row", "quote_type", "offered_unit", "offered_qty",
"requested_unit", "requested_qty", "requested_units_per_offered_unit", "requested_unit", "requested_qty", "requested_units_per_offered_unit",
"source_text") "source_text")
STAT_QUALITY = re.compile(
r"\b(?:SSS|SS|FULL\s+S|PERF(?:ECT)?\s+SPA)\b|"
r"\b[A-S][+-]?\s*/\s*(?:SSS|SS|[A-S][+-]?)\b|"
r"\b\d+\s+[A-S][+-]?\s*,\s*[A-S][+-]?\s*,\s*[A-S][+-]?\b|"
r"\b\d+(?:[.,]\d+)?\s*%", re.I,
)
def only_stat_specific_inventory(offer: str, unit: str) -> bool:
"""An unqualified quote cannot price a unit only listed with stat quality."""
mentions = [part for part in offer.split("|") if unit in variants(part)]
return bool(mentions) and all(STAT_QUALITY.search(part) for part in mentions)
def parse_side(text: str) -> tuple[str, int, str | None] | None: def parse_side(text: str) -> tuple[str, int, str | None] | None:
@@ -77,6 +89,8 @@ def extract_quotes(rows: list[dict[str, str]]) -> list[dict[str, str | int | flo
continue continue
if offered[0] not in offered_inventory: if offered[0] not in offered_inventory:
continue continue
if only_stat_specific_inventory(row.get("offer") or "", offered[0]):
continue
key = (author, offered[0], offered[1], requested[0], requested[1]) key = (author, offered[0], offered[1], requested[0], requested[1])
if key in seen: if key in seen:
continue continue
+35 -32
View File
@@ -1,33 +1,36 @@
unit_variant,interest_index,requested_by,offered_by,total_mentions unit_variant,interest_index,requested_by,offered_by,total_mentions
Thorfinn Evo,1989,38,6,44 Thorfinn Evo,2243,50,6,56
Aizen Evo,338,147,191,338 Aizen Evo,307,195,243,438
Homura Evo,250,157,276,433 Dio Evo,279,8,12,20
Shiny Aizen Evo,237,10,21,31 Shiny Aizen Evo,218,13,25,38
Mamy Evo,234,12,25,37 Homura Evo,213,200,360,560
Shiny Homura Evo,206,14,33,47 Shiny Skull Knight Evo,185,15,34,49
Alucard Evo,189,51,122,173 Shiny Homura Evo,163,15,39,54
Shiny Skull Knight Evo,189,10,27,37 Mamy Evo,163,12,32,44
Shiny Vengeful Swordsman Evo,172,8,25,33 Alucard Evo,162,62,150,212
Shiny Idol Evo,171,6,20,26 Shiny Yoshina Evo,133,11,37,48
Shiny Cid Evo,168,12,36,48 Shiny Vengeful Swordsman Evo,131,9,32,41
Shiny Dark Mage Evo,148,20,65,85 Shiny Dark Mage Evo,128,27,86,113
Shiny Mamy Evo,127,13,52,65 Shiny Mamy Evo,118,20,71,91
Roger Evo,126,16,63,79 Shiny Boros Evo,111,6,28,34
Shiny Yoshina Evo,109,5,29,34 Shiny Idol Evo,111,6,28,34
Shiny Chuuni Evo,101,21,101,122 Shiny Cid Evo,106,12,51,63
Shiny Buddha Evo,99,7,41,48 Shiny Chuuni Evo,103,31,123,154
Chuuni Evo,79,33,197,230 Roger Evo,100,18,77,95
Somber Evo,78,5,42,47 Shiny Buddha Evo,82,9,53,62
Shiny Inhuman Evo,77,6,48,54 Dark Mage Evo,67,79,464,543
Shiny Gilgamesh Evo,76,8,60,68 Chuuni Evo,67,43,260,303
Shiny Poseidon Evo,76,6,49,55 Shiny Inhuman Evo,61,7,59,66
Dark Mage Evo,72,57,360,417 Shiny Gilgamesh Evo,55,9,80,89
Gilgamesh Evo,62,27,207,234 Shiny Poseidon Evo,54,6,60,66
Skull Knight Evo,57,5,58,63 Gilgamesh Evo,52,33,259,292
Buddha Evo,46,21,225,246 Dark Mage Unevo,50,5,58,63
Shiny Nagumo Evo,46,5,73,78 Somber Evo,50,5,58,63
Shiny Elf Mage Evo,42,6,90,96 Skull Knight Evo,44,7,83,90
Vengeful Swordsman Evo,39,10,144,154 Buddha Evo,37,25,285,310
Cid Evo,35,15,224,239 Vengeful Swordsman Evo,36,14,176,190
Poseidon Evo,35,7,120,127 Shiny Nagumo Evo,34,6,98,104
Nagumo Evo,21,9,252,261 Cid Evo,30,20,288,308
Shiny Elf Mage Evo,26,6,128,134
Poseidon Evo,24,7,156,163
Nagumo Evo,18,12,312,324
1 unit_variant interest_index requested_by offered_by total_mentions
2 Thorfinn Evo 1989 2243 38 50 6 44 56
3 Aizen Evo 338 307 147 195 191 243 338 438
4 Homura Evo Dio Evo 250 279 157 8 276 12 433 20
5 Shiny Aizen Evo 237 218 10 13 21 25 31 38
6 Mamy Evo Homura Evo 234 213 12 200 25 360 37 560
7 Shiny Homura Evo Shiny Skull Knight Evo 206 185 14 15 33 34 47 49
8 Alucard Evo Shiny Homura Evo 189 163 51 15 122 39 173 54
9 Shiny Skull Knight Evo Mamy Evo 189 163 10 12 27 32 37 44
10 Shiny Vengeful Swordsman Evo Alucard Evo 172 162 8 62 25 150 33 212
11 Shiny Idol Evo Shiny Yoshina Evo 171 133 6 11 20 37 26 48
12 Shiny Cid Evo Shiny Vengeful Swordsman Evo 168 131 12 9 36 32 48 41
13 Shiny Dark Mage Evo 148 128 20 27 65 86 85 113
14 Shiny Mamy Evo 127 118 13 20 52 71 65 91
15 Roger Evo Shiny Boros Evo 126 111 16 6 63 28 79 34
16 Shiny Yoshina Evo Shiny Idol Evo 109 111 5 6 29 28 34
17 Shiny Chuuni Evo Shiny Cid Evo 101 106 21 12 101 51 122 63
18 Shiny Buddha Evo Shiny Chuuni Evo 99 103 7 31 41 123 48 154
19 Chuuni Evo Roger Evo 79 100 33 18 197 77 230 95
20 Somber Evo Shiny Buddha Evo 78 82 5 9 42 53 47 62
21 Shiny Inhuman Evo Dark Mage Evo 77 67 6 79 48 464 54 543
22 Shiny Gilgamesh Evo Chuuni Evo 76 67 8 43 60 260 68 303
23 Shiny Poseidon Evo Shiny Inhuman Evo 76 61 6 7 49 59 55 66
24 Dark Mage Evo Shiny Gilgamesh Evo 72 55 57 9 360 80 417 89
25 Gilgamesh Evo Shiny Poseidon Evo 62 54 27 6 207 60 234 66
26 Skull Knight Evo Gilgamesh Evo 57 52 5 33 58 259 63 292
27 Buddha Evo Dark Mage Unevo 46 50 21 5 225 58 246 63
28 Shiny Nagumo Evo Somber Evo 46 50 5 73 58 78 63
29 Shiny Elf Mage Evo Skull Knight Evo 42 44 6 7 90 83 96 90
30 Vengeful Swordsman Evo Buddha Evo 39 37 10 25 144 285 154 310
31 Cid Evo Vengeful Swordsman Evo 35 36 15 14 224 176 239 190
32 Poseidon Evo Shiny Nagumo Evo 35 34 7 6 120 98 127 104
33 Nagumo Evo Cid Evo 21 30 9 20 252 288 261 308
34 Shiny Elf Mage Evo 26 6 128 134
35 Poseidon Evo 24 7 156 163
36 Nagumo Evo 18 12 312 324
+46 -44
View File
@@ -1,44 +1,46 @@
rank,unit_variant,relative_value,confidence,quote_count,asking_quote_count,completed_trade_count,source_rows,basis,note rank,unit_variant,relative_value,confidence,quote_count,asking_quote_count,explicit_ask_count,inferred_ask_count,completed_trade_count,source_rows,basis,note
1,Shiny Homura Evo,1750,very_low,3,3,0,52 | 174 | 1138,asking_quotes, 1,Shiny Homura Evo,2100,very_low,3,3,3,0,0,52 | 174 | 1138,asking_quotes,
2,Shiny Aizen Evo,,constraint_only,0,0,0,,user_supplied_ordering,Worth more than Aizen Evo; multiplier unknown 2,Shiny Aizen Evo,,constraint_only,0,0,0,0,0,,user_supplied_ordering,Worth more than Aizen Evo; multiplier unknown
3,Aizen Evo,1000,low,9,9,0,6 | 47 | 228 | 366 | 397 | 712 | 776 | 800 | 1138,asking_quotes,Aizen Evo = 1000 reference 3,Aizen Evo,1000,low,8,8,6,2,0,47 | 228 | 366 | 776 | 800 | 1138 | 1641 | 1687,asking_quotes,Aizen Evo = 1000 reference
4,Shiny Dark Mage Evo,600,low,4,4,0,253 | 379 | 776 | 1195,asking_quotes, ,Alucard Evo,,insufficient,2,2,2,0,0,52 | 187,asking_quotes,Too few independent quotes for a numeric estimate
5,Poseidon Evo,0,very_low,3,3,0,636 | 1256 | 1306,asking_quotes, ,Alucard Unevo,,insufficient,1,1,1,0,0,65,asking_quotes,Too few independent quotes for a numeric estimate
,Alucard Evo,,unstable,5,5,0,6 | 52 | 187 | 397 | 947,asking_quotes,Estimate changes or disconnects when one quote is removed ,Android 21 Evo,,insufficient,1,1,1,0,0,52,asking_quotes,Too few independent quotes for a numeric estimate
,Alucard Unevo,,insufficient,1,1,0,65,asking_quotes,Too few independent quotes for a numeric estimate ,Buddha Evo,,unstable,5,5,3,2,0,115 | 253 | 468 | 800 | 1195,asking_quotes,Estimate changes or disconnects when one quote is removed
,Android 21 Evo,,insufficient,1,1,0,52,asking_quotes,Too few independent quotes for a numeric estimate ,Chuuni Evo,,unstable,6,6,2,4,0,468 | 536 | 750 | 1101 | 1195 | 1675,asking_quotes,Estimate changes or disconnects when one quote is removed
,Buddha Evo,,unstable,5,5,0,115 | 253 | 468 | 800 | 1195,asking_quotes,Estimate changes or disconnects when one quote is removed ,Cid Evo,,unstable,5,5,3,2,0,1256 | 1265 | 1543 | 1624 | 1675,asking_quotes,Estimate changes or disconnects when one quote is removed
,Chuuni Evo,,unstable,7,7,0,377 | 468 | 536 | 715 | 750 | 1101 | 1195,asking_quotes,Estimate changes or disconnects when one quote is removed ,Cid Unevo,,insufficient,1,1,1,0,0,463,asking_quotes,Too few independent quotes for a numeric estimate
,Cid Evo,,insufficient,2,2,0,1256 | 1265,asking_quotes,Too few independent quotes for a numeric estimate ,Cream Evo,,insufficient,1,1,0,1,0,1101,asking_quotes,Too few independent quotes for a numeric estimate
,Cid Unevo,,insufficient,1,1,0,463,asking_quotes,Too few independent quotes for a numeric estimate ,Dark Mage Evo,,unstable,16,16,5,11,0,379 | 490 | 636 | 750 | 1078 | 1101 | 1112 | 1241 | 1256 | 1265 | 1306 | 1378 | 1540 | 1543 | 1624 | 1675,asking_quotes,Estimate changes or disconnects when one quote is removed
,Cream Evo,,insufficient,1,1,0,1101,asking_quotes,Too few independent quotes for a numeric estimate ,Elf Mage Evo,,insufficient,1,1,0,1,0,1641,asking_quotes,Too few independent quotes for a numeric estimate
,Dark Mage Evo,,unstable,13,13,0,377 | 379 | 490 | 636 | 715 | 750 | 1078 | 1101 | 1112 | 1241 | 1256 | 1265 | 1306,asking_quotes,Estimate changes or disconnects when one quote is removed ,Gilgamesh Unevo,,insufficient,1,1,1,0,0,115,asking_quotes,Too few independent quotes for a numeric estimate
,Gilgamesh Evo,,insufficient,1,1,0,742,asking_quotes,Too few independent quotes for a numeric estimate ,Homura Evo,,unstable,12,12,8,4,0,187 | 253 | 366 | 536 | 800 | 1078 | 1112 | 1195 | 1241 | 1265 | 1687 | 1702,asking_quotes,Estimate changes or disconnects when one quote is removed
,Gilgamesh Unevo,,insufficient,1,1,0,115,asking_quotes,Too few independent quotes for a numeric estimate ,Ice Lily Evo,,insufficient,1,1,1,0,0,1334,asking_quotes,Too few independent quotes for a numeric estimate
,Homura Evo,,unstable,15,15,0,187 | 253 | 366 | 377 | 536 | 712 | 715 | 742 | 800 | 947 | 1078 | 1112 | 1195 | 1241 | 1265,asking_quotes,Estimate changes or disconnects when one quote is removed ,Jelly Evo,,insufficient,1,1,1,0,0,463,asking_quotes,Too few independent quotes for a numeric estimate
,Ice Lily Evo,,insufficient,1,1,0,1334,asking_quotes,Too few independent quotes for a numeric estimate ,Jiraiya Evo,,insufficient,1,1,0,1,0,1306,asking_quotes,Too few independent quotes for a numeric estimate
,Jelly Evo,,insufficient,1,1,0,463,asking_quotes,Too few independent quotes for a numeric estimate ,Kisuke Evo,,insufficient,1,1,1,0,0,1195,asking_quotes,Too few independent quotes for a numeric estimate
,Jiraiya Evo,,insufficient,1,1,0,1306,asking_quotes,Too few independent quotes for a numeric estimate ,Nagumo Evo,,insufficient,1,1,0,1,0,1540,asking_quotes,Too few independent quotes for a numeric estimate
,Kisuke Evo,,insufficient,1,1,0,1195,asking_quotes,Too few independent quotes for a numeric estimate ,Nagumo Unevo,,insufficient,1,1,1,0,0,463,asking_quotes,Too few independent quotes for a numeric estimate
,Nagumo Unevo,,insufficient,1,1,0,463,asking_quotes,Too few independent quotes for a numeric estimate ,Nami Evo,,insufficient,1,1,0,1,0,636,asking_quotes,Too few independent quotes for a numeric estimate
,Nami Evo,,insufficient,1,1,0,636,asking_quotes,Too few independent quotes for a numeric estimate ,Poseidon Evo,,unstable,4,4,1,3,0,636 | 1256 | 1306 | 1378,asking_quotes,Estimate changes or disconnects when one quote is removed
,Roger Evo,,insufficient,1,1,0,712,asking_quotes,Too few independent quotes for a numeric estimate ,Shiny Boros Evo,,insufficient,1,1,1,0,0,174,asking_quotes,Too few independent quotes for a numeric estimate
,Shiny Boros Evo,,insufficient,1,1,0,174,asking_quotes,Too few independent quotes for a numeric estimate ,Shiny Buddha Evo,,insufficient,2,2,1,1,0,536 | 1334,asking_quotes,Too few independent quotes for a numeric estimate
,Shiny Buddha Evo,,insufficient,2,2,0,536 | 1334,asking_quotes,Too few independent quotes for a numeric estimate ,Shiny Chuuni Evo,,unstable,4,4,4,0,0,47 | 228 | 463 | 1357,asking_quotes,Estimate changes or disconnects when one quote is removed
,Shiny Chuuni Evo,,unstable,4,4,0,47 | 228 | 463 | 742,asking_quotes,Estimate changes or disconnects when one quote is removed ,Shiny Dark Mage Evo,,unstable,4,4,3,1,0,253 | 379 | 776 | 1195,asking_quotes,Estimate changes or disconnects when one quote is removed
,Shiny Elf Mage Evo,,insufficient,1,1,0,47,asking_quotes,Too few independent quotes for a numeric estimate ,Shiny Elf Mage Evo,,insufficient,1,1,1,0,0,47,asking_quotes,Too few independent quotes for a numeric estimate
,Shiny Emilia Evo,,insufficient,1,1,0,174,asking_quotes,Too few independent quotes for a numeric estimate ,Shiny Emilia Evo,,insufficient,1,1,1,0,0,174,asking_quotes,Too few independent quotes for a numeric estimate
,Shiny Gilgamesh Evo,,insufficient,2,2,0,52 | 174,asking_quotes,Too few independent quotes for a numeric estimate ,Shiny Gilgamesh Evo,,insufficient,2,2,2,0,0,52 | 174,asking_quotes,Too few independent quotes for a numeric estimate
,Shiny Ice Queen Evo,,insufficient,1,1,0,397,asking_quotes,Too few independent quotes for a numeric estimate ,Shiny Issei Evo,,insufficient,1,1,1,0,0,1334,asking_quotes,Too few independent quotes for a numeric estimate
,Shiny Issei Evo,,insufficient,1,1,0,1334,asking_quotes,Too few independent quotes for a numeric estimate ,Shiny Killstreak Evo,,insufficient,1,1,0,1,0,490,asking_quotes,Too few independent quotes for a numeric estimate
,Shiny Killstreak Evo,,insufficient,1,1,0,490,asking_quotes,Too few independent quotes for a numeric estimate ,Shiny Mamy Evo,,insufficient,2,2,2,0,0,174 | 776,asking_quotes,Too few independent quotes for a numeric estimate
,Shiny Mamy Evo,,insufficient,2,2,0,174 | 776,asking_quotes,Too few independent quotes for a numeric estimate ,Shiny Nagumo Evo,,insufficient,2,2,2,0,0,65 | 1334,asking_quotes,Too few independent quotes for a numeric estimate
,Shiny Nagumo Evo,,insufficient,2,2,0,65 | 1334,asking_quotes,Too few independent quotes for a numeric estimate ,Shiny Piccolo Evo,,insufficient,1,1,1,0,0,47,asking_quotes,Too few independent quotes for a numeric estimate
,Shiny Piccolo Evo,,insufficient,1,1,0,47,asking_quotes,Too few independent quotes for a numeric estimate ,Shiny Poseidon Evo,,insufficient,2,2,2,0,0,1357 | 1702,asking_quotes,Too few independent quotes for a numeric estimate
,Shiny Poseidon Evo,,insufficient,2,2,0,377 | 715,asking_quotes,Too few independent quotes for a numeric estimate ,Shiny Power Evo,,insufficient,1,1,1,0,0,1138,asking_quotes,Too few independent quotes for a numeric estimate
,Shiny Power Evo,,insufficient,1,1,0,1138,asking_quotes,Too few independent quotes for a numeric estimate ,Shiny Sakamoto Evo,,insufficient,1,1,1,0,0,463,asking_quotes,Too few independent quotes for a numeric estimate
,Shiny Sakamoto Evo,,insufficient,1,1,0,463,asking_quotes,Too few independent quotes for a numeric estimate ,Shiny Saki Evo,,insufficient,1,1,1,0,0,1702,asking_quotes,Too few independent quotes for a numeric estimate
,Shiny Somber Evo,,insufficient,1,1,0,463,asking_quotes,Too few independent quotes for a numeric estimate ,Shiny Somber Evo,,insufficient,1,1,1,0,0,463,asking_quotes,Too few independent quotes for a numeric estimate
,Shiny Yoshina Evo,,insufficient,1,1,0,1195,asking_quotes,Too few independent quotes for a numeric estimate ,Shiny Tiger Evo,,insufficient,1,1,1,0,0,1702,asking_quotes,Too few independent quotes for a numeric estimate
,Skull Knight Evo,,insufficient,1,1,0,1265,asking_quotes,Too few independent quotes for a numeric estimate ,Shiny Yoshina Evo,,insufficient,1,1,1,0,0,1195,asking_quotes,Too few independent quotes for a numeric estimate
,Thorfinn Evo,,insufficient,2,2,0,52 | 366,asking_quotes,Too few independent quotes for a numeric estimate ,Skull Knight Evo,,insufficient,1,1,1,0,0,1265,asking_quotes,Too few independent quotes for a numeric estimate
,Skull Knight Unevo,,insufficient,1,1,0,1,0,1543,asking_quotes,Too few independent quotes for a numeric estimate
,Thorfinn Evo,,insufficient,2,2,2,0,0,52 | 366,asking_quotes,Too few independent quotes for a numeric estimate
1 rank unit_variant relative_value confidence quote_count asking_quote_count explicit_ask_count inferred_ask_count completed_trade_count source_rows basis note
2 1 Shiny Homura Evo 1750 2100 very_low 3 3 3 0 0 52 | 174 | 1138 asking_quotes
3 2 Shiny Aizen Evo constraint_only 0 0 0 0 0 user_supplied_ordering Worth more than Aizen Evo; multiplier unknown
4 3 Aizen Evo 1000 low 9 8 9 8 6 2 0 6 | 47 | 228 | 366 | 397 | 712 | 776 | 800 | 1138 47 | 228 | 366 | 776 | 800 | 1138 | 1641 | 1687 asking_quotes Aizen Evo = 1000 reference
5 4 Shiny Dark Mage Evo Alucard Evo 600 low insufficient 4 2 4 2 2 0 0 253 | 379 | 776 | 1195 52 | 187 asking_quotes Too few independent quotes for a numeric estimate
6 5 Poseidon Evo Alucard Unevo 0 very_low insufficient 3 1 3 1 1 0 0 636 | 1256 | 1306 65 asking_quotes Too few independent quotes for a numeric estimate
7 Alucard Evo Android 21 Evo unstable insufficient 5 1 5 1 1 0 0 6 | 52 | 187 | 397 | 947 52 asking_quotes Estimate changes or disconnects when one quote is removed Too few independent quotes for a numeric estimate
8 Alucard Unevo Buddha Evo insufficient unstable 1 5 1 5 3 2 0 65 115 | 253 | 468 | 800 | 1195 asking_quotes Too few independent quotes for a numeric estimate Estimate changes or disconnects when one quote is removed
9 Android 21 Evo Chuuni Evo insufficient unstable 1 6 1 6 2 4 0 52 468 | 536 | 750 | 1101 | 1195 | 1675 asking_quotes Too few independent quotes for a numeric estimate Estimate changes or disconnects when one quote is removed
10 Buddha Evo Cid Evo unstable 5 5 3 2 0 115 | 253 | 468 | 800 | 1195 1256 | 1265 | 1543 | 1624 | 1675 asking_quotes Estimate changes or disconnects when one quote is removed
11 Chuuni Evo Cid Unevo unstable insufficient 7 1 7 1 1 0 0 377 | 468 | 536 | 715 | 750 | 1101 | 1195 463 asking_quotes Estimate changes or disconnects when one quote is removed Too few independent quotes for a numeric estimate
12 Cid Evo Cream Evo insufficient 2 1 2 1 0 1 0 1256 | 1265 1101 asking_quotes Too few independent quotes for a numeric estimate
13 Cid Unevo Dark Mage Evo insufficient unstable 1 16 1 16 5 11 0 463 379 | 490 | 636 | 750 | 1078 | 1101 | 1112 | 1241 | 1256 | 1265 | 1306 | 1378 | 1540 | 1543 | 1624 | 1675 asking_quotes Too few independent quotes for a numeric estimate Estimate changes or disconnects when one quote is removed
14 Cream Evo Elf Mage Evo insufficient 1 1 0 1 0 1101 1641 asking_quotes Too few independent quotes for a numeric estimate
15 Dark Mage Evo Gilgamesh Unevo unstable insufficient 13 1 13 1 1 0 0 377 | 379 | 490 | 636 | 715 | 750 | 1078 | 1101 | 1112 | 1241 | 1256 | 1265 | 1306 115 asking_quotes Estimate changes or disconnects when one quote is removed Too few independent quotes for a numeric estimate
16 Gilgamesh Evo Homura Evo insufficient unstable 1 12 1 12 8 4 0 742 187 | 253 | 366 | 536 | 800 | 1078 | 1112 | 1195 | 1241 | 1265 | 1687 | 1702 asking_quotes Too few independent quotes for a numeric estimate Estimate changes or disconnects when one quote is removed
17 Gilgamesh Unevo Ice Lily Evo insufficient 1 1 1 0 0 115 1334 asking_quotes Too few independent quotes for a numeric estimate
18 Homura Evo Jelly Evo unstable insufficient 15 1 15 1 1 0 0 187 | 253 | 366 | 377 | 536 | 712 | 715 | 742 | 800 | 947 | 1078 | 1112 | 1195 | 1241 | 1265 463 asking_quotes Estimate changes or disconnects when one quote is removed Too few independent quotes for a numeric estimate
19 Ice Lily Evo Jiraiya Evo insufficient 1 1 0 1 0 1334 1306 asking_quotes Too few independent quotes for a numeric estimate
20 Jelly Evo Kisuke Evo insufficient 1 1 1 0 0 463 1195 asking_quotes Too few independent quotes for a numeric estimate
21 Jiraiya Evo Nagumo Evo insufficient 1 1 0 1 0 1306 1540 asking_quotes Too few independent quotes for a numeric estimate
22 Kisuke Evo Nagumo Unevo insufficient 1 1 1 0 0 1195 463 asking_quotes Too few independent quotes for a numeric estimate
23 Nagumo Unevo Nami Evo insufficient 1 1 0 1 0 463 636 asking_quotes Too few independent quotes for a numeric estimate
24 Nami Evo Poseidon Evo insufficient unstable 1 4 1 4 1 3 0 636 636 | 1256 | 1306 | 1378 asking_quotes Too few independent quotes for a numeric estimate Estimate changes or disconnects when one quote is removed
25 Roger Evo Shiny Boros Evo insufficient 1 1 1 0 0 712 174 asking_quotes Too few independent quotes for a numeric estimate
26 Shiny Boros Evo Shiny Buddha Evo insufficient 1 2 1 2 1 1 0 174 536 | 1334 asking_quotes Too few independent quotes for a numeric estimate
27 Shiny Buddha Evo Shiny Chuuni Evo insufficient unstable 2 4 2 4 4 0 0 536 | 1334 47 | 228 | 463 | 1357 asking_quotes Too few independent quotes for a numeric estimate Estimate changes or disconnects when one quote is removed
28 Shiny Chuuni Evo Shiny Dark Mage Evo unstable 4 4 3 1 0 47 | 228 | 463 | 742 253 | 379 | 776 | 1195 asking_quotes Estimate changes or disconnects when one quote is removed
29 Shiny Elf Mage Evo insufficient 1 1 1 0 0 47 asking_quotes Too few independent quotes for a numeric estimate
30 Shiny Emilia Evo insufficient 1 1 1 0 0 174 asking_quotes Too few independent quotes for a numeric estimate
31 Shiny Gilgamesh Evo insufficient 2 2 2 0 0 52 | 174 asking_quotes Too few independent quotes for a numeric estimate
32 Shiny Ice Queen Evo Shiny Issei Evo insufficient 1 1 1 0 0 397 1334 asking_quotes Too few independent quotes for a numeric estimate
33 Shiny Issei Evo Shiny Killstreak Evo insufficient 1 1 0 1 0 1334 490 asking_quotes Too few independent quotes for a numeric estimate
34 Shiny Killstreak Evo Shiny Mamy Evo insufficient 1 2 1 2 2 0 0 490 174 | 776 asking_quotes Too few independent quotes for a numeric estimate
35 Shiny Mamy Evo Shiny Nagumo Evo insufficient 2 2 2 0 0 174 | 776 65 | 1334 asking_quotes Too few independent quotes for a numeric estimate
36 Shiny Nagumo Evo Shiny Piccolo Evo insufficient 2 1 2 1 1 0 0 65 | 1334 47 asking_quotes Too few independent quotes for a numeric estimate
37 Shiny Piccolo Evo Shiny Poseidon Evo insufficient 1 2 1 2 2 0 0 47 1357 | 1702 asking_quotes Too few independent quotes for a numeric estimate
38 Shiny Poseidon Evo Shiny Power Evo insufficient 2 1 2 1 1 0 0 377 | 715 1138 asking_quotes Too few independent quotes for a numeric estimate
39 Shiny Power Evo Shiny Sakamoto Evo insufficient 1 1 1 0 0 1138 463 asking_quotes Too few independent quotes for a numeric estimate
40 Shiny Sakamoto Evo Shiny Saki Evo insufficient 1 1 1 0 0 463 1702 asking_quotes Too few independent quotes for a numeric estimate
41 Shiny Somber Evo insufficient 1 1 1 0 0 463 asking_quotes Too few independent quotes for a numeric estimate
42 Shiny Yoshina Evo Shiny Tiger Evo insufficient 1 1 1 0 0 1195 1702 asking_quotes Too few independent quotes for a numeric estimate
43 Skull Knight Evo Shiny Yoshina Evo insufficient 1 1 1 0 0 1265 1195 asking_quotes Too few independent quotes for a numeric estimate
44 Thorfinn Evo Skull Knight Evo insufficient 2 1 2 1 1 0 0 52 | 366 1265 asking_quotes Too few independent quotes for a numeric estimate
45 Skull Knight Unevo insufficient 1 1 0 1 0 1543 asking_quotes Too few independent quotes for a numeric estimate
46 Thorfinn Evo insufficient 2 2 2 0 0 52 | 366 asking_quotes Too few independent quotes for a numeric estimate
+70 -3
View File
@@ -24,9 +24,11 @@ SHINY_AIZEN = "Shiny Aizen Evo"
ANCHOR_VALUE = 1000.0 ANCHOR_VALUE = 1000.0
RIDGE = 0.03 RIDGE = 0.03
COMPLETED_WEIGHT = 9.0 COMPLETED_WEIGHT = 9.0
INFERRED_WEIGHT_FACTOR = 1.0 / 3.0
MAX_STABLE_CHANGE_PCT = 25.0 MAX_STABLE_CHANGE_PCT = 25.0
CONFLICT_RATIO = 1.25 CONFLICT_RATIO = 1.25
CONFIDENCE_FIELDS = ("unit_variant", "quote_count", "asking_quote_count", CONFIDENCE_FIELDS = ("unit_variant", "quote_count", "asking_quote_count",
"explicit_ask_count", "inferred_ask_count",
"completed_trade_count", "full_fit_value", "completed_trade_count", "full_fit_value",
"leave_one_out_min", "leave_one_out_max", "max_change_pct", "leave_one_out_min", "leave_one_out_max", "max_change_pct",
"most_influential_source_row", "most_influential_evidence_type", "most_influential_source_row", "most_influential_evidence_type",
@@ -37,6 +39,10 @@ CONFLICT_FIELDS = ("unit_a", "unit_b", "source_row_a", "source_row_b",
"source_text_a", "source_text_b") "source_text_a", "source_text_b")
IMPACT_FIELDS = ("unit_variant", "removed_source_row", "removed_evidence_type", "removed_quote", IMPACT_FIELDS = ("unit_variant", "removed_source_row", "removed_evidence_type", "removed_quote",
"leave_one_out_value", "change_pct", "disconnected") "leave_one_out_value", "change_pct", "disconnected")
COMPARISON_FIELDS = ("unit_variant", "all_fit", "all_ranked_value", "all_confidence",
"all_explicit_asks", "all_inferred_asks", "explicit_only_fit",
"explicit_only_ranked_value", "explicit_only_confidence",
"change_pct_without_inferred", "explicit_only_connection")
def source_order(source: int | str) -> tuple[int, int | str]: def source_order(source: int | str) -> tuple[int, int | str]:
@@ -143,12 +149,18 @@ def fit_values(direct: list[dict], bundles: list[dict], completed: list[dict] |
*, include_report: bool = False) -> tuple: *, include_report: bool = False) -> tuple:
quotes = [] quotes = []
for item in direct: for item in direct:
inferred = item.get("quote_type") == "listing_pair"
quotes.append(({item["offered_unit"]: int(item["offered_qty"])}, quotes.append(({item["offered_unit"]: int(item["offered_qty"])},
{item["requested_unit"]: int(item["requested_qty"])}, {item["requested_unit"]: int(item["requested_qty"])},
int(item["source_row"]), 3.0, item.get("source_text", ""), "asking_direct")) int(item["source_row"]), 3.0 * (INFERRED_WEIGHT_FACTOR if inferred else 1.0),
item.get("source_text", ""),
"asking_direct_inferred" if inferred else "asking_direct_explicit"))
for item in bundles: for item in bundles:
inferred = item.get("quote_type") == "listing_pair"
quotes.append((item["offered"], item["requested"], int(item["source_row"]), quotes.append((item["offered"], item["requested"], int(item["source_row"]),
1.0, item.get("source_text", ""), "asking_bundle")) INFERRED_WEIGHT_FACTOR if inferred else 1.0,
item.get("source_text", ""),
"asking_bundle_inferred" if inferred else "asking_bundle_explicit"))
for item in completed or []: for item in completed or []:
quotes.append((item["offered"], item["requested"], item["source_row"], quotes.append((item["offered"], item["requested"], item["source_row"],
COMPLETED_WEIGHT, item.get("source_text", ""), "completed_trade")) COMPLETED_WEIGHT, item.get("source_text", ""), "completed_trade"))
@@ -168,6 +180,10 @@ def fit_values(direct: list[dict], bundles: list[dict], completed: list[dict] |
completed_count = len({q[2] for q in connected if q[5] == "completed_trade" completed_count = len({q[2] for q in connected if q[5] == "completed_trade"
and unit in set(q[0]) | set(q[1])}) and unit in set(q[0]) | set(q[1])})
asking_count = count - completed_count asking_count = count - completed_count
explicit_sources = {q[2] for q in connected if q[5].endswith("_explicit")
and unit in set(q[0]) | set(q[1])}
inferred_sources = {q[2] for q in connected if q[5].endswith("_inferred")
and unit in set(q[0]) | set(q[1])} - explicit_sources
omitted_values = [(quote, fitted.get(unit)) for quote, fitted in omissions] omitted_values = [(quote, fitted.get(unit)) for quote, fitted in omissions]
for quote, fitted in omitted_values: for quote, fitted in omitted_values:
impacts.append({ impacts.append({
@@ -197,6 +213,8 @@ def fit_values(direct: list[dict], bundles: list[dict], completed: list[dict] |
report.append({ report.append({
"unit_variant": unit, "quote_count": count, "unit_variant": unit, "quote_count": count,
"asking_quote_count": asking_count, "completed_trade_count": completed_count, "asking_quote_count": asking_count, "completed_trade_count": completed_count,
"explicit_ask_count": len(explicit_sources),
"inferred_ask_count": len(inferred_sources),
"full_fit_value": round(value, 1), "full_fit_value": round(value, 1),
"leave_one_out_min": round(min(fitted for _, fitted in retained), 1) if retained else "", "leave_one_out_min": round(min(fitted for _, fitted in retained), 1) if retained else "",
"leave_one_out_max": round(max(fitted for _, fitted in retained), 1) if retained else "", "leave_one_out_max": round(max(fitted for _, fitted in retained), 1) if retained else "",
@@ -214,6 +232,8 @@ def fit_values(direct: list[dict], bundles: list[dict], completed: list[dict] |
"confidence": confidence, "confidence": confidence,
"quote_count": count, "quote_count": count,
"asking_quote_count": asking_count, "asking_quote_count": asking_count,
"explicit_ask_count": len(explicit_sources),
"inferred_ask_count": len(inferred_sources),
"completed_trade_count": completed_count, "completed_trade_count": completed_count,
"source_rows": source_list(sources[unit]), "source_rows": source_list(sources[unit]),
"basis": ("completed_and_asking" if completed_count and asking_count else "basis": ("completed_and_asking" if completed_count and asking_count else
@@ -234,6 +254,8 @@ def fit_values(direct: list[dict], bundles: list[dict], completed: list[dict] |
"confidence": "constraint_only", "confidence": "constraint_only",
"quote_count": 0, "quote_count": 0,
"asking_quote_count": 0, "asking_quote_count": 0,
"explicit_ask_count": 0,
"inferred_ask_count": 0,
"completed_trade_count": 0, "completed_trade_count": 0,
"source_rows": "", "source_rows": "",
"basis": "user_supplied_ordering", "basis": "user_supplied_ordering",
@@ -259,6 +281,40 @@ def fit_values(direct: list[dict], bundles: list[dict], completed: list[dict] |
return result, summary return result, summary
def compare_evidence_modes(all_values: list[dict], all_report: list[dict],
explicit_values: list[dict], explicit_report: list[dict]) -> list[dict]:
"""Show the diagnostic fit and published value with inferred asks removed."""
all_rows = {row["unit_variant"]: row for row in all_values}
explicit_rows = {row["unit_variant"]: row for row in explicit_values}
all_fits = {row["unit_variant"]: row for row in all_report}
explicit_fits = {row["unit_variant"]: row for row in explicit_report}
result = []
for unit in sorted(all_rows.keys() | explicit_rows.keys()):
full = all_rows.get(unit, {})
reduced = explicit_rows.get(unit, {})
full_fit = all_fits.get(unit, {}).get("full_fit_value", "")
reduced_fit = explicit_fits.get(unit, {}).get("full_fit_value", "")
change = (round(100 * (reduced_fit - full_fit) / full_fit, 1)
if isinstance(full_fit, (int, float)) and full_fit
and isinstance(reduced_fit, (int, float)) else "")
result.append({
"unit_variant": unit,
"all_fit": full_fit,
"all_ranked_value": full.get("relative_value", ""),
"all_confidence": full.get("confidence", ""),
"all_explicit_asks": full.get("explicit_ask_count", 0),
"all_inferred_asks": full.get("inferred_ask_count", 0),
"explicit_only_fit": reduced_fit,
"explicit_only_ranked_value": reduced.get("relative_value", ""),
"explicit_only_confidence": reduced.get(
"confidence", "disconnected" if unit in all_fits else ""),
"change_pct_without_inferred": change,
"explicit_only_connection": ("connected" if unit in explicit_fits else
"disconnected" if unit in all_fits else "constraint_only"),
})
return result
def main() -> None: def main() -> None:
parser = argparse.ArgumentParser(description=__doc__) parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--input", type=Path, default=Path("trades.csv")) parser.add_argument("--input", type=Path, default=Path("trades.csv"))
@@ -269,10 +325,11 @@ def main() -> None:
parser.add_argument("--confidence-output", type=Path, default=Path("confidence_report.csv")) parser.add_argument("--confidence-output", type=Path, default=Path("confidence_report.csv"))
parser.add_argument("--conflicts-output", type=Path, default=Path("quote_conflicts.csv")) parser.add_argument("--conflicts-output", type=Path, default=Path("quote_conflicts.csv"))
parser.add_argument("--impact-output", type=Path, default=Path("quote_impact.csv")) parser.add_argument("--impact-output", type=Path, default=Path("quote_impact.csv"))
parser.add_argument("--comparison-output", type=Path, default=Path("evidence_comparison.csv"))
args = parser.parse_args() args = parser.parse_args()
destinations = [args.output.resolve(), args.bundle_output.resolve(), args.direct_output.resolve(), destinations = [args.output.resolve(), args.bundle_output.resolve(), args.direct_output.resolve(),
args.confidence_output.resolve(), args.conflicts_output.resolve(), args.confidence_output.resolve(), args.conflicts_output.resolve(),
args.impact_output.resolve()] args.impact_output.resolve(), args.comparison_output.resolve()]
inputs = {args.input.resolve(), args.completed_trades.resolve()} inputs = {args.input.resolve(), args.completed_trades.resolve()}
if len(inputs) != 2 or len(set(destinations)) != len(destinations) or inputs.intersection(destinations): if len(inputs) != 2 or len(set(destinations)) != len(destinations) or inputs.intersection(destinations):
parser.error("input and output paths must all differ") parser.error("input and output paths must all differ")
@@ -288,6 +345,11 @@ def main() -> None:
completed = load_completed_trades(args.completed_trades) completed = load_completed_trades(args.completed_trades)
values, summary, report, conflicts, impacts = fit_values( values, summary, report, conflicts, impacts = fit_values(
direct, bundles, completed, include_report=True) direct, bundles, completed, include_report=True)
explicit_values, _, explicit_report, _, _ = fit_values(
[quote for quote in direct if quote["quote_type"] == "explicit_for"],
[quote for quote in bundles if quote["quote_type"] == "explicit_for"],
completed, include_report=True)
comparison = compare_evidence_modes(values, report, explicit_values, explicit_report)
for destination in destinations: for destination in destinations:
destination.parent.mkdir(parents=True, exist_ok=True) destination.parent.mkdir(parents=True, exist_ok=True)
with args.direct_output.open("w", encoding="utf-8-sig", newline="") as stream: with args.direct_output.open("w", encoding="utf-8-sig", newline="") as stream:
@@ -305,6 +367,7 @@ def main() -> None:
with args.output.open("w", encoding="utf-8-sig", newline="") as stream: with args.output.open("w", encoding="utf-8-sig", newline="") as stream:
writer = csv.DictWriter(stream, fieldnames=("rank", "unit_variant", "relative_value", writer = csv.DictWriter(stream, fieldnames=("rank", "unit_variant", "relative_value",
"confidence", "quote_count", "asking_quote_count", "confidence", "quote_count", "asking_quote_count",
"explicit_ask_count", "inferred_ask_count",
"completed_trade_count", "source_rows", "completed_trade_count", "source_rows",
"basis", "note")) "basis", "note"))
writer.writeheader() writer.writeheader()
@@ -321,6 +384,10 @@ def main() -> None:
writer = csv.DictWriter(stream, fieldnames=IMPACT_FIELDS) writer = csv.DictWriter(stream, fieldnames=IMPACT_FIELDS)
writer.writeheader() writer.writeheader()
writer.writerows(impacts) writer.writerows(impacts)
with args.comparison_output.open("w", encoding="utf-8-sig", newline="") as stream:
writer = csv.DictWriter(stream, fieldnames=COMPARISON_FIELDS)
writer.writeheader()
writer.writerows(comparison)
except (OSError, ValueError) as error: except (OSError, ValueError) as error:
parser.error(str(error)) parser.error(str(error))
print(f"Saved {len(values)} provisional entries from {len(rows)} listings; " print(f"Saved {len(values)} provisional entries from {len(rows)} listings; "
-1
View File
@@ -1,2 +1 @@
unit_a,unit_b,source_row_a,source_row_b,value_ratio_a,value_ratio_b,ratio_difference_pct,source_text_a,source_text_b unit_a,unit_b,source_row_a,source_row_b,value_ratio_a,value_ratio_b,ratio_difference_pct,source_text_a,source_text_b
Alucard Evo,Homura Evo,187,947,2.0,1.0,100.0,2 Homura Evo FOR Alucard Evo,my Homura Evo for Alucard Evo
1 unit_a unit_b source_row_a source_row_b value_ratio_a value_ratio_b ratio_difference_pct source_text_a source_text_b
Alucard Evo Homura Evo 187 947 2.0 1.0 100.0 2 Homura Evo FOR Alucard Evo my Homura Evo for Alucard Evo
+1804 -1596
View File
File diff suppressed because it is too large Load Diff
+35 -1
View File
@@ -7,7 +7,7 @@ from unittest.mock import patch
from discord_trade_parser import (Message, clean_export_text, clean_offer_items, clean_request_fields, from discord_trade_parser import (Message, clean_export_text, clean_offer_items, clean_request_fields,
export_csv, export_scam_warnings, extract_scam_warnings, iter_messages, export_csv, export_scam_warnings, extract_scam_warnings, iter_messages,
normalize_request_segments, normalize_request_segments, separate_received_bid,
parse_listing, parse_listings, parse_listing, parse_listings,
repair_glued_reposts, repair_glued_reposts,
repair_misfiled_lf_inventory, repair_misfiled_lf_inventory,
@@ -29,6 +29,20 @@ class OpenStringIO(StringIO):
class TradeItemCleanupTests(unittest.TestCase): class TradeItemCleanupTests(unittest.TestCase):
def test_multiplication_sign_quantities(self):
self.assertEqual(clean_export_text("2\u00d7 Homura Evo | \u00d71 Shizo Evo | Chuuni Evo \u00d72"),
"2x Homura Evo | 1x Shizo Evo | 2x Chuuni Evo")
def test_received_bid_is_not_owned_inventory(self):
self.assertEqual(
separate_received_bid("Shiny Megumin Evo | best offer: Shiny Aizen Evo"),
("Shiny Megumin Evo", "Shiny Aizen Evo"),
)
self.assertEqual(
separate_received_bid("Shiny Mist Ninja Evo | HIGH OFFER Shiny Homura Evo, 2 Aizen Evo"),
("Shiny Mist Ninja Evo", "Shiny Homura Evo, 2 Aizen Evo"),
)
def test_warning_csv_quotes_apostrophe_prefixed_text(self): def test_warning_csv_quotes_apostrophe_prefixed_text(self):
with sqlite3.connect(":memory:") as conn: with sqlite3.connect(":memory:") as conn:
conn.execute("CREATE TABLE scam_warnings (id INTEGER PRIMARY KEY, " conn.execute("CREATE TABLE scam_warnings (id INTEGER PRIMARY KEY, "
@@ -355,6 +369,26 @@ class TradeItemCleanupTests(unittest.TestCase):
self.assertIn("SSS SPA 11.5", raw_offer) self.assertIn("SSS SPA 11.5", raw_offer)
self.assertNotIn("Dm offers", raw_lf) self.assertNotIn("Dm offers", raw_lf)
def test_export_separates_pretrade_and_received_bid(self):
conn = sqlite3.connect(":memory:")
conn.execute("""CREATE TABLE trades (
id INTEGER PRIMARY KEY, offer TEXT, looking_for TEXT, lf TEXT,
mlf TEXT, nlf TEXT, author_hash TEXT, seen_count INTEGER,
update_count INTEGER, canon_offer TEXT)""")
conn.execute(
"INSERT INTO trades VALUES (?,?,?,?,?,?,?,?,?,?)",
(1, "PRE | Shiny Megumin | best offer: Shiny Aizen",
"", "", "", "", "a", 1, 0, "pretrade megumin"),
)
stream = OpenStringIO(newline="")
with patch.object(Path, "open", return_value=stream):
self.assertEqual(export_csv(conn, Path("trades.csv"), detailed=True), 1)
stream.seek(0)
row = next(csv.DictReader(stream))
self.assertEqual(row["offer"], "Shiny Megumin")
self.assertEqual(row["pretrade"], "yes")
self.assertEqual(row["received_bid"], "Shiny Aizen Evo")
def test_export_filters_old_database_rows(self): def test_export_filters_old_database_rows(self):
conn = sqlite3.connect(":memory:") conn = sqlite3.connect(":memory:")
conn.execute("""CREATE TABLE trades ( conn.execute("""CREATE TABLE trades (
+16
View File
@@ -1,9 +1,25 @@
import unittest import unittest
from bundle_quotes import extract_bundle_quotes
from extract_exchange_quotes import extract_quotes, parse_side from extract_exchange_quotes import extract_quotes, parse_side
class ExchangeQuoteTests(unittest.TestCase): class ExchangeQuoteTests(unittest.TestCase):
def test_stat_specific_inventory_is_not_a_base_variant_quote(self):
rows = [
{"author_hash": "a", "offer": "Homura Evo (SSS RNG)",
"lf": "my Homura Evo for Alucard Evo", "mlf": ""},
{"author_hash": "b", "offer": "Homura Evo (SSS RNG) | Homura Evo",
"lf": "my Homura Evo for Alucard Evo", "mlf": ""},
{"author_hash": "c", "offer": "Shiny Poseidon Evo | 14x Dark Mage Evo (A+/SSS/SS) | 2x Chuuni Evo",
"lf": "My Shiny Poseidon Evo, 1 Dark Mage Evo, 2x Chuuni Evo for Homura Evo",
"mlf": ""},
{"author_hash": "d", "offer": "2x Homura Evo 1 s,s,A, Alucard Evo",
"lf": "", "mlf": "my 2x Homura Evo for Aizen Evo"},
]
self.assertEqual([q["source_row"] for q in extract_quotes(rows)], [3])
self.assertEqual(extract_bundle_quotes(rows), [])
def test_only_exact_variant_and_quantity(self): def test_only_exact_variant_and_quantity(self):
self.assertEqual(parse_side("my 2 Shiny Aizen Evo"), self.assertEqual(parse_side("my 2 Shiny Aizen Evo"),
("Shiny Aizen Evo", 2, "my")) ("Shiny Aizen Evo", 2, "my"))
+56 -1
View File
@@ -1,10 +1,65 @@
import unittest import unittest
from bundle_quotes import extract_bundle_quotes, parse_bundle from bundle_quotes import extract_bundle_quotes, parse_bundle
from provisional_valuelist import conflicting_quotes, fit_values from provisional_valuelist import compare_evidence_modes, conflicting_quotes, fit_values
class ProvisionalValueListTests(unittest.TestCase): class ProvisionalValueListTests(unittest.TestCase):
def test_inferred_pairs_have_lower_weight_and_separate_comparison(self):
direct = [
{"offered_unit": "Homura Evo", "offered_qty": quantity,
"requested_unit": "Aizen Evo", "requested_qty": 1,
"source_row": row, "quote_type": kind, "source_text": "proposal"}
for row, quantity, kind in ((1, 2, "explicit_for"), (2, 2, "explicit_for"),
(3, 2, "explicit_for"), (4, 1, "listing_pair"))
]
all_values, _, all_report, _, impacts = fit_values(direct, [], include_report=True)
explicit_values, _, explicit_report, _, _ = fit_values(
direct[:3], [], include_report=True)
comparison = compare_evidence_modes(
all_values, all_report, explicit_values, explicit_report)
row = next(item for item in comparison if item["unit_variant"] == "Homura Evo")
self.assertEqual((row["all_explicit_asks"], row["all_inferred_asks"]), (3, 1))
self.assertGreater(row["all_fit"], row["explicit_only_fit"])
self.assertLess(row["all_fit"], 600) # The one-for-one inferred ask cannot dominate.
self.assertEqual((row["all_ranked_value"], row["explicit_only_ranked_value"]),
(550, 500))
self.assertTrue(any(item["removed_evidence_type"] == "asking_direct_inferred"
for item in impacts))
def test_comparison_keeps_unstable_variants_unranked(self):
direct = [
{"offered_unit": "Homura Evo", "offered_qty": quantity,
"requested_unit": "Aizen Evo", "requested_qty": 1,
"source_row": row, "quote_type": "explicit_for", "source_text": "proposal"}
for row, quantity in ((2, 1), (3, 1), (4, 10))
]
values, _, report, _, _ = fit_values(direct, [], include_report=True)
row = next(item for item in compare_evidence_modes(values, report, values, report)
if item["unit_variant"] == "Homura Evo")
self.assertEqual(row["all_confidence"], "unstable")
self.assertEqual((row["all_ranked_value"], row["explicit_only_ranked_value"]),
("", ""))
def test_comparison_marks_variant_disconnected_without_inferred_pair(self):
direct = [
{"offered_unit": "Homura Evo", "offered_qty": 1,
"requested_unit": "Aizen Evo", "requested_qty": 1,
"source_row": 2, "quote_type": "explicit_for", "source_text": "proposal"},
{"offered_unit": "Chuuni Evo", "offered_qty": 1,
"requested_unit": "Homura Evo", "requested_qty": 1,
"source_row": 3, "quote_type": "listing_pair", "source_text": "listing"},
]
values, _, report, _, _ = fit_values(direct, [], include_report=True)
explicit_values, _, explicit_report, _, _ = fit_values(
direct[:1], [], include_report=True)
row = next(item for item in compare_evidence_modes(
values, report, explicit_values, explicit_report)
if item["unit_variant"] == "Chuuni Evo")
self.assertEqual(row["explicit_only_connection"], "disconnected")
self.assertEqual(row["explicit_only_confidence"], "disconnected")
self.assertEqual(row["explicit_only_fit"], "")
def test_explicit_quantified_bundle_and_ambiguous_alternative(self): def test_explicit_quantified_bundle_and_ambiguous_alternative(self):
self.assertEqual(parse_bundle("my 2 Homura Evo + Buddha Evo")[0], self.assertEqual(parse_bundle("my 2 Homura Evo + Buddha Evo")[0],
{"Homura Evo": 2, "Buddha Evo": 1}) {"Homura Evo": 2, "Buddha Evo": 1})
+1760 -1611
View File
File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.
View File