Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(data):添加数据分组封装,简化元数据生成、多组数据生成和测试点范围确定 (#117) #118

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

Open
marscheng1 wants to merge 1 commit into luogu-dev:master
base: master
Choose a base branch
Loading
from marscheng1:feat-group

Conversation

@marscheng1
Copy link

@marscheng1 marscheng1 commented Jul 29, 2024

封装数据生成的分组。将多组数据,多测试点,类似 m n 此类变量的生成封装起来,此时用户仅需输入 subtask 组数、数据组数、单个测试点内数据数、变量间关系、变量极值等参数便可自动生成足够强的元数据,然后用户便只需要使用其他方法生成数据中的数列、图、树等结构。这在面对数据量要求较多时十分有用。

Copy link
Collaborator

Mr-Python-in-China commented Sep 29, 2024
edited
Loading

总感觉现在参数的格式有点怪,换个方向排列会不会好一点?

Data(
 "test",
 [
 [
 4,
 ['n','m','k'],
 [("MIN", 1), ("MAX", 100), ("MMIN", 0), ("MMAX", 1000)],
 [["MIN", "=", "k", "=", "n", "MAX"], ["MMIN", "=", "m", "=", "MMAX"]]
 ],
 [
 16,
 ['n','m','k'],
 [("MIN", 100), ("MAX", 1000), ("MMIN", 1000), ("MMAX", 1000000)],
 [["MIN", "=", "k", "=", "n", "MAX"], ["MMIN", "=", "m", "=", "MMAX"]]
 ],
 ]
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

建议添加数据分组封装

AltStyle によって変換されたページ (->オリジナル) /