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
ParBayesianOptimization suddenly fails while logging epoch results #33
Comments
The issue can also be found on https://stackoverflow.com/questions/67418224/parbayesianoptimization-suddenly-fails-while-logging-epoch-results. I was able to reproduce the issue on the
|
Hmmm I have seen this error pop up here a few times, but I could never get my hands on a reproducible example. This usually happens when the scoring function returns something unexpected, like an error. Thanks for providing this example, I'll look into it. |
Would you mind showing me your output for |
I think I've figured it out. I'm not sure exactly where the error occurs in caret, but on the 9th iteration, the following parameters are passed to the scoring function:
These result in an error. The following message is spit out:
However, there is built in error-handling in ParBayesianOptimization that is supposed to catch this and provide more useful error information. It's not working in this case. I'll work on fixing that now. |
That's good to know. I would not have guessed to check the scoring function. I was just very confused as to why the dimensions in the summary items would suddenly change... I wonder why that specific example results in all the Accuracy metrics to be missing though (given there is no missing data). I suppose that the cost should be positive, and not 0, given the problem statement SVMs are trying to solve (as seen when glancing over this thread: https://stats.stackexchange.com/questions/185994/the-cost-parameter-for-support-vector-machines). Thanks for clarifying! I suppose a more useful error message will help future users detect their error ;-) and thanks again for making this awesome package available! |
For documentation purposes: I believe setting the |
For reference, I also summarized your findings and my interpretation for other users at https://stackoverflow.com/questions/67418224/parbayesianoptimization-suddenly-fails-while-logging-epoch-results/67477307#67477307, where I raised the issue before reporting it. Let me know if you have a stackoverflow account you would like me to reference as well :-) |
Moving to issue #34 |
Hi,
Firstly, thanks for sharing this package.
I am currently using it to tune parameters for ML methods. While searching for an optimal cost parameter for the
svmLinear2
model (contained incaret
), the optimization stopped with a sudden error after successfully completing 15 iterations.Here is the error traceback:
So somehow the data tables storing the summary information each iteration suddenly differ in the number of columns present. Is this a common bug with the ParBayesianOptimization package?
Should
fill
be set toTRUE
inrbind
for robustness? Or is something more fundamental wrong?Thanks!
P.S.: I posted this to
https://github.com/cran/ParBayesianOptimization/issues/1
, but maybe it is more appropriate here.The text was updated successfully, but these errors were encountered: