Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -158,16 +158,6 @@ Each split file is named `{parameter}-{strategy}_{subset}.csv`. The subsets are:
|
|
| 158 |
| `trainval` | Train + val combined | Retrain final model after hyperparameters are locked in |
|
| 159 |
| `trainvaltest` | All data combined | Train a release model once all evaluation is complete |
|
| 160 |
|
| 161 |
-
### Recommended Workflow
|
| 162 |
-
```
|
| 163 |
-
train + val → tune architecture and hyperparameters
|
| 164 |
-
trainval + test → final benchmark (report results here)
|
| 165 |
-
trainvaltest → train the final released model on all available data
|
| 166 |
-
```
|
| 167 |
-
|
| 168 |
-
This three-stage approach is standard practice in ML: you only touch the test set once,
|
| 169 |
-
and the combined files make it easy to retrain on progressively more data as you move
|
| 170 |
-
from experimentation to deployment.
|
| 171 |
|
| 172 |
---
|
| 173 |
|
|
@@ -178,20 +168,20 @@ from experimentation to deployment.
|
|
| 178 |
Each subset can be loaded into python using the HuggingFace [datasets](https://huggingface.co/docs/datasets/index) library. First, from the command line, install the `datasets` library
|
| 179 |
|
| 180 |
```bash
|
| 181 |
-
pip install datasets
|
| 182 |
```
|
| 183 |
|
| 184 |
### Load a subset
|
| 185 |
|
| 186 |
```python
|
| 187 |
-
>>>from datasets import load_dataset
|
| 188 |
|
| 189 |
# Options: "kcat", "km", "ki"
|
| 190 |
-
>>>ds = load_dataset("kunikohunter/CatPred-DB", "kcat")
|
| 191 |
|
| 192 |
-
>>>train = ds["train"]
|
| 193 |
-
>>>val = ds["validation"]
|
| 194 |
-
>>>test = ds["test"]
|
| 195 |
```
|
| 196 |
|
| 197 |
```
|
|
@@ -203,6 +193,43 @@ Generating validation split: 100%|███████████████
|
|
| 203 |
Generating test split: 100%|██████████████████████████████████████████████████████████████████████████████████| 23197/23197 [00:00<00:00, 74253.91 examples/s]
|
| 204 |
```
|
| 205 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 206 |
---
|
| 207 |
|
| 208 |
## Citation
|
|
|
|
| 158 |
| `trainval` | Train + val combined | Retrain final model after hyperparameters are locked in |
|
| 159 |
| `trainvaltest` | All data combined | Train a release model once all evaluation is complete |
|
| 160 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 161 |
|
| 162 |
---
|
| 163 |
|
|
|
|
| 168 |
Each subset can be loaded into python using the HuggingFace [datasets](https://huggingface.co/docs/datasets/index) library. First, from the command line, install the `datasets` library
|
| 169 |
|
| 170 |
```bash
|
| 171 |
+
>>> pip install datasets
|
| 172 |
```
|
| 173 |
|
| 174 |
### Load a subset
|
| 175 |
|
| 176 |
```python
|
| 177 |
+
>>> from datasets import load_dataset
|
| 178 |
|
| 179 |
# Options: "kcat", "km", "ki"
|
| 180 |
+
>>> ds = load_dataset("kunikohunter/CatPred-DB", "kcat")
|
| 181 |
|
| 182 |
+
>>> train = ds["train"]
|
| 183 |
+
>>> val = ds["validation"]
|
| 184 |
+
>>> test = ds["test"]
|
| 185 |
```
|
| 186 |
|
| 187 |
```
|
|
|
|
| 193 |
Generating test split: 100%|██████████████████████████████████████████████████████████████████████████████████| 23197/23197 [00:00<00:00, 74253.91 examples/s]
|
| 194 |
```
|
| 195 |
|
| 196 |
+
### Key columns
|
| 197 |
+
|
| 198 |
+
| Column | Description |
|
| 199 |
+
| --- | --- |
|
| 200 |
+
| `sequence` | Enzyme amino acid sequence |
|
| 201 |
+
| `uniprot` | UniProt identifier |
|
| 202 |
+
| `reactant_smiles` | Substrate SMILES |
|
| 203 |
+
| `value` | Raw kinetic value |
|
| 204 |
+
| `log10_value` | Log₁₀-transformed value — **use this as your target** |
|
| 205 |
+
| `temperature` | Assay temperature (°C), nullable |
|
| 206 |
+
| `ph` | Assay pH, nullable |
|
| 207 |
+
| `ec` | EC number |
|
| 208 |
+
| `sequence_40cluster` | Cluster ID at 40% identity — use for similarity-based splits |
|
| 209 |
+
|
| 210 |
+
### Recommended split workflow
|
| 211 |
+
|
| 212 |
+
```
|
| 213 |
+
train + val → tune architecture and hyperparameters
|
| 214 |
+
trainval + test → final benchmark (report results here)
|
| 215 |
+
trainvaltest → train the final released model on all available data
|
| 216 |
+
```
|
| 217 |
+
|
| 218 |
+
This three-stage approach is standard practice in ML: you only touch the test set once,
|
| 219 |
+
and the combined files make it easy to retrain on progressively more data as you move
|
| 220 |
+
from experimentation to deployment.
|
| 221 |
+
|
| 222 |
+
### Basic training setup
|
| 223 |
+
```python
|
| 224 |
+
>>> df = ds["train"].to_pandas()
|
| 225 |
+
|
| 226 |
+
>>> X_seq = df["sequence"]
|
| 227 |
+
>>> X_sub = df["reactant_smiles"]
|
| 228 |
+
>>> y = df["log10_value"]
|
| 229 |
+
|
| 230 |
+
# Drop rows with missing targets or substrates
|
| 231 |
+
>>> mask = y.notna() & X_sub.notna()
|
| 232 |
+
>>> df = df[mask]
|
| 233 |
---
|
| 234 |
|
| 235 |
## Citation
|