File size: 2,968 Bytes
e6b8ddf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# Manifold UserModeling Benchmark (Belief WIP)

This repository mirrors the Polymarket benchmark layout and currently focuses on **Belief-layer data preparation**.

## Folder Layout

- `dataset/Belief/source/`
- `dataset/Belief/splits/`
- `dataset/Belief/support_set/`
- `benchmark/Belief/{direct,profile,retrieval}/` (placeholders for next stage)
- `metadata/`

---

## 1) Source Tables (`dataset/Belief/source/`)

### `data.csv`
User-market final belief master table (one row per `userId*marketId`).

Key columns:
- `userId`, `marketId`
- `options_n`
- `dominant_option`, `dominant_net`, `dominant_share`
- `candidate_options_json`
- `candidate_net_json`
- `candidate_bets_json`

Use this table as the primary supervised target source for Belief tasks.

### `option_accumulate.csv`
Candidate-level accumulate table (one row per `userId*marketId*option`).

Key columns:
- `option_key` (`ANS:<answerId>` for multi-choice, `SIDE:YES/NO` for binary-like)
- `accumulate_net_amount`
- `bets_count`

Use this when you need per-candidate decomposition rather than only the dominant option.

---

## 2) Query Splits (`dataset/Belief/splits/`)

### `train.csv`, `validation.csv`, `test.csv`
Rows are query `userId*marketId` samples split by **per-user market last-bet time** chronology.

### `split_summary.txt`
Split counts summary.

### `wallet_ids_experiment_2000.csv`
The sampled query user pool (2000 users, bucketed by `markets_per_user`).

---

## 3) Support Set (`dataset/Belief/support_set/`)

### `support_users.csv`
Support user list and user-level stats.

### `support_belief_final.csv`
Support users' final `user*market` belief summary (dominant/candidate aggregate view).

### `support_belief_option_accumulate.csv`
Support users' candidate-level accumulate records.

### `support_user_bets_chrono.csv`
Support users' **deduplicated bet events**, sorted by:
1. `userId`
2. `createdTime`
3. `betId`

Key columns include:
- `userId`, `createdTime`, `betId`, `marketId`
- `outcome`, `answerId`, `amount`, `shares`
- `probBefore`, `probAfter`, `isApi`

### `support_user_bets_index.csv`
Per-user row-range index into `support_user_bets_chrono.csv` for fast retrieval.

Columns:
- `userId`
- `start_row_in_events_csv_1based_excluding_header`
- `end_row_in_events_csv_1based_excluding_header`
- `num_bets`

---

## How to Use (Current Stage)

### Belief supervised training
- Use `dataset/Belief/splits/{train,validation,test}.csv` as query samples.
- Use `dominant_option` (or candidate distribution fields) from source as labels.

### Retrieval-style setup
- Query side: split files (`train/val/test`).
- Support side:
  - User-level belief memory: `support_belief_final.csv`
  - Event-level memory: `support_user_bets_chrono.csv` + `support_user_bets_index.csv`

---

## Notes

- Current files are CSV for transparency and easier inspection.
- Next stage will generate `benchmark/Belief/direct`, `profile`, and `retrieval` artifacts aligned with Polymarket format.