Closed xhdong-umd closed 3 years ago
I'm at the end of of re-writing the optimizer's line-search algorithm, and right after that I will implement a custom message()
function argument. I'm a little swamped with a job application and a job interview this week, so it might take me a few days.
This should work now if you include a message
function argument in the control
list argument, control$message
, then it should replace the default message
function in ctmm.select
, ctmm.fit
, and the optimizer.
Is it possible to give some rough progress value in the internal message call in ctmm.select? If I only have message but no progress values, the progress bar will change text but not changing progress value, which may look weird.
What I can provide, with substantial work, is information that could be put into a summary like:
Individual 2/9, fitting model 3, stage 1/4, =======55%
With the second part "fitting model", there's no way to know a priori how many models will be considered.
With the last part, I can only give a non-monotonic progress report on the parameter estimation stages (the first of which is the slowest stage) and not the Hessian stage (which is also relatively slow).
It looks to be too much work for little gain(only apply to single individual, which is less likely in app)...
The model fitting stage can be time consuming, we can reveal more information to make it more predictable and give better expectations to users.