Git Product home page Git Product logo

Comments (8)

mohit2agrawal avatar mohit2agrawal commented on August 28, 2024

The paper mentions that it uses certain "numerical integration techniques" to solve for 13.
But, I could not find that in the official implementation (C++) at https://github.com/dunan/NeuralPointProcess.

@SZH1230456 Were you able to figure out something?

from erpp-rmtpp.

Kaimaoge avatar Kaimaoge commented on August 28, 2024
def next_time(self,tj,hj):
    umax = self.umax #maximum time
    Deltat = umax/self.N
    dt = torch.linspace(0, umax, self.N+1)
    df = dt * self.fstart(dt, hj)
    #normalization factor
    integrand_ = ((df[1:] + df[:-1]) * 0.5) * Deltat
    integral_ = torch.sum(integrand_)
    return tj + integral_

This is the numerical method

from erpp-rmtpp.

mohit2agrawal avatar mohit2agrawal commented on August 28, 2024

Thanks @Kaimaoge .
I see that tf_rmtpp uses scipy.integrate.quad method.

from erpp-rmtpp.

liyuxisummer avatar liyuxisummer commented on August 28, 2024
def next_time(self,tj,hj):
    umax = self.umax #maximum time
    Deltat = umax/self.N
    dt = torch.linspace(0, umax, self.N+1)
    df = dt * self.fstart(dt, hj)
    #normalization factor
    integrand_ = ((df[1:] + df[:-1]) * 0.5) * Deltat
    integral_ = torch.sum(integrand_)
    return tj + integral_

This is the numerical method

@Kaimaoge Hi, Iā€˜m confused with the function of self.umax, self.N and self.fstart, could you please explain it?

from erpp-rmtpp.

Kaimaoge avatar Kaimaoge commented on August 28, 2024
def next_time(self,tj,hj):
    umax = self.umax #maximum time
    Deltat = umax/self.N
    dt = torch.linspace(0, umax, self.N+1)
    df = dt * self.fstart(dt, hj)
    #normalization factor
    integrand_ = ((df[1:] + df[:-1]) * 0.5) * Deltat
    integral_ = torch.sum(integrand_)
    return tj + integral_

This is the numerical method

@Kaimaoge Hi, Iā€˜m confused with the function of self.umax, self.N and self.fstart, could you please explain it?

umax is the upper limits of integration, N here is the number of units for calculating numerical integration, f_stat is the probability function.

from erpp-rmtpp.

liyuxisummer avatar liyuxisummer commented on August 28, 2024
def next_time(self,tj,hj):
    umax = self.umax #maximum time
    Deltat = umax/self.N
    dt = torch.linspace(0, umax, self.N+1)
    df = dt * self.fstart(dt, hj)
    #normalization factor
    integrand_ = ((df[1:] + df[:-1]) * 0.5) * Deltat
    integral_ = torch.sum(integrand_)
    return tj + integral_

This is the numerical method

@Kaimaoge Hi, Iā€˜m confused with the function of self.umax, self.N and self.fstart, could you please explain it?

umax is the upper limits of integration, N here is the number of units for calculating numerical integration, f_stat is the probability function.

@Kaimaoge Thanks, could you please share the code of fstart you used?

from erpp-rmtpp.

waystogetthere avatar waystogetthere commented on August 28, 2024

Thanks @Kaimaoge .
I see that tf_rmtpp uses scipy.integrate.quad method.

Always this method reports warning:

IntegrationWarning: The occurrence of roundoff error is detected, which prevents
the requested tolerance from being achieved. The error may be
underestimated.

And the f_star always encounters exp() overflow.
Also I am wondering the way they calculate the lambda:
https://github.com/musically-ut/tf_rmtpp/blob/master/src/tf_rmtpp/rmtpp_core.py#L621
it is a little different from the paper

from erpp-rmtpp.

Related Issues (10)

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.