Skip to content

Commit

Permalink
Update downloaded models
Browse files Browse the repository at this point in the history
  • Loading branch information
SGenheden committed Nov 28, 2022
1 parent ef846c2 commit 867d1c2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- Graphviz dependency for route drawing is removed, pure python implementation is used instead
- Dependencies reworked so that a minimal package can be installed
- Extra dependencies are related to route distances, clustering, training, MongoDB and external models
- Downloaded files are now the latest USPTO and Ringbreaker models

### Trivial changes

Expand Down
19 changes: 16 additions & 3 deletions aizynthfinder/tools/download_public_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,19 @@
FILES_TO_DOWNLOAD = {
"policy_model": {
"filename": "uspto_model.hdf5",
"url": "https://ndownloader.figshare.com/files/23086454",
"url": "https://zenodo.org/record/7341155/files/uspto_keras_model.hdf5",
},
"template_file": {
"filename": "uspto_templates.hdf5",
"url": "https://ndownloader.figshare.com/files/23086457",
"filename": "uspto_templates.csv.gz",
"url": "https://zenodo.org/record/7341155/files/uspto_unique_templates.csv.gz",
},
"ringbreaker_model": {
"filename": "uspto_ringbreaker_model.hdf5",
"url": "https://zenodo.org/record/7341155/files/uspto_ringbreaker_keras_model.hdf5",
},
"ringbreaker_templates": {
"filename": "uspto_ringbreaker_templates.csv.gz",
"url": "https://zenodo.org/record/7341155/files/uspto_ringbreaker_unique_templates.csv.gz",
},
"stock": {
"filename": "zinc_stock.hdf5",
Expand All @@ -32,6 +40,9 @@
uspto:
- {}
- {}
ringbreaker:
- {}
- {}
filter:
files:
uspto: {}
Expand Down Expand Up @@ -78,6 +89,8 @@ def main() -> None:
YAML_TEMPLATE.format(
os.path.join(path, FILES_TO_DOWNLOAD["policy_model"]["filename"]),
os.path.join(path, FILES_TO_DOWNLOAD["template_file"]["filename"]),
os.path.join(path, FILES_TO_DOWNLOAD["ringbreaker_model"]["filename"]),
os.path.join(path, FILES_TO_DOWNLOAD["ringbreaker_templates"]["filename"]),
os.path.join(path, FILES_TO_DOWNLOAD["filter_policy"]["filename"]),
os.path.join(path, FILES_TO_DOWNLOAD["stock"]["filename"]),
)
Expand Down

0 comments on commit 867d1c2

Please sign in to comment.