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

Some code questions #10

Open
jmLee4 opened this issue Nov 5, 2024 · 1 comment
Open

Some code questions #10

jmLee4 opened this issue Nov 5, 2024 · 1 comment

Comments

@jmLee4
Copy link

jmLee4 commented Nov 5, 2024

Hi, I have some questions when reading the source code. I wonder if you can answer them. Thanks~

  1. In instance.py file, the model only passed in cpulist data, why can it be used to set predictMemList ?

    self.predictMemList.append(model.predict(n_periods=w).tolist())

  2. The second parameter of test_array is not used after it is passed in.

    configs = InstanceConfigLoader(filepath, test_array) # 这里怀疑是filepath的文件有问题

    It exists in load_reduce.py as the containerNum variable

@wzq666666
Copy link
Collaborator

Thanks for your questions!
For simplicity, we only use CPU data to predict both CPU and memory. Because we only consider the CPU factor at that time, it can be extended to more general versions. And we will update our code to fit the memory data.
The second parameter of test_array is used to check whether the generated number of containers is aligned with our expectations. It has no practical effect.

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

No branches or pull requests

2 participants