π¬ AttriLens-Mol: Attribute Guided Reinforcement Learning for Molecular Property Prediction with Large Language Models
Official GitHub Repository for AttriLens-Mol
This repository introduces AttriLens-Mol, an attribute-guided reinforcement learning framework for molecular property prediction with large language models.
In addition to the AttriLens-Mol framework, this repository also provides datasets and baseline training scripts (Random Forest) for reproducibility.
βββ Dataset/ # Datasets for both AttriLens-Mol and Random Forest experiments
β βββ AttriLens-Mol/ # Training and test sets for AttriLens-Mol
β βββ Random_Forest/ # Train/validation/test splits for Random Forest baselines
β
βββ training/ # Training scripts and utilities
β βββ AttriLens-Mol/ # Training scripts for AttriLens-Mol
β βββ Random_Forest/ # Training scripts for Random Forest baselines
β
βββ requirements.txt # Dependency list for environment setup
βββ README.md # Project documentation
## π οΈ Installation
Clone this repository and install dependencies:
```bash
git clone https://github.com/szu-tera/AttriLens-Mol.git
cd AttriLens-Mol
pip install -r requirements.txt
python AttriLens_train.py # Before running the script, edit line 611 and 639 in the file: # json_file_path = "" # output_dir="" # and set it to your data file path and ckpt output file.
cd Random Forest
python Random Forest_{task}.py # Before running the script, edit line 13-15 in the file:
# train_df = pd.read_csv('')
# valid_df = pd.read_csv('')
# test_df = pd.read_csv('')