-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from allaffa/dimension_graph_outputs
Dimension graph outputs & CFG loader & optional plotting
- Loading branch information
Showing
24 changed files
with
702 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{ | ||
"Verbosity": { | ||
"level": 2 | ||
}, | ||
"Dataset": { | ||
"name": "NiNb", | ||
"path": {"total": "BULK_DATA"}, | ||
"format": "CFG", | ||
"compositional_stratified_splitting": true, | ||
"rotational_invariance": true, | ||
"node_features": { | ||
"name": ["num_of_protons", "atomic_masses", "atomic_energy"], | ||
"dim": [1,1,1], | ||
"column_index": [0,1,2] | ||
}, | ||
"graph_features":{ | ||
"name": ["bulk_modulus"], | ||
"dim": [1], | ||
"column_index": [2] | ||
} | ||
}, | ||
"NeuralNetwork": { | ||
"Architecture": { | ||
"model_type": "PNA", | ||
"radius": 3, | ||
"max_neighbours": 100000, | ||
"edge_features": ["lengths"], | ||
"periodic_boundary_conditions": true, | ||
"hidden_dim": 50, | ||
"num_conv_layers": 10, | ||
"output_heads": { | ||
"graph":{ | ||
"num_sharedlayers": 2, | ||
"dim_sharedlayers": 5, | ||
"num_headlayers": 2, | ||
"dim_headlayers": [50,25] | ||
}, | ||
"node": { | ||
"num_headlayers": 2, | ||
"dim_headlayers": [50,25], | ||
"type": "mlp" | ||
} | ||
}, | ||
"task_weights": [1.0] | ||
}, | ||
"Variables_of_interest": { | ||
"input_node_features": [0], | ||
"output_names": ["bulk_modulus"], | ||
"output_index": [0], | ||
"type": ["graph"], | ||
"denormalize_output": true | ||
}, | ||
"Training": { | ||
"num_epoch": 2, | ||
"perc_train": 0.7, | ||
"learning_rate": 1e-3, | ||
"batch_size": 64, | ||
"continue": 0 | ||
} | ||
}, | ||
"Visualization": { | ||
"plot_init_solution": true, | ||
"plot_hist_solution": false, | ||
"create_plots": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"Verbosity": { | ||
"level": 2 | ||
}, | ||
"Dataset": { | ||
"name": "NiNb", | ||
"path": {"total": "FCC_Bulk_small"}, | ||
"format": "CFG", | ||
"compositional_stratified_splitting": true, | ||
"rotational_invariance": true, | ||
"node_features": { | ||
"name": ["num_of_protons", "atomic_mass", "atomic_energy", "atomic_force"], | ||
"dim": [1,1,1,3], | ||
"column_index": [0,1,2,3] | ||
}, | ||
"graph_features":{ | ||
"name": ["bulk_modulus"], | ||
"dim": [1], | ||
"column_index": [2] | ||
} | ||
}, | ||
"NeuralNetwork": { | ||
"Architecture": { | ||
"model_type": "PNA", | ||
"radius": 3, | ||
"max_neighbours": 100000, | ||
"edge_features": ["lengths"], | ||
"periodic_boundary_conditions": true, | ||
"hidden_dim": 50, | ||
"num_conv_layers": 6, | ||
"output_heads": { | ||
"graph":{ | ||
"num_sharedlayers": 2, | ||
"dim_sharedlayers": 5, | ||
"num_headlayers": 2, | ||
"dim_headlayers": [50,25] | ||
}, | ||
"node": { | ||
"num_headlayers": 2, | ||
"dim_headlayers": [50,25], | ||
"type": "mlp" | ||
} | ||
}, | ||
"task_weights": [1.0, 1.0, 1.0] | ||
}, | ||
"Variables_of_interest": { | ||
"input_node_features": [0], | ||
"output_names": ["bulk_modulus","atomic_energy","atomic_forces"], | ||
"output_index": [0, 2, 3], | ||
"type": ["graph","node","node"], | ||
"denormalize_output": true | ||
}, | ||
"Training": { | ||
"num_epoch": 2, | ||
"perc_train": 0.7, | ||
"learning_rate": 1e-3, | ||
"batch_size": 64, | ||
"continue": 0, | ||
"startfrom": "existing_model" | ||
} | ||
}, | ||
"Visualization": { | ||
"plot_init_solution": true, | ||
"plot_hist_solution": false, | ||
"create_plots": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{ | ||
"Verbosity": { | ||
"level": 2 | ||
}, | ||
"Dataset": { | ||
"name": "NiNb", | ||
"path": {"total": "FCC_Ni_Nb"}, | ||
"format": "CFG", | ||
"compositional_stratified_splitting": true, | ||
"rotational_invariance": true, | ||
"node_features": { | ||
"name": ["num_of_protons", "atomic_masses", "atomic_energy"], | ||
"dim": [1,1,1], | ||
"column_index": [0,1,2] | ||
}, | ||
"graph_features":{ | ||
"name": [], | ||
"dim": [], | ||
"column_index": [] | ||
} | ||
}, | ||
"NeuralNetwork": { | ||
"Architecture": { | ||
"model_type": "PNA", | ||
"radius": 3, | ||
"max_neighbours": 100000, | ||
"edge_features": ["lengths"], | ||
"periodic_boundary_conditions": true, | ||
"hidden_dim": 50, | ||
"num_conv_layers": 10, | ||
"output_heads": { | ||
"graph":{ | ||
"num_sharedlayers": 2, | ||
"dim_sharedlayers": 5, | ||
"num_headlayers": 2, | ||
"dim_headlayers": [50,25] | ||
}, | ||
"node": { | ||
"num_headlayers": 2, | ||
"dim_headlayers": [50,25], | ||
"type": "mlp" | ||
} | ||
}, | ||
"task_weights": [1.0] | ||
}, | ||
"Variables_of_interest": { | ||
"input_node_features": [0], | ||
"output_names": ["atomic_energy"], | ||
"output_index": [2], | ||
"type": ["node"], | ||
"denormalize_output": true | ||
}, | ||
"Training": { | ||
"num_epoch": 200, | ||
"perc_train": 0.7, | ||
"learning_rate": 1e-3, | ||
"batch_size": 64, | ||
"continue": 0 | ||
} | ||
}, | ||
"Visualization": { | ||
"plot_init_solution": true, | ||
"plot_hist_solution": false, | ||
"create_plots": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"Verbosity": { | ||
"level": 2 | ||
}, | ||
"Dataset": { | ||
"name": "NiNb", | ||
"path": {"total": "FCC_Ni_Nb"}, | ||
"format": "CFG", | ||
"compositional_stratified_splitting": true, | ||
"rotational_invariance": true, | ||
"node_features": { | ||
"name": ["num_of_protons", "atomic_mass", "atomic_energy", "atomic_force"], | ||
"dim": [1,1,1,3], | ||
"column_index": [0,1,2,3] | ||
}, | ||
"graph_features":{ | ||
"name": [], | ||
"dim": [], | ||
"column_index": [] | ||
} | ||
}, | ||
"NeuralNetwork": { | ||
"Architecture": { | ||
"model_type": "PNA", | ||
"radius": 3, | ||
"max_neighbours": 100000, | ||
"edge_features": ["lengths"], | ||
"periodic_boundary_conditions": true, | ||
"hidden_dim": 50, | ||
"num_conv_layers": 6, | ||
"output_heads": { | ||
"graph":{ | ||
"num_sharedlayers": 2, | ||
"dim_sharedlayers": 5, | ||
"num_headlayers": 2, | ||
"dim_headlayers": [50,25] | ||
}, | ||
"node": { | ||
"num_headlayers": 2, | ||
"dim_headlayers": [50,25], | ||
"type": "mlp" | ||
} | ||
}, | ||
"task_weights": [1.0, 1.0] | ||
}, | ||
"Variables_of_interest": { | ||
"input_node_features": [0], | ||
"output_names": ["atomic_energy","atomic_forces"], | ||
"output_index": [2, 3], | ||
"type": ["node","node"], | ||
"denormalize_output": true | ||
}, | ||
"Training": { | ||
"num_epoch": 20, | ||
"perc_train": 0.7, | ||
"learning_rate": 1e-3, | ||
"batch_size": 64, | ||
"continue": 0, | ||
"startfrom": "existing_model" | ||
} | ||
}, | ||
"Visualization": { | ||
"plot_init_solution": true, | ||
"plot_hist_solution": false, | ||
"create_plots": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import os | ||
import hydragnn | ||
|
||
filepath = os.path.join(os.path.dirname(__file__), "NiNb_EAM_bulk_multitask.json") | ||
hydragnn.run_training(filepath) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.