Comments (6)
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.
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.
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.
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.
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.
Ah, perfect. I see, I figure it won't be much different so I'll try that. Thank you!!
from celerite2.
Related Issues (20)
- Theano Version Issues Between Exoplanet 0.4.4 and Celerite2 HOT 11
- Installing celerite2 with conda
- add support for variable coefficients in celerite models HOT 4
- GaussianProcess docstring would benefit from enhancements HOT 2
- Derive exposure time integrated celerite model with variable exposure times HOT 2
- RotationTerm translated to celerite (set_parameter_vector() input parameters, question). HOT 4
- Damped Random Walk Model? HOT 3
- jax.jit decorator breaks example HOT 8
- Jax mean models? HOT 2
- A documentation example for C++ API HOT 1
- NotImplementedError for differentiation of gp.predict HOT 2
- Small amplitude GP HOT 1
- Sampling with a non-constant mean HOT 2
- Pointwise predictive accuracy HOT 4
- gp does not own its data HOT 7
- Term.get_coefficients fails for jax implementation when built from source HOT 3
- Avoiding LinAlgErrors for closesly sampled x arrays HOT 4
- Online documentation notebook tutorial rendering issue: "findfont: Generic family 'sans-serif' not found..." HOT 1
- SHOTerm not working in numpyro model HOT 3
- Fourier conventions for the PSD in the documentation of the SHOTerm HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from celerite2.