Skip to content

Commit 6664a35

Browse files
committed
Fixed model_downloader.py download link
1 parent fb6ba5b commit 6664a35

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

model_downloader.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313

1414
# Download URL
1515
# Note: Update if the download location changes
16-
URL_MODELS_0_9 = 'https://ndownloader.figshare.com/files/21981038'
16+
# URL_MODELS_0_9 = 'https://ndownloader.figshare.com/files/21981038'
17+
URL_MODELS_0_9 = 'https://ndownloader.figshare.com/files/40109821'
1718

1819

1920
def download(url, path):
@@ -43,7 +44,7 @@ def download_models(version, delete_zip=True,
4344
# Create paths and names
4445
download_url = URL_MODELS_0_9
4546
zip_filename = 'models_{}.zip'.format(version)
46-
models_folder = 'anb_models_{}'.format(version)
47+
models_folder = 'anb_models_0_9'# 'anb_models_{}'.format(version)
4748

4849
current_dir = download_dir
4950
zip_path = os.path.join(current_dir, zip_filename)
@@ -63,7 +64,7 @@ def download_models(version, delete_zip=True,
6364
print('Extracting {} to {}'.format(zip_filename, models_dir))
6465
with ZipFile(zip_path, 'r') as zipfile:
6566
zipfile.extractall(current_dir)
66-
unzipped_folder_name = os.path.join(current_dir, 'anb_models')
67+
unzipped_folder_name = os.path.join(current_dir, 'anb_models_0_9')
6768
os.rename(unzipped_folder_name, models_dir)
6869

6970
# Finally, remove the zip

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ click==8.1.3
22
ConfigSpace==0.6.1
33
lightgbm==3.3.3
44
matplotlib==3.7.0
5-
numpy==1.22.4
65
pathvalidate==2.5.2
76
requests==2.28.1
87
scikit_learn==1.2.2
98
scipy==1.10.1
109
seaborn==0.12.2
1110
smac==2.0.0a2
1211
tqdm==4.65.0
12+
xgboost==1.7.1

0 commit comments

Comments
 (0)