lyang84 commited on
Commit
e6b8ddf
·
1 Parent(s): e26a0eb

add manifold benchmark dataset (belief+trade prepared splits/support)

Browse files
.gitattributes CHANGED
@@ -70,3 +70,4 @@ legacy/v1/v1_profilegen/state/train_rows.jsonl filter=lfs diff=lfs merge=lfs -te
70
  legacy/v1/v1_profilegen/state/validation_rows.jsonl filter=lfs diff=lfs merge=lfs -text
71
  Belief/metadata/profile_state_train_rows.jsonl filter=lfs diff=lfs merge=lfs -text
72
  Belief/metadata/profile_state_validation_rows.jsonl filter=lfs diff=lfs merge=lfs -text
 
 
70
  legacy/v1/v1_profilegen/state/validation_rows.jsonl filter=lfs diff=lfs merge=lfs -text
71
  Belief/metadata/profile_state_train_rows.jsonl filter=lfs diff=lfs merge=lfs -text
72
  Belief/metadata/profile_state_validation_rows.jsonl filter=lfs diff=lfs merge=lfs -text
73
+ manifold/**/*.csv filter=lfs diff=lfs merge=lfs -text
manifold/README.md ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Manifold UserModeling Benchmark (Belief WIP)
2
+
3
+ This repository mirrors the Polymarket benchmark layout and currently focuses on **Belief-layer data preparation**.
4
+
5
+ ## Folder Layout
6
+
7
+ - `dataset/Belief/source/`
8
+ - `dataset/Belief/splits/`
9
+ - `dataset/Belief/support_set/`
10
+ - `benchmark/Belief/{direct,profile,retrieval}/` (placeholders for next stage)
11
+ - `metadata/`
12
+
13
+ ---
14
+
15
+ ## 1) Source Tables (`dataset/Belief/source/`)
16
+
17
+ ### `data.csv`
18
+ User-market final belief master table (one row per `userId*marketId`).
19
+
20
+ Key columns:
21
+ - `userId`, `marketId`
22
+ - `options_n`
23
+ - `dominant_option`, `dominant_net`, `dominant_share`
24
+ - `candidate_options_json`
25
+ - `candidate_net_json`
26
+ - `candidate_bets_json`
27
+
28
+ Use this table as the primary supervised target source for Belief tasks.
29
+
30
+ ### `option_accumulate.csv`
31
+ Candidate-level accumulate table (one row per `userId*marketId*option`).
32
+
33
+ Key columns:
34
+ - `option_key` (`ANS:<answerId>` for multi-choice, `SIDE:YES/NO` for binary-like)
35
+ - `accumulate_net_amount`
36
+ - `bets_count`
37
+
38
+ Use this when you need per-candidate decomposition rather than only the dominant option.
39
+
40
+ ---
41
+
42
+ ## 2) Query Splits (`dataset/Belief/splits/`)
43
+
44
+ ### `train.csv`, `validation.csv`, `test.csv`
45
+ Rows are query `userId*marketId` samples split by **per-user market last-bet time** chronology.
46
+
47
+ ### `split_summary.txt`
48
+ Split counts summary.
49
+
50
+ ### `wallet_ids_experiment_2000.csv`
51
+ The sampled query user pool (2000 users, bucketed by `markets_per_user`).
52
+
53
+ ---
54
+
55
+ ## 3) Support Set (`dataset/Belief/support_set/`)
56
+
57
+ ### `support_users.csv`
58
+ Support user list and user-level stats.
59
+
60
+ ### `support_belief_final.csv`
61
+ Support users' final `user*market` belief summary (dominant/candidate aggregate view).
62
+
63
+ ### `support_belief_option_accumulate.csv`
64
+ Support users' candidate-level accumulate records.
65
+
66
+ ### `support_user_bets_chrono.csv`
67
+ Support users' **deduplicated bet events**, sorted by:
68
+ 1. `userId`
69
+ 2. `createdTime`
70
+ 3. `betId`
71
+
72
+ Key columns include:
73
+ - `userId`, `createdTime`, `betId`, `marketId`
74
+ - `outcome`, `answerId`, `amount`, `shares`
75
+ - `probBefore`, `probAfter`, `isApi`
76
+
77
+ ### `support_user_bets_index.csv`
78
+ Per-user row-range index into `support_user_bets_chrono.csv` for fast retrieval.
79
+
80
+ Columns:
81
+ - `userId`
82
+ - `start_row_in_events_csv_1based_excluding_header`
83
+ - `end_row_in_events_csv_1based_excluding_header`
84
+ - `num_bets`
85
+
86
+ ---
87
+
88
+ ## How to Use (Current Stage)
89
+
90
+ ### Belief supervised training
91
+ - Use `dataset/Belief/splits/{train,validation,test}.csv` as query samples.
92
+ - Use `dominant_option` (or candidate distribution fields) from source as labels.
93
+
94
+ ### Retrieval-style setup
95
+ - Query side: split files (`train/val/test`).
96
+ - Support side:
97
+ - User-level belief memory: `support_belief_final.csv`
98
+ - Event-level memory: `support_user_bets_chrono.csv` + `support_user_bets_index.csv`
99
+
100
+ ---
101
+
102
+ ## Notes
103
+
104
+ - Current files are CSV for transparency and easier inspection.
105
+ - Next stage will generate `benchmark/Belief/direct`, `profile`, and `retrieval` artifacts aligned with Polymarket format.
manifold/dataset/Belief/source/data.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2412f2d9d0a3a67740278c882e2e5bf94527580b58fc441f50460b784057b24f
3
+ size 307447116
manifold/dataset/Belief/source/option_accumulate.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dc88730d75de7863f8dcd394d3c8836388c1c219b745c4718e2139d07f9b46fa
3
+ size 166757516
manifold/dataset/Belief/splits/split_summary.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ users=2000
2
+ train_rows=121158
3
+ valid_rows=25189
4
+ test_rows=28020
manifold/dataset/Belief/splits/test.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f77a152df47db8b2c790d3504ff301935954ccb3aad03ad3c8886bc9cd75a53
3
+ size 6105695
manifold/dataset/Belief/splits/train.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:873259a66fd8660530148b56d5a3319b7f3b3d1010ea671b7642d2bb9f498656
3
+ size 22401305
manifold/dataset/Belief/splits/validation.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d3072238a0122524a5d47ce83bcff088e5c373e5b34f41000f78b166e9a3fb40
3
+ size 4928965
manifold/dataset/Belief/splits/wallet_ids_experiment_2000.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b1bdadea808e430b586550b875c9622cc9bc6729113762e2f75bef73cce0881f
3
+ size 161159
manifold/dataset/Belief/support_set/support_belief_final.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d47dc31f52bd606eaf7d9e4cce3ee01741c7affa27455e6cc49b7f0ee6c86d84
3
+ size 86104923
manifold/dataset/Belief/support_set/support_belief_option_accumulate.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b9a0ac9275dad05ac7e16789b416d055fa5e6eae1b5160fbeca1dd966f5d8a6f
3
+ size 102476686
manifold/dataset/Belief/support_set/support_user_bets_chrono.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2809859bb04492e1a5f9125eb518f79c9bc3839d3d129e9ac128fc60dcbb7f4c
3
+ size 439962629
manifold/dataset/Belief/support_set/support_user_bets_index.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:85cd38cabbf5fee789b6c2ce9f7a2ea9bfaed36ce21ed9d4f8ec690cb22c9d5a
3
+ size 507734
manifold/dataset/Belief/support_set/support_users.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1b10c69c6ccf239269fe803cc07550ed0d40f5be2596e417836071b0b97df35c
3
+ size 766974
manifold/dataset/README_FILES.md ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Dataset File Guide (Manifold Benchmark)
2
+
3
+ This document explains what each file in `dataset/` is for, including keys and common usage.
4
+
5
+ ## Common IDs
6
+
7
+ - `userId`: Manifold user ID
8
+ - `marketId`: Manifold market/contract ID
9
+ - `betId`: Unique bet event ID
10
+ - `answerId`: Candidate ID for multi-choice markets
11
+
12
+ ---
13
+
14
+ ## Belief
15
+
16
+ ### `Belief/source/data.csv`
17
+ **Granularity:** one row per `userId * marketId`
18
+
19
+ Contains final belief aggregation for each user-market pair.
20
+
21
+ Important columns:
22
+ - `dominant_option`: top accumulated option for this user-market
23
+ - `dominant_net`: net accumulated amount on dominant option
24
+ - `dominant_share`: |dominant_net| / total_abs_net
25
+ - `candidate_options_json`, `candidate_net_json`, `candidate_bets_json`: full option-level breakdown
26
+
27
+ Use this as the main target table for Belief prediction.
28
+
29
+ ### `Belief/source/option_accumulate.csv`
30
+ **Granularity:** one row per `userId * marketId * option_key`
31
+
32
+ Option-level accumulate details.
33
+
34
+ Important columns:
35
+ - `option_key`: `ANS:<answerId>` for multi-choice, `SIDE:YES/NO` for binary-like
36
+ - `accumulate_net_amount`: signed net accumulate amount for that option
37
+ - `bets_count`: number of events contributing to that option
38
+
39
+ Use this when you need detailed candidate-level signals.
40
+
41
+ ---
42
+
43
+ ### `Belief/splits/train.csv`, `validation.csv`, `test.csv`
44
+ **Granularity:** one row per `userId * marketId`
45
+
46
+ Query split files for Belief tasks.
47
+ Built by per-user chronological splitting (market-level timestamp ordering), then merged globally.
48
+
49
+ ### `Belief/splits/wallet_ids_experiment_2000.csv`
50
+ The 2000 sampled query users used for experiment splits.
51
+
52
+ ### `Belief/splits/split_summary.txt`
53
+ Summary counts for train/validation/test.
54
+
55
+ ---
56
+
57
+ ### `Belief/support_set/support_users.csv`
58
+ Support user list and user-level stats.
59
+
60
+ ### `Belief/support_set/support_belief_final.csv`
61
+ Support users' `user*market` final belief summary (dominant/candidate aggregate level).
62
+
63
+ ### `Belief/support_set/support_belief_option_accumulate.csv`
64
+ Support users' candidate-level accumulate rows.
65
+
66
+ ### `Belief/support_set/support_user_bets_chrono.csv`
67
+ Support users' deduplicated bet events sorted by:
68
+ 1) `userId`, 2) `createdTime`, 3) `betId`.
69
+
70
+ Useful for retrieval/profile construction.
71
+
72
+ ### `Belief/support_set/support_user_bets_index.csv`
73
+ Row-range index for `support_user_bets_chrono.csv`.
74
+
75
+ Columns:
76
+ - `start_row_in_events_csv_1based_excluding_header`
77
+ - `end_row_in_events_csv_1based_excluding_header`
78
+ - `num_bets`
79
+
80
+ Use this to quickly retrieve a single user's full event history.
81
+
82
+ ---
83
+
84
+ ## Trade
85
+
86
+ ### `Trade/splits/train.csv`, `validation.csv`, `test.csv`
87
+ **Granularity:** one row per bet event (`betId`)
88
+
89
+ Query trade split files.
90
+ For each query user, bets are sorted by `createdTime` and split by 85/10/5 chronologically, then merged.
91
+
92
+ Important columns include:
93
+ - `userId`, `createdTime`, `betId`, `marketId`
94
+ - `outcome`, `answerId`
95
+ - `amount`, `shares`
96
+ - `probBefore`, `probAfter`
97
+ - `isApi`
98
+
99
+ ### `Trade/splits/split_summary.txt`
100
+ Summary counts for Trade splits.
101
+
102
+ ---
103
+
104
+ ### `Trade/support_set/support_trades.csv`
105
+ Support users' deduplicated trade events in chronological order per user.
106
+
107
+ ### `Trade/support_set/support_trades_index.csv`
108
+ Per-user row-range index into `support_trades.csv`.
109
+
110
+ ### `Trade/support_set/support_summary.txt`
111
+ Support user/bet count summary.
112
+
113
+ ---
114
+
115
+ ## Recommended Join Paths
116
+
117
+ - Belief query rows (`Belief/splits/*.csv`) ↔ source belief (`Belief/source/data.csv`) by `(userId, marketId)`.
118
+ - Trade query rows (`Trade/splits/*.csv`) are already event-level; join to support by `userId` if needed.
119
+ - For multi-choice text reconstruction, map `answerId` using market metadata/API snapshots.
120
+
manifold/dataset/Trade/splits/split_summary.txt ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ query_users=2000
2
+ total_query_bets=453273
3
+ train=384323
4
+ validation=44431
5
+ test=24519
manifold/dataset/Trade/splits/test.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6e2a8e1c0ce6f96478f3daa3d9716ab554f5b9cef87d2b4ea14f0828b7563ebf
3
+ size 3737045
manifold/dataset/Trade/splits/train.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e2954cbeecf9bf3e2c0d16f7743e2cec41856643661e144157a563765c2b7606
3
+ size 59743391
manifold/dataset/Trade/splits/validation.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8cad3fa41c7cc61a568a0eed09576d8be4ca4fb2972210a239d3fddea249fb1b
3
+ size 6824308
manifold/dataset/Trade/support_set/support_summary.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ support_users=10389
2
+ support_bets=2843769
manifold/dataset/Trade/support_set/support_trades.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2809859bb04492e1a5f9125eb518f79c9bc3839d3d129e9ac128fc60dcbb7f4c
3
+ size 439962629
manifold/dataset/Trade/support_set/support_trades_index.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:29f475ebf85569cc56694bb6e86c553fa2ef6416b27023221a1ede4b697cf5e6
3
+ size 507692
manifold/metadata/index.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "manifold-benchmark",
3
+ "status": "belief-data-prepared",
4
+ "tasks": ["Belief"],
5
+ "formats": ["csv"],
6
+ "notes": "DirectGen/ProfileGen/RetrievalGen to be generated later"
7
+ }