Giter Club home page Giter Club logo

Comments (1)

havakv avatar havakv commented on August 23, 2024

The Cox-methods' predictions are dependent on the baseline_hazards_ which are computed non-parametrically from the training set (similarly to the Kaplan-Meier estimator). The methods can therefore only compute predictions at the time-points defined by the baseline_hazards_.
So when you are only able to obtain predictions up to time 1012, this is likely because 1012 is the highest duration in your training set. The argument max_duration can only be used to decrease the maximum prediction duration (to decrease computations), and cannot be used to increase the maximum duration.

If you want to interpolate between the time-points of your predictions, or if you want to extrapolate beyond them, you need to code this on your own, as this is not supported.
I would also advice you to be careful when prediction for higher durations than what you observe in your training set. As you have no data at such high times, your estimates will probably not be very good.

from pycox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.