Skip to content

Commit

Permalink
examples
Browse files Browse the repository at this point in the history
  • Loading branch information
killiansheriff committed Mar 13, 2024
1 parent f2f33f0 commit 0431877
Show file tree
Hide file tree
Showing 4 changed files with 659 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.ruff_cache
examples/_frameworks_second_paper.py
examples/doi-10.48550-arXiv.2311.01545/data
examples/doi-TBD/data
#Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
Empty file added examples/doi-TBD/__init__.py
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
BaseSyntheticChemicalMotifIdentifier,
)

# Model used in LINK
# Model used in DOI-TBD

INPUT_GDOWN_LINK = '' # Folder with model weights, sample graphs etc.
INPUT_GDOWN_LINK = 'https://drive.google.com/drive/folders/1Eu2-3-UALS75t12I0DeTyrl7thzVd7y7?usp=sharing' # Folder with model weights, sample graphs etc.

class SyntheticChemicalMotifIdentifier(BaseSyntheticChemicalMotifIdentifier):
"""Just a class that re use the framework above but that matches the parameters of the first paper.
Expand All @@ -35,7 +35,7 @@ def import_model_config(self):
"lmax": lmax,
"net_number": number,
"irreps_node_attr": "5x0e",
"model_load": f"/home/ksheriff/PAPERS/second_paper/02_1nn_synthetic/data/nets/net_{lmax}-{layers}-{outlength}_{number}.pt", #!!!
"model_load": f"data/inputs_doi-TBD/net.pt",
"mul": 3, # 50
}
self.model_config = model_config
Expand All @@ -47,7 +47,7 @@ def __init__(self, **kwargs):
def import_synthetic(self):
"""Import chemical shell synthetic dataset pandas dataframe"""
self.df_synthetic = pd.read_pickle(
f"/home/ksheriff/PAPERS/second_paper/02_1nn_synthetic/data/output/df_{self.crystal_structure}.pkl" # !!!
f"data/inputs_doi-TBD/df_{self.crystal_structure}.pkl"
)
def import_model_config(self):
lmax, layers, outlength, number = 2, 2, 4, 0 # 2,2,4,0
Expand All @@ -63,7 +63,7 @@ def import_model_config(self):
"lmax": lmax,
"net_number": number,
"irreps_node_attr": "5x0e",
"model_load": f"/home/ksheriff/PAPERS/second_paper/02_1nn_synthetic/data/nets/net_{lmax}-{layers}-{outlength}_{number}.pt", #!!!
"model_load": f"data/inputs_doi-TBD/net.pt",
"mul": 3, # 50
}
self.model_config = model_config
653 changes: 653 additions & 0 deletions examples/doi-TBD/bcc_quaternary_system.ipynb

Large diffs are not rendered by default.

0 comments on commit 0431877

Please sign in to comment.