Skip to content

Commit

Permalink
updating defaults and notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
beckynevin committed Nov 5, 2024
1 parent 998b276 commit e22db60
Show file tree
Hide file tree
Showing 3 changed files with 338 additions and 1,456 deletions.
4 changes: 2 additions & 2 deletions deepuq/train/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def train_DER(
DEVICE,
COEFF: float,
loss_type: str,
norm_params: dict,
norm_params: dict = {},
model_name: str = "DER",
EPOCHS: float = 100,
out_dir: str = "./DeepUQResources/",
Expand Down Expand Up @@ -485,7 +485,7 @@ def train_DE(
DEVICE,
loss_type: str,
n_models: float,
norm_params: dict,
norm_params: dict = {},
model_name: str = "DE",
BETA: float = 0.5,
EPOCHS: float = 100,
Expand Down
9 changes: 5 additions & 4 deletions deepuq/utils/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"data_engine": "DataLoader",
"data_dimension": "2D",
"data_injection": "input",
"size_df": 1000,
"size_df": 5000,
"noise_level": "low",
"normalize": False,
"uniform": False,
Expand All @@ -21,7 +21,7 @@
"model_engine": "DE",
"model_type": "DE",
"loss_type": "bnll_loss",
"n_models": 5,
"n_models": 15,
"init_lr": 0.001,
"BETA": 0.5,
"n_epochs": 100,
Expand All @@ -31,7 +31,8 @@
"plot_inline": False,
"plot_savefig": False,
"save_chk_random_seed_init": False,
"rs_list": [41, 42],
"rs_list": [42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52,
53, 54, 55, 56],
"save_n_hidden": False,
"n_hidden": 64,
"save_data_size": False,
Expand All @@ -48,7 +49,7 @@
"data_engine": "DataLoader",
"data_dimension": "2D",
"data_injection": "output",
"size_df": 1000,
"size_df": 5000,
"noise_level": "low",
"normalize": False,
"uniform": False,
Expand Down
1,781 changes: 331 additions & 1,450 deletions notebooks/DeepEnsemble_train_and_validate.ipynb

Large diffs are not rendered by default.

0 comments on commit e22db60

Please sign in to comment.