Skip to content

Commit

Permalink
update training example
Browse files Browse the repository at this point in the history
  • Loading branch information
Tetracarbonylnickel committed Mar 5, 2024
1 parent 8ad0e3b commit b9172ea
Show file tree
Hide file tree
Showing 2 changed files with 215 additions and 65 deletions.
7 changes: 3 additions & 4 deletions apax/utils/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import urllib
import zipfile


def download_md22_stachyose(data_path):
url = "http://www.quantum-machine.org/gdml/repo/static/md22_stachyose.zip"
file_path = data_path / "md22_stachyose.zip"
Expand All @@ -20,7 +19,7 @@ def download_md22_stachyose(data_path):
return file_path


def download_md17_benzene_DFT(data_path):
def download_benzene_DFT(data_path):
url = "http://www.quantum-machine.org/gdml/data/xyz/benzene2018_dft.zip"
file_path = data_path / "benzene2018_dft.zip"

Expand All @@ -36,7 +35,7 @@ def download_md17_benzene_DFT(data_path):
return new_file_path


def download_md17_benzene_CCSDT(data_path):
def download_md22_benzene_CCSDT(data_path):
url = "http://www.quantum-machine.org/gdml/data/xyz/benzene_ccsd_t.zip"
file_path = data_path / "benzene_ccsdt.zip"

Expand All @@ -63,7 +62,7 @@ def modify_xyz_file(file_path, target_string, replacement_string):
return new_file_path


def mod_md17(file_path):
def mod_md_datasets(file_path):
new_file_path = file_path.with_name(file_path.stem + "_mod" + file_path.suffix)
with open(file_path, "r") as input_file, open(new_file_path, "w") as output_file:
for line in input_file:
Expand Down
Loading

0 comments on commit b9172ea

Please sign in to comment.