Datasets:
Delete ML-1M.py
Browse files
ML-1M.py
DELETED
|
@@ -1,22 +0,0 @@
|
|
| 1 |
-
|
| 2 |
-
from datasets import BuilderConfig, Version, GeneratorBasedBuilder
|
| 3 |
-
|
| 4 |
-
class ML1MConfig(BuilderConfig):
|
| 5 |
-
def __init__(self, features, label_classes=(0, 1), **kwargs):
|
| 6 |
-
super().__init__(**kwargs)
|
| 7 |
-
self.features = features
|
| 8 |
-
self.label_classes = label_classes
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
class ML1M(GeneratorBasedBuilder):
|
| 12 |
-
BUILDER_CONFIG_CLASS = ML1MConfig
|
| 13 |
-
DEFAULT_CONFIG_NAME = "basic"
|
| 14 |
-
|
| 15 |
-
BUILDER_CONFIGS = [
|
| 16 |
-
ML1MConfig(
|
| 17 |
-
name="basic",
|
| 18 |
-
version=Version("0.0.1"),
|
| 19 |
-
description="basic ML-1M filterd based on time",
|
| 20 |
-
features=['uid', 'iid', 'rating', 'timestamp', 'title', 'genres', 'time'],
|
| 21 |
-
),
|
| 22 |
-
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|