question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide Initial Guess to Regression Fitters

See original GitHub issue

It would be great to be able to provide an initial guess point (warm-start) to the regression fitters, such as WeibullAFTFitter. I’m referring to this line:

https://github.com/CamDavidsonPilon/lifelines/blob/d9d3f9f9acb832d03166e39556770c3374c868a4/lifelines/fitters/__init__.py#L1018

I’ve been comparing this particular fitter to R’s survreg, and for some datasets, their solutions don’t agree at all. I’d like to provide the same initial values to both codes and hopefully get the same solution.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
bacalfacommented, Mar 6, 2019

That could be done. It’s just that I wanted to compare the AFT fitter with survreg. 😃 I have other tests with covariates as well.

0reactions
CamDavidsonPiloncommented, Mar 19, 2019

woohoo! Thanks for reporting back!

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to set initial guesses in Curve fitting to avoid the local ...
I am currently facing a problem with initial guesses for parameters in curve fitting toolbox... ; here the code uses the nonlinear least...
Read more >
How to choose initial values for nonlinear least squares fit
The solutions for these 5 parameters can be used as the reasonable initial guesses for nonlinear least squares fitting.
Read more >
A Solution Interval Method for Least-Squares Parameter ...
An iterative local approach begins with an initial guess for the value of each param- eter in a nonlinear model and then alters...
Read more >
How to correctly guess the initial points in LogLog plot linear ...
First: try to scale your data. Divide x by 1e21 and you basically do not need an initial guess anymore. The true a,b...
Read more >
initial guess using nonlinear least square fitting in matlab?
Although your model is nonlinear, the equation you need to solve may be linear. The solution for these 5 parameters can be used...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found