Skip to content

Commit

Permalink
Fixed bugs
Browse files Browse the repository at this point in the history
gplasdi had an instance of np.Inf (which is depricated). I also fixed a typo in latent_spaces.py
  • Loading branch information
Robert Stephany committed Oct 28, 2024
1 parent ae25094 commit ddbac34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lasdi/gplasdi.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def __init__(self, physics, autoencoder, latent_dynamics, param_space, config):
else:
self.device = 'cpu'

self.best_loss = np.Inf
self.best_loss = np.inf
self.best_coefs = None
self.restart_iter = 0

Expand Down
2 changes: 1 addition & 1 deletion src/lasdi/latent_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ def __init__(self, physics : Physics, config : dict) -> None:
value = value);

self.decoder = MultiLayerPerceptron(
latent_sizes = layer_sizes[::-1], # Reverses the order of the the list.
layer_sizes = layer_sizes[::-1], # Reverses the order of the the list.
act_type = act_type,
reshape_index = -1,
reshape_shape = self.qgrid_size, # We need to reshape the network output to a fom frame.
Expand Down

0 comments on commit ddbac34

Please sign in to comment.