ejschwartz
commited on
Commit
•
2ba158b
1
Parent(s):
01df533
Update oo-method-test-split.py
Browse files- oo-method-test-split.py +2 -3
oo-method-test-split.py
CHANGED
@@ -46,14 +46,13 @@ class OOMethodTestDataset(datasets.ArrowBasedBuilder):
|
|
46 |
|
47 |
def _info(self):
|
48 |
return datasets.DatasetInfo(
|
49 |
-
features = {'Binary': datasets.Value(dtype='string', id=None),
|
50 |
'Addr': datasets.Value(dtype='string', id=None),
|
51 |
'Name': datasets.Value(dtype='string', id=None),
|
52 |
'Type': datasets.ClassLabel(num_classes=2, names=['func', 'method']),
|
53 |
'Disassembly': datasets.Value(dtype='string', id=None),
|
54 |
'Dirname': datasets.Value(dtype='string', id=None),
|
55 |
-
'Exename': datasets.Value(dtype='string', id=None)}
|
56 |
-
)
|
57 |
|
58 |
def _split_generators(self, dl_manager):
|
59 |
ds = datasets.load_dataset(BASE_DATASET)['combined']
|
|
|
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', id=None),
|
51 |
'Name': datasets.Value(dtype='string', id=None),
|
52 |
'Type': datasets.ClassLabel(num_classes=2, names=['func', 'method']),
|
53 |
'Disassembly': datasets.Value(dtype='string', id=None),
|
54 |
'Dirname': datasets.Value(dtype='string', id=None),
|
55 |
+
'Exename': datasets.Value(dtype='string', id=None)})
|
|
|
56 |
|
57 |
def _split_generators(self, dl_manager):
|
58 |
ds = datasets.load_dataset(BASE_DATASET)['combined']
|