Skip to content

Commit 0f8ddec

Browse files
removed remaininf xarrax references
1 parent 1f33634 commit 0f8ddec

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

diffxpy/models/batch_bfgs/optim.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ def __init__(self, Estim_BFGS, nproc):
2121
self._observations = Estim_BFGS.x.shape[0]
2222
self._design_loc = Estim_BFGS.design_loc
2323
self._design_scale = Estim_BFGS.design_scale
24-
self._loss = xr.DataArray(Estim_BFGS.full_loss(nproc))
24+
self._loss = Estim_BFGS.full_loss(nproc)
2525
self._log_probs = -self._loss
2626
self._probs = np.exp(self._log_probs)
27-
self._mles = xr.DataArray(np.transpose(Estim_BFGS.mles()))
28-
self._gradient = xr.DataArray(np.zeros([Estim_BFGS.x.shape[1]]))
29-
self._fisher_inv = xr.DataArray(Estim_BFGS.fisher_inv)
27+
self._mles = np.transpose(Estim_BFGS.mles())
28+
self._gradient = np.zeros([Estim_BFGS.x.shape[1]])
29+
self._fisher_inv = Estim_BFGS.fisher_inv
3030
self._idx_loc = np.arange(0, Estim_BFGS.design_loc.shape[1])
3131
self._idx_scale = np.arange(Estim_BFGS.design_loc.shape[1],
3232
Estim_BFGS.design_loc.shape[1] + Estim_BFGS.design_scale.shape[1])

0 commit comments

Comments
 (0)