Skip to content

Commit

Permalink
logging content changed
Browse files Browse the repository at this point in the history
  • Loading branch information
jeehyunHwang committed Nov 5, 2021
1 parent e161de6 commit 1cfb5d3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def get_parser():
dest="filename",
help="experiment definition file (YAML format)",
metavar="FILE",
# default="LA-PIGNODE.yaml",
default="SD-PIGNODE.yaml",
# default="LA.yaml",
default="SD.yaml",
)

parser.add_argument("--model_path",
Expand Down Expand Up @@ -198,8 +198,6 @@ def main(cfg):
dropout_rate=dropout_rate,
device=device)
logging.info("new model is initialized. {}".format(modeldir))
if use_physics != 0:
logging.info("random coefficients: {}".format(model.odefunc.phy_params))

num_total_params = sum(p.numel() for p in model.parameters() if p.requires_grad)
logging.info("# params in model: {}".format(num_total_params))
Expand Down Expand Up @@ -321,8 +319,6 @@ def main(cfg):
.format(loss,
np.mean(losses_val_save), np.mean(losses_val_save)/num_nodes,
te_loss.item(), te_loss.item()/num_nodes))
if use_physics != 0:
logging.info("Trained coefficients: {}".format(phy_params))

val_losses_save.append(np.mean(losses_val_save))
writer.add_scalars('loss/valid', {'loss_sup': val_losses_save[-1]}, iter_)
Expand Down

0 comments on commit 1cfb5d3

Please sign in to comment.