4f75512036063f707ac077a22bc028c81edfef27,starry/kepler.py,System,draw,#System#,1123
Before Change
raise ValueError("Please call `solve()` first.")
// Number of coefficients
bodies = [
body
for body in [self._primary] + list(self._secondaries)
if body.map.ydeg > 0
]
N = np.sum([body.map.Ny - 1 for body in bodies])
// Fast multivariate sampling using the Cholesky factorization
u = math.cast(np.random.randn(N))
After Change
// Fast multivariate sampling using the Cholesky factorization
yhat, cho_ycov = self._solution
u = math.cast(np.random.randn(N))
x = yhat + math.dot(cho_ycov, u)
// Set all the map vectors
n = 0
for body in self._solved_bodies:
inds = slice(n, n + body.map.Ny)
body.map.amp = x[inds][0]
body.map[1:, :] = x[inds][1:] / body.map.amp
n += body.map.Ny
def lnlike(self, *, design_matrix=None, t=None, woodbury=True):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 7
Instances Project Name: rodluger/starry
Commit Name: 4f75512036063f707ac077a22bc028c81edfef27
Time: 2019-12-17
Author: rodluger@gmail.com
File Name: starry/kepler.py
Class Name: System
Method Name: draw
Project Name: layumi/Person_reID_baseline_pytorch
Commit Name: e9d5373461b0a037716722a461cb12416aa5d1bc
Time: 2018-01-01
Author: zzheng@joo-ml1-dev.j.cinglevue.com
File Name: evaluate.py
Class Name:
Method Name: evaluate
Project Name: uber/pyro
Commit Name: cce694178ae66b3a84623d517ffdf0c1bb32ba27
Time: 2020-05-11
Author: fehiepsi@gmail.com
File Name: pyro/infer/mcmc/hmc.py
Class Name: HMC
Method Name: _kinetic_energy
Project Name: scikit-learn/scikit-learn
Commit Name: f685547f801b13afc0874ed348e3a46600113136
Time: 2020-06-17
Author: alexhenrie24@gmail.com
File Name: sklearn/neural_network/_multilayer_perceptron.py
Class Name: BaseMultilayerPerceptron
Method Name: _backprop