Coder Social home page Coder Social logo

Comments (6)

dfm avatar dfm commented on September 22, 2024

I have seen this a few times recently. You're right that it's a deeper theano issue, but I'm happy to try to help debug it. Did you install using conda? If so, can you make a fresh environment and post the steps required to reproduce your issue?

from celerite2.

jvines avatar jvines commented on September 22, 2024

I did install with conda. I'll make a fresh environment and do it from scratch and let you know.

In the meantime, I modeled with multinest 3 stitched TESS light curve sectors for a star with the RotationTerm to detrend the data but when I do the prediction it eats up all my memory and crashes, is this normal?? I want to detrend the light curve so I can't bin down for the prediction, what's your experience with this??

Thanks

from celerite2.

dfm avatar dfm commented on September 22, 2024

Some prediction operations are memory intensive, but just computing the mean prediction at the data points shouldn't be. Exactly which operations are you currently running?

from celerite2.

jvines avatar jvines commented on September 22, 2024

I run this:

def set_params(cube, gp):
    """Set the GP parameter vector."""
    mflux, jitter, sigma = cube[0], cube[1], cube[2]
    period, q0, dq, f = cube[3], cube[4], cube[5], cube[6]
    gp.mean = mflux
    gp.kernel = terms.RotationTerm(sigma=sigma, period=period,
                                   Q0=q0, dQ=dq, f=f)
    gp.compute(times_oot, diag=flux_err_oot ** 2 + jitter ** 2, quiet=True)
    return gp

theta = np.median(posterior_samples, axis=0)
gp = set_params(theta, gp)

gp.compute(pdctimes23, yerr=pdcfluxes_error23**2 + theta[1]**2)

mean, var = gp.predict(pdcfluxes23 - theta[0], return_var=True)

where pdcfluxes23 is the relative flux of 2 out of the 3 sectors stitched together and pdctimes23 are the respective timestamps. That consumes all my memory and eventually crashes.

times_oot are the out of transit timestamps

Finally there are 31768 points in pdctimes23

from celerite2.

dfm avatar dfm commented on September 22, 2024

Yeah - return_var will require a lot of memory. I'd recommend just using the mean and ignoring the variance. I assume that you're using the variance because you want to propagate uncertainties in the detrending? Are you sure that it's much different than just adding the yerrs and jitter in quadrature? I bet you can approximate it well enough using that or by just evaluating the variance at one point and using that everywhere.

from celerite2.

jvines avatar jvines commented on September 22, 2024

Ah, perfect. I see, I figure it won't be much different so I'll try that. Thank you!!

from celerite2.

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.