Hello Bert,
thanks for the suggestion. I should have mentioned that, sadly I can NOT
change the
function that does the optimization.
best,
Immanuel
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the
I should have said: The below only works if you can get it into the
function code. If you cannot, and the function has no options that
allow you to limit execution time or iterations, then I don't see how
you can do it.
-- Bert
On Sat, Aug 20, 2011 at 2:16 PM, Bert Gunter wrote:
> ?proc.time
>
>
?proc.time
e.g. something like
time0 <- proc.time()[2]
state <- "not converged"
while(proc.time()[2] < time0[2] + 600 ) ## 10 minutes
{
##... Do your thing...
if(get an answer) {state <- "converged"; break}
}
Refinement required, but you get the idea.
Cheers,
Bert
On Sat, Aug 20, 2011 at 1:52
Hello all,
I'm running a parameter grid optimization ( ksvm, kernlab package) and
the optimizer
seems not to converge for certain parameters and stays in a infinity loop.
Would it be possible to abort the execution after x-seconds and continue
with the next parameter set? Which R function do n
4 matches
Mail list logo