-
Notifications
You must be signed in to change notification settings - Fork 31
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
Possible change for test_brute_force_knapsack.R #13
Comments
Great! This is probably my mistake. I suggest you comment out/skip that test for now. I do not remember what OS is run on Travis? Is it failing on travis as well? You have any Travis log file you could point me to? |
I will comment out them. Thanks! |
But still I think we should not check system time. It looks like out of purpose. |
I agree. I will fix it when the course is done. Dont want to accidentally produce other errors by fixing this right now. |
Okey then. Thanks for your time. 👍 |
Please leave this open and well fix it after the course! |
i also stuck on this error @ugurcanlacin good to notify there you saved my day :) |
great help! thanks 👍 |
The last test function in test_brute_force_knapsack.R has possible bug. The following two lines are my problem.
I have this output for the first line.
And second line checks system column. However, it is zero everytime.
So, I looked at the manual and the manual redirected me to proc.time function documentation.
It says The definition of ‘user’ and ‘system’ times is from your OS.
I use Ubuntu, searched in ubuntu forum and found very useful answer for it.
In the answer, he said:
In conclusion, I think we should change the column with user or elapsed. This is because we do not have any interruption during execution obviously. Probably processor is fast enough to not take interruption.
Here is information of my CPU:
model name : Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
The text was updated successfully, but these errors were encountered: