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

[tabular, timeseries] Rename cached version file to version.txt from __version__ #4203

Merged
merged 4 commits into from
May 17, 2024

Conversation

Innixma
Copy link
Contributor

@Innixma Innixma commented May 15, 2024

Issue #, if available:
Resolves #4161

Description of changes:

  • Previously AutoGluon's TabularPredictor and TimeSeriesPredictor would save a file named __version__ that contained the AutoGluon version as a string at the time of saving. However, Kaggle doesn't allow files named __version__ to be uploaded for an unknown reason.
  • This PR renames the file to version.txt, while keeping backwards compatibility.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@Innixma Innixma added this to the 1.1.1 Release milestone May 15, 2024
@Innixma Innixma requested a review from shchur May 15, 2024 23:13
@Innixma Innixma changed the title [tabular] Rename cached version file to version.txt from __version__ [tabular, timeseries] Rename cached version file to version.txt from __version__ May 15, 2024
@yinweisu
Copy link
Collaborator

Previous CI Run Current CI Run

Copy link

Job PR-4203-c5fca48 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-4203/c5fca48/index.html

@@ -4152,6 +4152,16 @@ def _load_version_file(cls, path) -> str:
version = load_str.load(path=version_file_path)
return version

@classmethod
def _load_version_file_old(cls, path) -> str:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we could add the logic of trying both old & new filenames to _load_version_file instead of introducing a new method _load_version_file_old? I feel like the namespace of Predictor already contains quite a few methods.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fair point, updated

@yinweisu
Copy link
Collaborator

Previous CI Run Current CI Run
botocore==1.34.106 botocore==1.34.107
boto3==1.34.106 boto3==1.34.107
botocore==1.34.106 botocore==1.34.107
boto3==1.34.106 boto3==1.34.107

Copy link

Job PR-4203-f720197 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-4203/f720197/index.html

Copy link
Collaborator

@tonyhoo tonyhoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Collaborator

@shchur shchur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@Innixma Innixma merged commit a167217 into autogluon:master May 17, 2024
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

__version__ file not uploadable to Kaggle
4 participants