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

Add versioning in save methods #442

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

xingjian-zhang
Copy link
Collaborator

@xingjian-zhang xingjian-zhang commented Apr 30, 2023

Description

Add versioning in save_*() methods

Related Issue

#406

Motivation and Context

We want metadata.json and task.json to have version information.
In the future, we may want to implement

  • Raise an OutDatedTask error through pytest/pr when task.json is outdated compared to metadata.json
  • Save multiple versions of metadata.json/task.json

How Has This Been Tested?

Tested on my own machine

Screenshots (if appropriate):

@xingjian-zhang xingjian-zhang requested a review from jiaqima April 30, 2023 18:03
Copy link
Contributor

@jiaqima jiaqima left a comment

Choose a reason for hiding this comment

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

Let's discuss about it in our meeting.

gli/io.py Outdated
@@ -1077,6 +1094,9 @@ def _save_task_reg_or_cls(task_type,
test_set, train_ratio,
val_ratio, test_ratio,
num_samples)
if latest_supported_ver is None:
raise ValueError("The latest supported version of the metadata.json "
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm a little hesitant to mandate the user to fill in a version.

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.

2 participants