-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
27 lines (21 loc) · 823 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/python3
#Author: Linus Lind Jan. 2024
#LICENSED UNDER: Creative Commons Attribution-ShareAlike 4.0 International
from model_scripts import *
# the main for executing the whole code, Generates the chosen descriptors and
# runs the KRR script. Generates a summary of the results.
def main():
# generate descriptors
generate_MACCS.main()
add_BESPE.main()
# select descriptor and target values to use
# (these should correspond to file names in data folder)
descriptor = 'BESPE-MACCS'
target = 'log10_p_sat_kpa'
random_state = [12, 432, 5, 7543, 12343, \
452, 325432435, 326, 436, 2435]
# run KRR model
krr.main(descriptor, target, save_predictions=True, \
random_seeds=random_state, plotting=True)
if __name__ == "__main__":
main()