havakv / pycox

Survival analysis with PyTorch
BSD 2-Clause "Simplified" License
822 stars 191 forks source link

About dataset #2

Closed qxzhong closed 4 years ago

qxzhong commented 5 years ago

Hi, When I carried out cox_models_1_introduction in examples file. I find that there are no metric and support datasets in datasets module. I was wondering how I could deal with such problem? Looking forward your reply!

havakv commented 5 years ago

Hi, to circumvent licensing issues, we do not host any datasets directly in this repo, but instead download them as needed (they will then appear in your local "datasets" folder). This should happen automatically when you try to load the datasets (i.e., when you step through the cox_models_1_introduction.ipynb notebook).

If you have problems, try running the following code

from pycox import datasets
df = datasets.support.read_df()

It should download the support dataset and read it into python. The dataset should then appear in your local datasets folder. You can alternatively call datasets.support._download() to explicitly download the dataset to the datasets folder.

If this does not solve your problem, please post the error you get when you try read the data frame into python.

havakv commented 5 years ago

I apologize for not understanding your problems before now. There was actually a bug in the installation that caused your problems. This should be fixed now.

qxzhong commented 4 years ago

I have fixed the problem. Thanks so much!