jglaser commited on
Commit
0b73ad0
1 Parent(s): d22fced

use all data for training for now

Browse files
Files changed (1) hide show
  1. binding_affinity.py +18 -19
binding_affinity.py CHANGED
@@ -48,8 +48,7 @@ _LICENSE = "BSD two-clause"
48
  # The HuggingFace dataset library don't host the datasets but only point to the original files
49
  # This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
50
  _URLs = {
51
- # 'default': "https://huggingface.co/datasets/jglaser/binding_affinity/resolve/main/data/all.parquet",
52
- 'default': "https://huggingface.co/datasets/jglaser/binding_affinity/",
53
  }
54
 
55
 
@@ -127,26 +126,26 @@ class BindingAffinity(datasets.ArrowBasedBuilder):
127
  name=datasets.Split.TRAIN,
128
  # These kwargs will be passed to _generate_examples
129
  gen_kwargs={
130
- "filepath": os.path.join(data_dir, "train.parquet"),
131
  "split": "train",
132
  },
133
  ),
134
- datasets.SplitGenerator(
135
- name=datasets.Split.TEST,
136
- # These kwargs will be passed to _generate_examples
137
- gen_kwargs={
138
- "filepath": os.path.join(data_dir, "test.parquet"),
139
- "split": "test"
140
- },
141
- ),
142
- datasets.SplitGenerator(
143
- name=datasets.Split.VALIDATION,
144
- # These kwargs will be passed to _generate_examples
145
- gen_kwargs={
146
- "filepath": os.path.join(data_dir, "dev.parquet"),
147
- "split": "dev",
148
- },
149
- ),
150
  ]
151
 
152
  def _generate_examples(
 
48
  # The HuggingFace dataset library don't host the datasets but only point to the original files
49
  # This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
50
  _URLs = {
51
+ 'default': ["https://huggingface.co/datasets/jglaser/binding_affinity/resolve/main/data/all.parquet"],
 
52
  }
53
 
54
 
 
126
  name=datasets.Split.TRAIN,
127
  # These kwargs will be passed to _generate_examples
128
  gen_kwargs={
129
+ "filepath": os.path.join(data_dir, "all.parquet"),
130
  "split": "train",
131
  },
132
  ),
133
+ # datasets.SplitGenerator(
134
+ # name=datasets.Split.TEST,
135
+ # # These kwargs will be passed to _generate_examples
136
+ # gen_kwargs={
137
+ # "filepath": os.path.join(data_dir, "test.parquet"),
138
+ # "split": "test"
139
+ # },
140
+ # ),
141
+ # datasets.SplitGenerator(
142
+ # name=datasets.Split.VALIDATION,
143
+ # # These kwargs will be passed to _generate_examples
144
+ # gen_kwargs={
145
+ # "filepath": os.path.join(data_dir, "dev.parquet"),
146
+ # "split": "dev",
147
+ # },
148
+ # ),
149
  ]
150
 
151
  def _generate_examples(