Skip to content
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

AttributeError: module 'auton_survival' has no attribute 'plot_kaplanmeier' #126

Open
sbpatel2009 opened this issue Aug 9, 2023 · 4 comments

Comments

@sbpatel2009
Copy link

Here is the code (directly from the notebooks:

# Plot the phenogroup specific Kaplan-Meier survival estimate.
auton_survival.reporting.plot_kaplanmeier(outcomes, groups=phenotypes)

Here is the error message:


> ---------------------------------------------------------------------------
> AttributeError                            Traceback (most recent call last)
> [~\AppData\Local\Temp\ipykernel_20180\1703960961.py](https://file+.vscode-resource.vscode-cdn.net/c%3A/Users/Snehal%20Patel/OneDrive%20-%20SimBioSys/Hack-a-thon/Hack-a-thon%202023/Code_and_Data/~/AppData/Local/Temp/ipykernel_20180/1703960961.py) in 
>       1 # Plot the phenogroup specific Kaplan-Meier survival estimate.
> ----> 2 auton_survival.reporting.plot_kaplanmeier(outcomes, groups=phenotypes)
> 
> AttributeError: module 'auton_survival' has no attribute 'reporting'

I tried importing the function first, but I get the same error:

from auton_survival.reporting import plot_kaplanmeier

> ---------------------------------------------------------------------------
> ModuleNotFoundError                       Traceback (most recent call last)
> [~\AppData\Local\Temp\ipykernel_20180\4279169460.py](https://file+.vscode-resource.vscode-cdn.net/c%3A/Users/Snehal%20Patel/OneDrive%20-%20SimBioSys/Hack-a-thon/Hack-a-thon%202023/Code_and_Data/~/AppData/Local/Temp/ipykernel_20180/4279169460.py) in 
> ----> 1 from auton_survival.reporting import plot_kaplanmeier
> 
> ModuleNotFoundError: No module named 'auton_survival.reporting'

@chiragnagpal
Copy link
Collaborator

hmm are you using pip install to install the package? We don't support pip yet have you tried cloning the package and using directly?

@sbpatel2009
Copy link
Author

Got it. I did use pip, so I'll try cloning directly, as you suggested. Thanks for propt reply!

@matteo4diani
Copy link
Contributor

hmm are you using pip install to install the package? We don't support pip yet have you tried cloning the package and using directly?

Just a heads up: we now support pip installs via pip install auton-survival
https://pypi.org/project/auton-survival/

@sbpatel2009
Copy link
Author

sbpatel2009 commented Nov 10, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants