Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix kaggle data unzip bug #475

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions rdagent/scenarios/kaggle/kaggle_crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def kaggle_description_css_selectors() -> tuple[str, str]:
def download_data(competition: str, local_path: str = KAGGLE_IMPLEMENT_SETTING.local_data_path) -> None:
if KAGGLE_IMPLEMENT_SETTING.if_using_mle_data:
zipfile_path = f"{local_path}/zip_files"
if not Path(zipfile_path).exists():
if not Path(f"{zipfile_path}/{competition}.zip").exists():
try:
subprocess.run(
["mlebench", "prepare", "-c", competition, "-p", zipfile_path],
Expand All @@ -126,7 +126,7 @@ def download_data(competition: str, local_path: str = KAGGLE_IMPLEMENT_SETTING.l

else:
zipfile_path = f"{local_path}/zip_files"
if not Path(zipfile_path).exists():
if not Path(f"{zipfile_path}/{competition}.zip").exists():
try:
subprocess.run(
["kaggle", "competitions", "download", "-c", competition, "-p", zipfile_path],
Expand Down
Loading