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

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

marscheng1
Copy link

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

@Mr-Python-in-China Mr-Python-in-China linked an issue Sep 29, 2024 that may be closed by this pull request
@Mr-Python-in-China
Copy link
Collaborator

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

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

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"]]
        ],
    ]
)

@Mr-Python-in-China Mr-Python-in-China force-pushed the master branch 4 times, most recently from d4744b3 to 2727298 Compare October 4, 2024 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

建议添加数据分组封装
2 participants