0

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 images.

my target is failure (1=failure, 0= censored) Can anyone help me solve this error

The screenshots of my data and the error is attached herewith. However, when I convert the data to array as attached in the image 2, i got another error as shown in figure 3.enter image description here

enter image description here

George
  • 1,196
  • 1
  • 2
  • 10
  • Please trim your code to make it easier to find your problem. Follow these guidelines to create a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example). – Community Nov 23 '22 at 06:47

0 Answers0