Merge branch 'main' of https://huggingface.co/datasets/ejschwartz/oo-method-test-split into main
Browse files- README.md +15 -0
- oo-method-test-split.py +8 -1
README.md
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
task_categories:
|
3 |
+
- text-classification
|
4 |
+
train-eval-index:
|
5 |
+
- config: bylibrary
|
6 |
+
task: text-classification
|
7 |
+
task_id: binary_classification
|
8 |
+
splits:
|
9 |
+
eval_split: test
|
10 |
+
col_mapping:
|
11 |
+
Disassembly: text
|
12 |
+
Type: target
|
13 |
+
---
|
14 |
+
|
15 |
+
TODO: Add datacard
|
oo-method-test-split.py
CHANGED
@@ -45,7 +45,14 @@ class OOMethodTestDataset(datasets.ArrowBasedBuilder):
|
|
45 |
super().__init__(*args, **kwargs)
|
46 |
|
47 |
def _info(self):
|
48 |
-
return datasets.DatasetInfo(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
|
50 |
def _split_generators(self, dl_manager):
|
51 |
ds = datasets.load_dataset(BASE_DATASET, download_mode=datasets.DownloadMode.FORCE_REDOWNLOAD)['combined']
|
|
|
45 |
super().__init__(*args, **kwargs)
|
46 |
|
47 |
def _info(self):
|
48 |
+
return datasets.DatasetInfo(
|
49 |
+
features = datasets.Features({'Binary': datasets.Value(dtype='string', id=None),
|
50 |
+
'Addr': datasets.Value(dtype='string'),
|
51 |
+
'Name': datasets.Value(dtype='string'),
|
52 |
+
'Type': datasets.ClassLabel(num_classes=2, names=['func', 'method']),
|
53 |
+
'Disassembly': datasets.Value(dtype='string'),
|
54 |
+
'Dirname': datasets.Value(dtype='string'),
|
55 |
+
'Exename': datasets.Value(dtype='string')}))
|
56 |
|
57 |
def _split_generators(self, dl_manager):
|
58 |
ds = datasets.load_dataset(BASE_DATASET, download_mode=datasets.DownloadMode.FORCE_REDOWNLOAD)['combined']
|