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

Random Error by total time measurement in the Bsptime function in foreach loop #4

Closed
Hallo951 opened this issue Jun 25, 2022 · 2 comments

Comments

@Hallo951
Copy link

Hallo951 commented Jun 25, 2022

I have discovered an error that random occurs in a non-parallelized foreach loop. I am using a foreach loop for the calculation of the cross-validation. The error is

"Error in { : task 1 failed - "argument is of length zero""

and refers to the total time measurement in the function Bsptime that you have built in. I haven't found out the exact line yet.

After various test runs, the error always occurs when it cannot calculate the "Total time taken" for whatever reason. The actual model (spTimer), is calculated correctly before and their output is also displayed correctly by spTimer.

For the elimination of the error it would be the simplest to remove the total time measurement or to check this on ZERO. Possibly also another kind of the time measurement would be a solution.

Because of this sporadic error a current use of the function "Bsptime" within a foreach loop is unfortunately not possible.

My system:
R version 4.2.0 (2022-04-22 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows Server x64 (build 17763)

Version bmstdr: 0.2.2

@Hallo951
Copy link
Author

This issue can be closed, because it turned out that it is not caused by the total time measurement.

@sujit-sahu
Copy link
Owner

Thank you for double checking this.

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