Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 18, 2022
1 parent 21c6b52 commit c7efe99
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions fulu/bnn_aug.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(
kl_weight=0.1,
optimizer="Adam",
debug=0,
device="cpu",
device="cpu",
weight_decay=0,
):
self.model = None
Expand Down Expand Up @@ -142,7 +142,7 @@ def __init__(
lr=0.01,
kl_weight=0.0001,
optimizer="Adam",
device="cpu",
device="cpu",
weight_decay=0,
):
super().__init__(passband2lam)
Expand Down Expand Up @@ -199,8 +199,8 @@ def fit(self, t, flux, flux_err, passband):
lr=self.lr,
kl_weight=self.kl_weight,
optimizer=self.optimizer,
device=self.device,
weight_decay=self.weight_decay
device=self.device,
weight_decay=self.weight_decay,
)
self.reg.fit(X_ss, y_ss)
return self
Expand Down
4 changes: 2 additions & 2 deletions fulu/mlp_reg_aug.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __init__(
activation="tanh",
learning_rate_init=0.001,
max_iter=90,
batch_size=1,
batch_size=1,
alpha=0.0001,
):
super().__init__(passband2lam)
Expand Down Expand Up @@ -110,7 +110,7 @@ def fit(self, t, flux, flux_err, passband):
activation=self.activation,
learning_rate_init=self.learning_rate_init,
max_iter=self.max_iter,
batch_size=self.batch_size,
batch_size=self.batch_size,
alpha=self.alpha,
)
self.reg.fit(X_ss, y_ss)
Expand Down
4 changes: 2 additions & 2 deletions fulu/nf_aug.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def __init__(
n_epochs=10,
lr=0.0001,
randomize_x=True,
device="cpu",
device="cpu",
weight_decay=0,
):

Expand Down Expand Up @@ -288,7 +288,7 @@ def fit(self, t, flux, flux_err, passband):
n_epochs=self.n_epochs,
lr=self.lr,
randomize_x=True,
device=self.device,
device=self.device,
weight_decay=self.weight_decay,
)
self.reg.fit(X_ss, flux, flux_err)
Expand Down
6 changes: 3 additions & 3 deletions fulu/single_layer_aug.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def __init__(
batch_size=500,
lr=0.01,
optimizer="Adam",
device="auto",
device="auto",
weight_decay=0,
):
super().__init__(passband2lam)
Expand Down Expand Up @@ -204,8 +204,8 @@ def fit(self, t, flux, flux_err, passband):
batch_size=self.batch_size,
lr=self.lr,
optimizer=self.optimizer,
device=self.device,
weight_decay=self.weight_decay
device=self.device,
weight_decay=self.weight_decay,
)
self.reg.fit(X_ss, y_ss)

Expand Down

0 comments on commit c7efe99

Please sign in to comment.