generated from AC-BO-Hackathon/project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
40 additions
and
6 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 |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
*.pyc | ||
.coverage | ||
*.egg-info/ | ||
*.db |
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,23 @@ | ||
from pathlib import Path | ||
import sys | ||
|
||
sys.path.append(str(Path(__file__).parents[2])) | ||
|
||
from src.mobo_qm9 import MOBOQM9, MOBOQM9Parameters | ||
from src.utils import plot_results | ||
|
||
params = MOBOQM9Parameters(featurizer="CM", | ||
kernel="RBF", | ||
surrogate_model="GaussianProcess", | ||
acq_func="qEHVI", | ||
targets=["gap", "mu"], | ||
target_bools=[True, True], | ||
num_total_points=100, | ||
num_seed_points=10, | ||
n_iters=100, | ||
num_candidates=10) | ||
|
||
moboqm9 = MOBOQM9(params) | ||
moboqm9.run_optimization() | ||
plt = plot_results(moboqm9.dataframe) | ||
plt.show() |
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 @@ | ||
"""init file.""" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
def plot_results(df): | ||
""" | ||
Plots the results for the MOBOQM9 model. | ||
args: | ||
df: Results for the MOBOQM9 model. | ||
returns: | ||
matplotlib.pyplot.figure: Figure for the MOBOQM9 model. | ||
""" | ||
pass |