Skip to content

Commit

Permalink
Remove nonfunctioning GPJax
Browse files Browse the repository at this point in the history
  • Loading branch information
dirmeier committed Dec 28, 2024
1 parent 51381c2 commit d2b882f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions examples/reconciliation.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

class NeuralProcessForecaster(Forecaster):
"""Example implementation of a forecaster."""

def __init__(self):
super().__init__()
self._models: list = []
Expand Down Expand Up @@ -71,6 +72,7 @@ def get_neural_process():
latent_encoder=(MLP([dim] * 3), MLP([dim, dim * 2])),
)
return np

neural_process = get_neural_process()
return neural_process

Expand Down
4 changes: 2 additions & 2 deletions reconcile/grouping.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ def summing_matrix(self):

def extract_bottom_timeseries(self, y):
"""Getter for the bottom time series."""
return y[..., self.n_upper_timeseries:, :]
return y[..., self.n_upper_timeseries :, :]

def upper_time_series(self, b):
"""Getter for upper time series."""
y = self.all_timeseries(b)
return y[..., :self.n_upper_timeseries, :]
return y[..., : self.n_upper_timeseries, :]

@staticmethod
def _paste0(a, b):
Expand Down
2 changes: 1 addition & 1 deletion reconcile/probabilistic_reconciliation.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def lp(x):
initial_positions = self._forecaster.posterior_predictive(
curr_key,
xs_test,
).sample(seed=rng_key, sample_shape=(n_chains, ))
).sample(seed=rng_key, sample_shape=(n_chains,))
initial_positions = {
"b": self._grouping.extract_bottom_timeseries(initial_positions)
}
Expand Down

0 comments on commit d2b882f

Please sign in to comment.