Younggooo commited on
Commit
b53110d
·
verified ·
1 Parent(s): ee9c1c1

Add dataset card

Browse files
Files changed (1) hide show
  1. README.md +146 -35
README.md CHANGED
@@ -1,37 +1,148 @@
1
  ---
2
- dataset_info:
3
- features:
4
- - name: instruction
5
- dtype: string
6
- - name: input
7
- dtype: string
8
- - name: gt_item_id
9
- dtype: string
10
- - name: gt_title
11
- dtype: string
12
- - name: gt_rating
13
- dtype: float64
14
- - name: user_id
15
- dtype: string
16
- - name: user_type
17
- dtype: string
18
- - name: candidate_set
19
- dtype: string
20
- - name: source_domain
21
- dtype: string
22
- - name: target_domain
23
- dtype: string
24
- - name: candidate_count
25
- dtype: int64
26
- splits:
27
- - name: val
28
- num_bytes: 145128496
29
- num_examples: 12000
30
- download_size: 50456581
31
- dataset_size: 145128496
32
- configs:
33
- - config_name: default
34
- data_files:
35
- - split: val
36
- path: data/val-*
37
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: apache-2.0
3
+ task_categories:
4
+ - text-generation
5
+ language:
6
+ - en
7
+ tags:
8
+ - recommendation
9
+ - cross-domain
10
+ - evaluation
11
+ - kitrec
12
+ - validation-data
13
+ size_categories:
14
+ - 10K<n<100K
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  ---
16
+
17
+ # KitREC Validation Dataset - Set A
18
+
19
+ Validation dataset for the KitREC (Knowledge-Instruction Transfer for Recommendation) cross-domain recommendation system.
20
+
21
+ ## Dataset Description
22
+
23
+ This validation dataset is designed for evaluating fine-tuned LLMs on cross-domain recommendation tasks during training. It uses the same users as the test set but allows for validation monitoring.
24
+
25
+ ### Dataset Summary
26
+
27
+ | Attribute | Value |
28
+ |-----------|-------|
29
+ | **Candidate Set** | Set A (Hybrid (Hard negatives + Random)) |
30
+ | **Total Samples** | 12,000 |
31
+ | **Source Domain** | Books |
32
+ | **Target Domains** | Movies & TV, Music |
33
+ | **User Types** | 4 (2 per target domain) |
34
+ | **Rating Range** | 1.0 - 5.0 |
35
+ | **Mean Rating** | 4.171 |
36
+
37
+ ### Set A vs Set B
38
+
39
+ - **Set A (Hybrid)**: Contains hard negative candidates + random candidates for challenging evaluation
40
+ - **Set B (Random)**: Contains only random candidates for fair baseline comparison
41
+
42
+ Both sets use the same ground truth items but differ in candidate composition.
43
+
44
+ ### User Type Distribution
45
+
46
+ | User Type | Count | Percentage |
47
+ |-----------|-------|------------|
48
+ | overlapping_books_movies | 3,000 | 25.00% |
49
+ | overlapping_books_music | 3,000 | 25.00% |
50
+ | source_only_movies | 3,000 | 25.00% |
51
+ | source_only_music | 3,000 | 25.00% |
52
+
53
+
54
+ ### User Type Definitions
55
+
56
+ | User Type | Description |
57
+ |-----------|-------------|
58
+ | `overlapping_books_movies` | Users with history in both Books and Movies & TV |
59
+ | `overlapping_books_music` | Users with history in both Books and Music |
60
+ | `source_only_movies` | Users with ONLY Books history (extreme cold-start for Movies) |
61
+ | `source_only_music` | Users with ONLY Books history (extreme cold-start for Music) |
62
+
63
+ ## Dataset Structure
64
+
65
+ ### Data Fields
66
+
67
+ - `instruction` (string): The recommendation prompt including user history
68
+ - `input` (string): Candidate items for recommendation (100 items per sample)
69
+ - `gt_item_id` (string): Ground truth item ID
70
+ - `gt_title` (string): Ground truth item title
71
+ - `gt_rating` (float): User's actual rating for the ground truth item (1-5 scale)
72
+ - `user_id` (string): Unique user identifier
73
+ - `user_type` (string): User category (4 types)
74
+ - `candidate_set` (string): A or B
75
+ - `source_domain` (string): Books
76
+ - `target_domain` (string): Movies & TV or Music
77
+ - `candidate_count` (int): Number of candidate items (100)
78
+
79
+ ### Data Split
80
+
81
+ | Split | Samples | Description |
82
+ |-------|---------|-------------|
83
+ | val | 12,000 | Validation set for training monitoring |
84
+
85
+ ## Usage
86
+
87
+ ```python
88
+ from datasets import load_dataset
89
+
90
+ # Load validation dataset
91
+ dataset = load_dataset("Younggooo/kitrec-val-seta")
92
+
93
+ # Access validation data
94
+ val_data = dataset["val"]
95
+ print(f"Validation samples: {len(val_data)}")
96
+
97
+ # Example: Filter by user type
98
+ overlapping_movies = val_data.filter(
99
+ lambda x: x["user_type"] == "overlapping_books_movies"
100
+ )
101
+ print(f"Overlapping Movies users: {len(overlapping_movies)}")
102
+
103
+ # Example: Calculate metrics by user type
104
+ from collections import defaultdict
105
+ user_type_metrics = defaultdict(list)
106
+ for sample in val_data:
107
+ user_type_metrics[sample["user_type"]].append(sample["gt_rating"])
108
+ ```
109
+
110
+ ## Validation vs Test Data
111
+
112
+ | Aspect | Validation (this dataset) | Test |
113
+ |--------|---------------------------|------|
114
+ | Samples | 12,000 | 30,000 |
115
+ | User Types | 4 types | 10 types |
116
+ | Purpose | Training monitoring | Final evaluation |
117
+ | Usage | During training | After training |
118
+
119
+ ### Why Separate Validation Set?
120
+
121
+ - Monitors training progress without data leakage
122
+ - Enables early stopping based on validation loss
123
+ - Validates model generalization during development
124
+
125
+ ## Evaluation Protocol
126
+
127
+ ### Metrics
128
+ - **Hit@K** (K=1, 5, 10): Whether GT item is in top-K predictions
129
+ - **MRR**: Mean Reciprocal Rank
130
+ - **NDCG@10**: Normalized Discounted Cumulative Gain
131
+
132
+ ### RQ4: Confidence-Rating Alignment
133
+ Use `gt_rating` field to analyze correlation between model's confidence scores and actual user ratings.
134
+
135
+ ## Citation
136
+
137
+ ```bibtex
138
+ @misc{kitrec2024,
139
+ title={KitREC: Knowledge-Instruction Transfer for Cross-Domain Recommendation},
140
+ author={KitREC Research Team},
141
+ year={2024},
142
+ note={Validation dataset for cross-domain recommendation evaluation}
143
+ }
144
+ ```
145
+
146
+ ## License
147
+
148
+ This dataset is released under the Apache 2.0 License.