Datasets:
Upload higgs.py
Browse files
higgs.py
CHANGED
@@ -57,7 +57,7 @@ _CITATION = """
|
|
57 |
|
58 |
# Dataset info
|
59 |
urls_per_split = {
|
60 |
-
"train": "https://gist.githubusercontent.com/msetzu/99114313deb9cc98318d5940fd536b06/raw/
|
61 |
}
|
62 |
features_types_per_config = {
|
63 |
"higgs": {
|
@@ -138,7 +138,6 @@ class Higgs(datasets.GeneratorBasedBuilder):
|
|
138 |
|
139 |
def preprocess(self, data: pandas.DataFrame, config: str = "higgs") -> pandas.DataFrame:
|
140 |
if config == "higgs":
|
141 |
-
print(list(data.columns))
|
142 |
return data[list(features_types_per_config[config].keys())]
|
143 |
else:
|
144 |
raise ValueError(f"Unknown config: {config}")
|
|
|
57 |
|
58 |
# Dataset info
|
59 |
urls_per_split = {
|
60 |
+
"train": "https://gist.githubusercontent.com/msetzu/99114313deb9cc98318d5940fd536b06/raw/7d4cb798cf460aa240b6b92d971009ae6790e3d0/gistfile1.txt",
|
61 |
}
|
62 |
features_types_per_config = {
|
63 |
"higgs": {
|
|
|
138 |
|
139 |
def preprocess(self, data: pandas.DataFrame, config: str = "higgs") -> pandas.DataFrame:
|
140 |
if config == "higgs":
|
|
|
141 |
return data[list(features_types_per_config[config].keys())]
|
142 |
else:
|
143 |
raise ValueError(f"Unknown config: {config}")
|