Questions tagged [scikit-survival]

scikit-survival is a Python module for survival analysis built on top of scikit-learn. It allows doing survival analysis while utilizing the power of scikit-learn, e.g., for pre-processing or doing cross-validation. Use for questions related to the scikit-survival module

The objective in survival analysis (also referred to as reliability analysis in engineering) is to establish a connection between covariates and the time of an event. Scikit-survival is a Python module for survival analysis built on top of scikit-learn -pypi

27 questions
0
votes
1 answer

Is there any way to predict survival probability for censored objects after historical dates (prediction in future)?

I am trying to understand the possibilities and limitations of Survival analysis, in particular lifelines python package. I fitted the Cox Proportional Hazard Model with some rossi data and got survival function showing the survival over historical…
0
votes
0 answers

randomSurvivalForest on Scikitlearn ValueError: y must be a structured array

I want to do survival analysis using scikitlearn (random forest, SVM). The data in the examples on scikitlearn is online, but my dataset is locally available. However, when I am applying the fit, it gives me an error as shown in the attached…
0
votes
1 answer

What is the x axis of the predict_survival_function() in Scikit Survival library

According to the docs https://scikit-survival.readthedocs.io/en/stable/api/generated/sksurv.linear_model.CoxPHSurvivalAnalysis.html#sksurv.linear_model.CoxPHSurvivalAnalysis.predict_survival_function it returns an array of probabilities of the…
waithira
  • 310
  • 1
  • 2
  • 12
0
votes
0 answers

Get survival and hazard scores using XGBoost AFT implementation

I am using https://xgboost.readthedocs.io/en/latest/tutorials/aft_survival_analysis.html documentation to build a model for survival analysis using XGBoost. I have followed the example given in the documentation for training the model. However, on…
0
votes
1 answer

scikit-learn pipeline returning all nan values

I am fairly new to python and am trying to teach myself how to work with pipelines for feature preprocessing and model fitting. I tried to preprocess my data (drop features that may be constants under cv sampling and then scale them) and then fit a…
0
votes
2 answers

Failed to run MSBuild command on pip

I am installing the scikit-survival package in Python. When I run pip install scikit-survival I get an error on msbuild, I attach the elements of interest below: PS C:\WINDOWS\system32> pip install scikit-survival …
Marco
  • 35
  • 1
  • 5
0
votes
0 answers

Integrated Brier Score for sklearn's GridSearchCV

I have a custom scorer function whose inputs depend on the specific train and validation fold, additionally, the estimator's .predict_survival_function output is also needed. To give a more concrete example: I am trying to run a GridSearch for a…
0
votes
1 answer

Problem installing scikit-survival in Google Colab

I am facing a problem to install scikit-survival in Google Colaboratory. Everytime it says: pip install scikit-survival Collecting scikit-survival Using cached…
Hashriama
  • 173
  • 11
0
votes
1 answer

Survival anaylsis: parameters for concordance_index_censored (scikit-survival)

I want to implement concordance_index_censored on my test set, using the model I trained. I don't understand which should be my input into the estimate parameter in concordance_index_censored(). Is it somewhere in coxnet_pred? If not, where should I…
DoreenBZ
  • 328
  • 1
  • 8
0
votes
0 answers

simsurv R function: is there a way to define different censor rates?

I'm trying to generate a few simulated survival datasets. I've chosen the simsurv function as it allows me to generate time varying coefficients (and hence non-proportional hazards). However, how do I go about defining different censor rates (10%,…
Kay
  • 1
0
votes
1 answer

Not able to install scikit-survival package. Get a Pyasn1 error and a "dill' Error

I have been trying to install scikit-survival package for survival analysis but whenever I try to do this I get the error shown below. Error pyasn1-modules 0.1.5 has requirement pyasn1<0.4.0,>=0.3.4, but you'll have pyasn1 0.1.9 which is…
Pads
  • 51
  • 6
0
votes
1 answer

How to deal with Censored instances?

I am working on a project to predict day to an event(graft failure) using machine learning approaches with a dataset containing about 900 variables, I am new to this area and I am not sure whether I am in the right track. At first, I used Neural…
sarah
  • 19
  • 2
  • 7
1
2