Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,102 +1,102 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: gpl-3.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- text-generation
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
tags:
|
| 8 |
-
- chemistry
|
| 9 |
-
- molecular-editing
|
| 10 |
-
- drug-discovery
|
| 11 |
-
- smiles
|
| 12 |
-
- molecule-generation
|
| 13 |
-
pretty_name: MEGA Molecular Editing Dataset (522K)
|
| 14 |
-
size_categories:
|
| 15 |
-
- 100K<n<1M
|
| 16 |
-
---
|
| 17 |
-
|
| 18 |
-
# MEGA: A Large-Scale Molecular Editing Dataset for Guided-Action Optimization
|
| 19 |
-
|
| 20 |
-
Large-scale molecular editing dataset with 522K examples for training models to modify molecular structures based on natural language instructions.
|
| 21 |
-
|
| 22 |
-
**Paper**: [MEGA: A Large-Scale Molecular Editing Dataset for Guided-Action Optimization](https://openreview.net/pdf?id=MaS7e2EVFm)
|
| 23 |
-
**Official Repository**: [https://github.com/nfsrules/MEGA-moledit](https://github.com/nfsrules/MEGA-moledit)
|
| 24 |
-
|
| 25 |
-
## Usage
|
| 26 |
-
|
| 27 |
-
```python
|
| 28 |
-
from datasets import load_dataset
|
| 29 |
-
|
| 30 |
-
# Load dataset
|
| 31 |
-
dataset = load_dataset("nfsrulesFR/mega-moledit-522K")
|
| 32 |
-
|
| 33 |
-
# Access splits
|
| 34 |
-
# Positive examples (successful edits)
|
| 35 |
-
train_data = dataset["train"]
|
| 36 |
-
val_data = dataset["validation"]
|
| 37 |
-
# Negative examples (unsuccessful edits)
|
| 38 |
-
train_neg_data = dataset["train_neg"]
|
| 39 |
-
val_neg_data = dataset["validation_neg"]
|
| 40 |
-
|
| 41 |
-
# Example
|
| 42 |
-
example = train_data[0]
|
| 43 |
-
print(f"Prompt: {example['prompt']}")
|
| 44 |
-
print(f"Input: {example['input_smiles']}")
|
| 45 |
-
print(f"Output: {example['output_smiles']}")
|
| 46 |
-
```
|
| 47 |
-
|
| 48 |
-
## Supported Tasks
|
| 49 |
-
|
| 50 |
-
| Task ID | Description |
|
| 51 |
-
|---------|-------------|
|
| 52 |
-
| 101 | Increase water solubility |
|
| 53 |
-
| 102 | Decrease water solubility |
|
| 54 |
-
| 103 | Increase drug-likeness |
|
| 55 |
-
| 104 | Decrease drug-likeness |
|
| 56 |
-
| 105 | Increase permeability |
|
| 57 |
-
| 106 | Decrease permeability |
|
| 58 |
-
| 107 | Increase hydrogen bond acceptors |
|
| 59 |
-
| 108 | Increase hydrogen bond donors |
|
| 60 |
-
| 201 | Increase solubility + HBA |
|
| 61 |
-
| 202 | Decrease solubility + increase HBA |
|
| 62 |
-
| 203 | Increase solubility + HBD |
|
| 63 |
-
| 204 | Decrease solubility + increase HBD |
|
| 64 |
-
| 205 | Increase solubility + permeability |
|
| 65 |
-
| 206 | Increase solubility + decrease permeability |
|
| 66 |
-
|
| 67 |
-
## Dataset Structure
|
| 68 |
-
|
| 69 |
-
Each example contains:
|
| 70 |
-
- `task_id`: Task identifier
|
| 71 |
-
- `prompt`: Natural language instruction
|
| 72 |
-
- `input_smiles`: Input molecule
|
| 73 |
-
- `output_smiles`: Target molecule
|
| 74 |
-
- `action_type`: Edit operation type
|
| 75 |
-
- `edit`: Specific edit applied
|
| 76 |
-
- `target_delta`: Change in target property
|
| 77 |
-
- `SA_delta`: Change in Synthetic Accessibility
|
| 78 |
-
- `MW_delta`: Change in Molecular Weight
|
| 79 |
-
- `QED_delta`: Change in Drug-likeness
|
| 80 |
-
- `murcko_scaffold_retained`: Scaffold preservation flag
|
| 81 |
-
|
| 82 |
-
**Splits**: `train` (469K), `validation` (52K), `train_neg` (469K), `validation_neg` (52K)
|
| 83 |
-
|
| 84 |
-
## Trained Models
|
| 85 |
-
|
| 86 |
-
Llama 3 8B-based models for molecular optimization:
|
| 87 |
-
|
| 88 |
-
- **MEGA-SFT**: [nfsrulesFR/mega-sft](https://huggingface.co/nfsrulesFR/mega-sft) - Supervised fine-tuning model
|
| 89 |
-
- **MEGA-GRPO**: [nfsrulesFR/mega-grpo](https://huggingface.co/nfsrulesFR/mega-grpo) - Tanimoto-GRPO optimized model
|
| 90 |
-
|
| 91 |
-
## Citation
|
| 92 |
-
|
| 93 |
-
```bibtex
|
| 94 |
-
@article{
|
| 95 |
-
|
| 96 |
-
title={MEGA: A Large-Scale Molecular Editing Dataset for Guided-Action Optimization},
|
| 97 |
-
author={Nelson Fernandez and Maxime Illouz and Luis Pinto and Entao Yang and Habiboulaye Amadou Boubacar},
|
| 98 |
-
journal={Under review at International Conference on Learning Representations},
|
| 99 |
-
year={2025},
|
| 100 |
-
url={https://openreview.net/pdf?id=MaS7e2EVFm}
|
| 101 |
-
}
|
| 102 |
-
```
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: gpl-3.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-generation
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- chemistry
|
| 9 |
+
- molecular-editing
|
| 10 |
+
- drug-discovery
|
| 11 |
+
- smiles
|
| 12 |
+
- molecule-generation
|
| 13 |
+
pretty_name: MEGA Molecular Editing Dataset (522K)
|
| 14 |
+
size_categories:
|
| 15 |
+
- 100K<n<1M
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# MEGA: A Large-Scale Molecular Editing Dataset for Guided-Action Optimization
|
| 19 |
+
|
| 20 |
+
Large-scale molecular editing dataset with 522K examples for training models to modify molecular structures based on natural language instructions.
|
| 21 |
+
|
| 22 |
+
**Paper**: [MEGA: A Large-Scale Molecular Editing Dataset for Guided-Action Optimization](https://openreview.net/pdf?id=MaS7e2EVFm)
|
| 23 |
+
**Official Repository**: [https://github.com/nfsrules/MEGA-moledit](https://github.com/nfsrules/MEGA-moledit)
|
| 24 |
+
|
| 25 |
+
## Usage
|
| 26 |
+
|
| 27 |
+
```python
|
| 28 |
+
from datasets import load_dataset
|
| 29 |
+
|
| 30 |
+
# Load dataset
|
| 31 |
+
dataset = load_dataset("nfsrulesFR/mega-moledit-522K")
|
| 32 |
+
|
| 33 |
+
# Access splits
|
| 34 |
+
# Positive examples (successful edits)
|
| 35 |
+
train_data = dataset["train"]
|
| 36 |
+
val_data = dataset["validation"]
|
| 37 |
+
# Negative examples (unsuccessful edits)
|
| 38 |
+
train_neg_data = dataset["train_neg"]
|
| 39 |
+
val_neg_data = dataset["validation_neg"]
|
| 40 |
+
|
| 41 |
+
# Example
|
| 42 |
+
example = train_data[0]
|
| 43 |
+
print(f"Prompt: {example['prompt']}")
|
| 44 |
+
print(f"Input: {example['input_smiles']}")
|
| 45 |
+
print(f"Output: {example['output_smiles']}")
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
## Supported Tasks
|
| 49 |
+
|
| 50 |
+
| Task ID | Description |
|
| 51 |
+
|---------|-------------|
|
| 52 |
+
| 101 | Increase water solubility |
|
| 53 |
+
| 102 | Decrease water solubility |
|
| 54 |
+
| 103 | Increase drug-likeness |
|
| 55 |
+
| 104 | Decrease drug-likeness |
|
| 56 |
+
| 105 | Increase permeability |
|
| 57 |
+
| 106 | Decrease permeability |
|
| 58 |
+
| 107 | Increase hydrogen bond acceptors |
|
| 59 |
+
| 108 | Increase hydrogen bond donors |
|
| 60 |
+
| 201 | Increase solubility + HBA |
|
| 61 |
+
| 202 | Decrease solubility + increase HBA |
|
| 62 |
+
| 203 | Increase solubility + HBD |
|
| 63 |
+
| 204 | Decrease solubility + increase HBD |
|
| 64 |
+
| 205 | Increase solubility + permeability |
|
| 65 |
+
| 206 | Increase solubility + decrease permeability |
|
| 66 |
+
|
| 67 |
+
## Dataset Structure
|
| 68 |
+
|
| 69 |
+
Each example contains:
|
| 70 |
+
- `task_id`: Task identifier
|
| 71 |
+
- `prompt`: Natural language instruction
|
| 72 |
+
- `input_smiles`: Input molecule
|
| 73 |
+
- `output_smiles`: Target molecule
|
| 74 |
+
- `action_type`: Edit operation type
|
| 75 |
+
- `edit`: Specific edit applied
|
| 76 |
+
- `target_delta`: Change in target property
|
| 77 |
+
- `SA_delta`: Change in Synthetic Accessibility
|
| 78 |
+
- `MW_delta`: Change in Molecular Weight
|
| 79 |
+
- `QED_delta`: Change in Drug-likeness
|
| 80 |
+
- `murcko_scaffold_retained`: Scaffold preservation flag
|
| 81 |
+
|
| 82 |
+
**Splits**: `train` (469K), `validation` (52K), `train_neg` (469K), `validation_neg` (52K)
|
| 83 |
+
|
| 84 |
+
## Trained Models
|
| 85 |
+
|
| 86 |
+
Llama 3 8B-based models for molecular optimization:
|
| 87 |
+
|
| 88 |
+
- **MEGA-SFT**: [nfsrulesFR/mega-sft](https://huggingface.co/nfsrulesFR/mega-sft) - Supervised fine-tuning model
|
| 89 |
+
- **MEGA-GRPO**: [nfsrulesFR/mega-grpo](https://huggingface.co/nfsrulesFR/mega-grpo) - Tanimoto-GRPO optimized model
|
| 90 |
+
|
| 91 |
+
## Citation
|
| 92 |
+
|
| 93 |
+
```bibtex
|
| 94 |
+
@article{
|
| 95 |
+
fernandezillouz2025mega,
|
| 96 |
+
title={MEGA: A Large-Scale Molecular Editing Dataset for Guided-Action Optimization},
|
| 97 |
+
author={Nelson Fernandez and Maxime Illouz and Luis Pinto and Entao Yang and Habiboulaye Amadou Boubacar},
|
| 98 |
+
journal={Under review at International Conference on Learning Representations},
|
| 99 |
+
year={2025},
|
| 100 |
+
url={https://openreview.net/pdf?id=MaS7e2EVFm}
|
| 101 |
+
}
|
| 102 |
+
```
|