ImportError: LogNormalFitter, LogLogisticFitter, PiecewiseExponentialFitter
See original GitHub issueI am having issues importing the following subpackages:
from lifelines import LogNormalFitter
from lifelines import LogLogisticFitter
from lifelines import PiecewiseExponentialFitter
The error message is:
ImportError: cannot import name 'LogNormalFitter' from 'lifelines' (C:\Users\AppData\Local\Continuum\anaconda3\lib\site-packages\lifelines\__init__.py)
Any ideas what the problem might be?
Thank you, c.
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (5 by maintainers)
Top Results From Across the Web
lifelines Documentation
Traditionally, survival analysis was developed to measure lifespans of individuals. An actuary or health professional.
Read more >https://raw.githubusercontent.com/CamDavidsonPilon...
0.18.0 - 2019-01-31 - `LogNormalFitter` is a new univariate fitter you can use. ... fixes an import error with using `CoxTimeVaryingFitter` predict methods....
Read more >Lifelines | PDF | Function (Mathematics) | Time - Scribd
LogNormalFitter, LogLogisticFitter, NelsonAalenFitter, PiecewiseExponentialFitter ... [4]: from lifelines import PiecewiseExponentialFitter.
Read more >多条生存曲线的两两比较 - CSDN
... LogNormalFitter().fit(T, E, label='LogNormalFitter') llf = LogLogisticFitter().fit(T, E, label='LogLogisticFitter') pwf = PiecewiseExponentialFitter([40 ...
Read more >Survival analysis in Python - PythonRepo
ImportError : LogNormalFitter, LogLogisticFitter, PiecewiseExponentialFitter. I am having issues importing the following subpackages:
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi Cameron, Just a quick update: i uninstalled/reinstalled anaconda and now everything works 😃
Hope this helps with others going through the same issue.
Ceren
On Tue, Mar 5, 2019 at 9:32 AM Ceren Altincekic ceren.altincekic@gmail.com wrote:
I have the same problem. pip install lifelines pip listPackage Version
autograd 1.2Bottleneck 1.2.1 cycler 0.10.0 entrypoints 0.3 flake8 3.7.7 future 0.17.1 joblib 0.13.2 kiwisolver 1.1.0 lifelines 0.22.0 matplotlib 3.1.1 mccabe 0.6.1 numpy 1.16.4 pandas 0.24.2 pip 19.0.3 pycodestyle 2.5.0 pyflakes 2.1.1 pyparsing 2.4.0 python-dateutil 2.8.0 pytz 2019.1 scikit-learn 0.21.2 scipy 1.2.1 setuptools 40.8.0 six 1.12.0
python lifelines.pyTraceback (most recent call last): File “lifelines.py”, line 3, in <module> from lifelines.fitters import ParametricRegressionFitter File “C:\Users\lenovo\Desktop\MLSurvival\test\lifelines.py”, line 3, in <module> from lifelines.fitters import ParametricRegressionFitter ModuleNotFoundError: No module named ‘lifelines.fitters’; ‘lifelines’ is not a package ModuleNotFoundError: No module named ‘lifelines.fitters’; ‘lifelines’ is not a package