A Python package that improves energies from Density Functional Theory (DFT) calculations using electronic environment descriptors and machine learning techniques.
This repo contains:
- Pre-trained models to correct DFT energies to high-accuracy CCSD(T) level
- NOTE: final models undergoing additional training
- Complete training workflow for creating custom correction models
- SPARC DFT with multipole features for descriptor generation
For those who want to apply pre-trained models to their own systems:
# Set your data path as environment variable
export PREDICT_ENERGIES_MOLECULES_DATA_PATH="/path/to/molecules"
# these should be the molecules you want to predict energies for
# Run prediction with pre-trained model
# dot notation should work if run from project root
python -m correction_scheme.predictFor detailed usage instructions, see the Quick Start Guide.
To train your own electron density-based correction scheme model:
- Generate descriptors using the SPARC DFT code with multipole features
- Follow our Full Workflow Tutorial
Descriptor data can be generated using the development version of SPARC with HSMP/multipole features implemented:
If you choose to run the correction scheme package locally, we reccomend using pyenv to manage your environments.
Correction Scheme package was tested with Python 3.9 and 3.12.
- Git
- pyenv (for Python version management)
- pip (Python package installer)
brew update
brew install pyenvcurl https://pyenv.run | bashThen add the following to your shell configuration file (.bashrc, .zshrc, etc.):
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv init -)"Install Python 3.9 or newer:
pyenv install 3.9.13git clone https://github.com/ssahoo41/correction_scheme.git
cd correction_schemepyenv local 3.9.13 # Set local Python version
python -m venv venv # Create virtual environment
source venv/bin/activate # On Windows, use: venv\Scripts\activatepip install --upgrade pip
pip install -r requirements.txt
pip install -e . # Install the package in development modepython -c "import correction_scheme; print('Installation successful!')"# Clone the repository
git clone https://github.com/ssahoo41/correction_scheme.git
cd correction_scheme
# Install the package and dependencies
pip install -e .- Python >= 3.9
- NumPy, Pandas, SciPy, scikit-learn
- ASE (Atomic Simulation Environment)
- See requirements.txt for full dependencies
If you use this software in your research, please cite:
- Sushree Jagriti Sahoo (ssahoo41@gatech.edu)
- Lisette del Pino (lpino3@gatech.edu)