Skip to content

Commit 0b6d5da

Browse files
committed
Pytest fix
1 parent be1a22e commit 0b6d5da

4 files changed

Lines changed: 10 additions & 149 deletions

File tree

Lines changed: 1 addition & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1,83 +1 @@
1-
{
2-
"version": "112bbedebdaecf59fb18e11c929080fb2f358246",
3-
"dataset": "user_data",
4-
"target": "target",
5-
"atom_features": "cgcnn",
6-
"neighbor_strategy": "k-nearest",
7-
"id_tag": "jid",
8-
"dtype": "float32",
9-
"random_seed": 123,
10-
"classification_threshold": null,
11-
"n_val": null,
12-
"n_test": null,
13-
"n_train": null,
14-
"train_ratio": 0.8,
15-
"val_ratio": 0.1,
16-
"test_ratio": 0.1,
17-
"target_multiplication_factor": null,
18-
"epochs": 3,
19-
"batch_size": 2,
20-
"weight_decay": 1e-05,
21-
"learning_rate": 0.001,
22-
"filename": "A",
23-
"warmup_steps": 2000,
24-
"criterion": "mse",
25-
"optimizer": "adamw",
26-
"scheduler": "onecycle",
27-
"pin_memory": false,
28-
"save_dataloader": false,
29-
"write_checkpoint": true,
30-
"write_predictions": true,
31-
"store_outputs": true,
32-
"progress": true,
33-
"log_tensorboard": false,
34-
"standard_scalar_and_pca": false,
35-
"use_canonize": true,
36-
"num_workers": 0,
37-
"cutoff": 8.0,
38-
"cutoff_extra": 3.0,
39-
"max_neighbors": 12,
40-
"keep_data_order": true,
41-
"normalize_graph_level_loss": false,
42-
"distributed": false,
43-
"data_parallel": false,
44-
"n_early_stopping": null,
45-
"output_dir": "temp",
46-
"use_lmdb": true,
47-
"model": {
48-
"name": "alignn_atomwise",
49-
"alignn_layers": 4,
50-
"gcn_layers": 4,
51-
"atom_input_features": 92,
52-
"edge_input_features": 80,
53-
"triplet_input_features": 40,
54-
"embedding_features": 64,
55-
"hidden_features": 256,
56-
"output_features": 1,
57-
"grad_multiplier": -1,
58-
"calculate_gradient": false,
59-
"atomwise_output_features": 0,
60-
"graphwise_weight": 1.0,
61-
"gradwise_weight": 1.0,
62-
"stresswise_weight": 0.0,
63-
"atomwise_weight": 0.0,
64-
"link": "identity",
65-
"zero_inflated": false,
66-
"classification": false,
67-
"force_mult_natoms": false,
68-
"energy_mult_natoms": false,
69-
"include_pos_deriv": false,
70-
"use_cutoff_function": false,
71-
"inner_cutoff": 3.0,
72-
"stress_multiplier": 1.0,
73-
"add_reverse_forces": true,
74-
"lg_on_fly": true,
75-
"batch_stress": true,
76-
"multiply_cutoff": false,
77-
"use_penalty": true,
78-
"extra_features": 0,
79-
"exponent": 5,
80-
"penalty_factor": 0.1,
81-
"penalty_threshold": 1.0
82-
}
83-
}
1+
{"version": "112bbedebdaecf59fb18e11c929080fb2f358246", "dataset": "user_data", "target": "target", "atom_features": "cgcnn", "neighbor_strategy": "k-nearest", "id_tag": "jid", "dtype": "float32", "random_seed": 123, "classification_threshold": null, "n_val": null, "n_test": null, "n_train": null, "train_ratio": 0.8, "val_ratio": 0.1, "test_ratio": 0.1, "target_multiplication_factor": null, "epochs": 3, "batch_size": 2, "weight_decay": 1e-05, "learning_rate": 0.001, "filename": "A", "warmup_steps": 2000, "criterion": "mse", "optimizer": "adamw", "scheduler": "onecycle", "pin_memory": false, "save_dataloader": false, "write_checkpoint": true, "write_predictions": true, "store_outputs": true, "progress": true, "log_tensorboard": false, "standard_scalar_and_pca": false, "use_canonize": true, "num_workers": 0, "cutoff": 8.0, "cutoff_extra": 3.0, "max_neighbors": 12, "keep_data_order": true, "normalize_graph_level_loss": false, "distributed": false, "data_parallel": false, "n_early_stopping": null, "output_dir": "temp", "use_lmdb": true, "model": {"name": "alignn_atomwise", "alignn_layers": 4, "gcn_layers": 4, "atom_input_features": 92, "edge_input_features": 80, "triplet_input_features": 40, "embedding_features": 64, "hidden_features": 256, "output_features": 1, "grad_multiplier": -1, "calculate_gradient": false, "atomwise_output_features": 0, "graphwise_weight": 1.0, "gradwise_weight": 1.0, "stresswise_weight": 0.0, "atomwise_weight": 0.0, "link": "identity", "zero_inflated": false, "classification": false, "force_mult_natoms": false, "energy_mult_natoms": false, "include_pos_deriv": false, "use_cutoff_function": false, "inner_cutoff": 3.0, "stress_multiplier": 1.0, "add_reverse_forces": true, "lg_on_fly": true, "batch_stress": true, "multiply_cutoff": false, "use_penalty": true, "extra_features": 0, "exponent": 5, "penalty_factor": 0.1, "penalty_threshold": 1.0}}
Lines changed: 1 addition & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1 @@
1-
{
2-
"version": "112bbedebdaecf59fb18e11c929080fb2f358246",
3-
"dataset": "user_data",
4-
"target": "target",
5-
"atom_features": "cgcnn",
6-
"neighbor_strategy": "radius_graph",
7-
"id_tag": "jid",
8-
"dtype": "float32",
9-
"random_seed": 123,
10-
"classification_threshold": null,
11-
"n_val": null,
12-
"n_test": null,
13-
"n_train": null,
14-
"train_ratio": 0.8,
15-
"val_ratio": 0.1,
16-
"test_ratio": 0.1,
17-
"target_multiplication_factor": null,
18-
"epochs": 3,
19-
"batch_size": 2,
20-
"weight_decay": 1e-05,
21-
"learning_rate": 0.001,
22-
"filename": "B",
23-
"warmup_steps": 2000,
24-
"criterion": "l1",
25-
"optimizer": "adamw",
26-
"scheduler": "onecycle",
27-
"pin_memory": false,
28-
"save_dataloader": false,
29-
"write_checkpoint": true,
30-
"write_predictions": true,
31-
"store_outputs": false,
32-
"progress": true,
33-
"log_tensorboard": false,
34-
"standard_scalar_and_pca": false,
35-
"use_canonize": true,
36-
"num_workers": 0,
37-
"cutoff": 4.0,
38-
"max_neighbors": 12,
39-
"keep_data_order": true,
40-
"distributed": false,
41-
"use_lmdb": true,
42-
"model": {
43-
"name": "alignn_atomwise",
44-
"atom_input_features": 92,
45-
"calculate_gradient": true,
46-
"atomwise_output_features": 0,
47-
"alignn_layers": 1,
48-
"gcn_layers": 1,
49-
"hidden_features": 64,
50-
"output_features": 1,
51-
"graphwise_weight": 0.85,
52-
"gradwise_weight": 0.05,
53-
"atomwise_weight": 0.0,
54-
"use_cutoff_function": false,
55-
"stresswise_weight": 0.05,
56-
"add_reverse_forces": true
57-
}
58-
}
1+
{"version": "112bbedebdaecf59fb18e11c929080fb2f358246", "dataset": "user_data", "target": "target", "atom_features": "cgcnn", "neighbor_strategy": "radius_graph", "id_tag": "jid", "dtype": "float32", "random_seed": 123, "classification_threshold": null, "n_val": null, "n_test": null, "n_train": null, "train_ratio": 0.8, "val_ratio": 0.1, "test_ratio": 0.1, "target_multiplication_factor": null, "epochs": 3, "batch_size": 2, "weight_decay": 1e-05, "learning_rate": 0.001, "filename": "B", "warmup_steps": 2000, "criterion": "l1", "optimizer": "adamw", "scheduler": "onecycle", "pin_memory": false, "save_dataloader": false, "write_checkpoint": true, "write_predictions": true, "store_outputs": false, "progress": true, "log_tensorboard": false, "standard_scalar_and_pca": false, "use_canonize": true, "num_workers": 0, "cutoff": 4.0, "max_neighbors": 12, "keep_data_order": true, "distributed": false, "use_lmdb": true, "model": {"name": "alignn_atomwise", "atom_input_features": 92, "calculate_gradient": true, "atomwise_output_features": 0, "alignn_layers": 1, "gcn_layers": 1, "hidden_features": 64, "output_features": 1, "graphwise_weight": 0.85, "gradwise_weight": 0.05, "atomwise_weight": 0.0, "use_cutoff_function": false, "stresswise_weight": 0.05, "add_reverse_forces": true}}

alignn/tests/test_eprop.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def test_alignn_train_regression():
8686
tmp["filename"] = "AA"
8787
dumpjson(data=tmp, filename=config)
8888
train_for_folder(
89-
rank=0, world_size=world_size, root_dir=root_dir, config_name=config
89+
local_rank=0, world_size=world_size, root_dir=root_dir, config_name=config
9090
)
9191

9292

@@ -109,7 +109,7 @@ def test_alignn_train_regression_multi_out():
109109
tmp["filename"] = "BB"
110110
dumpjson(data=tmp, filename=config)
111111
train_for_folder(
112-
rank=0, world_size=world_size, root_dir=root_dir, config_name=config
112+
local_rank=0, world_size=world_size, root_dir=root_dir, config_name=config
113113
)
114114

115115

@@ -130,7 +130,7 @@ def test_alignn_train_classification():
130130
tmp["filename"] = "A"
131131
dumpjson(data=tmp, filename=config)
132132
train_for_folder(
133-
rank=0,
133+
local_rank=0,
134134
world_size=world_size,
135135
root_dir=root_dir,
136136
config_name=config,
@@ -155,7 +155,7 @@ def test_alignn_train_ff():
155155
tmp["filename"] = "B"
156156
dumpjson(data=tmp, filename=config)
157157
train_for_folder(
158-
rank=0, world_size=world_size, root_dir=root_dir, config_name=config
158+
local_rank=0, world_size=world_size, root_dir=root_dir, config_name=config
159159
)
160160
cmd = "rm *.pt *.csv *.json *range"
161161
os.system(cmd)

alignn/tests/test_prop.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def test_alignn_train_regression():
100100
tmp["filename"] = "AA"
101101
dumpjson(data=tmp, filename=config)
102102
train_for_folder(
103-
rank=0, world_size=world_size, root_dir=root_dir, config_name=config
103+
local_rank=0, world_size=world_size, root_dir=root_dir, config_name=config
104104
)
105105

106106

@@ -123,7 +123,7 @@ def test_alignn_train_regression_multi_out():
123123
tmp["filename"] = "BB"
124124
dumpjson(data=tmp, filename=config)
125125
train_for_folder(
126-
rank=0, world_size=world_size, root_dir=root_dir, config_name=config
126+
local_rank=0, world_size=world_size, root_dir=root_dir, config_name=config
127127
)
128128

129129

@@ -144,7 +144,7 @@ def test_alignn_train_classification():
144144
tmp["filename"] = "A"
145145
dumpjson(data=tmp, filename=config)
146146
train_for_folder(
147-
rank=0,
147+
local_rank=0,
148148
world_size=world_size,
149149
root_dir=root_dir,
150150
config_name=config,
@@ -169,7 +169,7 @@ def test_alignn_train_ff():
169169
tmp["filename"] = "B"
170170
dumpjson(data=tmp, filename=config)
171171
train_for_folder(
172-
rank=0, world_size=world_size, root_dir=root_dir, config_name=config
172+
local_rank=0, world_size=world_size, root_dir=root_dir, config_name=config
173173
)
174174
cmd = "rm *.pt *.csv *.json *range"
175175
os.system(cmd)

0 commit comments

Comments
 (0)