Spaces:
Sleeping
Sleeping
saicharan2804
commited on
Commit
•
2e76d65
1
Parent(s):
7012df8
removed prints
Browse files- __pycache__/molgenevalmetric.cpython-312.pyc +0 -0
- app.py +2 -2
- molgenevalmetric.py +2 -2
- oracle/fpscores.pkl +3 -0
__pycache__/molgenevalmetric.cpython-312.pyc
CHANGED
Binary files a/__pycache__/molgenevalmetric.cpython-312.pyc and b/__pycache__/molgenevalmetric.cpython-312.pyc differ
|
|
app.py
CHANGED
@@ -10,8 +10,8 @@ ls_gen = ls[0:500]
|
|
10 |
ls_train = ls[500:1000]
|
11 |
|
12 |
print('computing')
|
13 |
-
print(SYBAscore(gen=ls_gen))
|
14 |
-
|
15 |
# print(qed_metric(gen=ls_gen))
|
16 |
# print(logP_metric(gen=ls_gen))
|
17 |
# print(average_sascore(gen=ls_gen))
|
|
|
10 |
ls_train = ls[500:1000]
|
11 |
|
12 |
print('computing')
|
13 |
+
# print(SYBAscore(gen=ls_gen))
|
14 |
+
print(met.compute(gensmi = ls_gen, trainsmi = ls_train))
|
15 |
# print(qed_metric(gen=ls_gen))
|
16 |
# print(logP_metric(gen=ls_gen))
|
17 |
# print(average_sascore(gen=ls_gen))
|
molgenevalmetric.py
CHANGED
@@ -498,7 +498,7 @@ def oracles(gen, train):
|
|
498 |
oracle_list = ['QED', 'LogP', 'SA']
|
499 |
|
500 |
for oracle_name in oracle_list:
|
501 |
-
print(oracle_name)
|
502 |
oracle = Oracle(name=oracle_name)
|
503 |
if oracle_name in ['Rediscovery', 'MPO', 'Similarity', 'Median', 'Isomers', 'Hop']:
|
504 |
score = oracle(gen)
|
@@ -593,12 +593,12 @@ class molgenevalmetric(evaluate.Metric):
|
|
593 |
metrics['Unique'] = fraction_unique(gen=gensmi)
|
594 |
metrics['IntDiv'] = internal_diversity(gen=gensmi)
|
595 |
metrics['FCD'] = fcd_metric(gen = gensmi, train = trainsmi)
|
596 |
-
metrics['Oracles'] = oracles(gen = gensmi, train = trainsmi)
|
597 |
metrics['QED'] = qed_metric(gen=gensmi)
|
598 |
metrics['LogP'] = logP_metric(gen=gensmi)
|
599 |
metrics['SA'] = average_sascore(gen=gensmi)
|
600 |
metrics['SCS'] = synthetic_complexity_score(gen=gensmi)
|
601 |
metrics['SYBA'] = SYBAscore(gen=gensmi)
|
|
|
602 |
|
603 |
return metrics
|
604 |
|
|
|
498 |
oracle_list = ['QED', 'LogP', 'SA']
|
499 |
|
500 |
for oracle_name in oracle_list:
|
501 |
+
# print(oracle_name)
|
502 |
oracle = Oracle(name=oracle_name)
|
503 |
if oracle_name in ['Rediscovery', 'MPO', 'Similarity', 'Median', 'Isomers', 'Hop']:
|
504 |
score = oracle(gen)
|
|
|
593 |
metrics['Unique'] = fraction_unique(gen=gensmi)
|
594 |
metrics['IntDiv'] = internal_diversity(gen=gensmi)
|
595 |
metrics['FCD'] = fcd_metric(gen = gensmi, train = trainsmi)
|
|
|
596 |
metrics['QED'] = qed_metric(gen=gensmi)
|
597 |
metrics['LogP'] = logP_metric(gen=gensmi)
|
598 |
metrics['SA'] = average_sascore(gen=gensmi)
|
599 |
metrics['SCS'] = synthetic_complexity_score(gen=gensmi)
|
600 |
metrics['SYBA'] = SYBAscore(gen=gensmi)
|
601 |
+
metrics['Oracles'] = oracles(gen = gensmi, train = trainsmi)
|
602 |
|
603 |
return metrics
|
604 |
|
oracle/fpscores.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:24a4392f5c673e79c0446af3c4d8e458293b5fecaa244328e76741ead9d21dbf
|
3 |
+
size 9048931
|