Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENTMOOT strategy #77

Merged
merged 9 commits into from
Nov 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
name: Test & Publish
on: [push]
on: push:
pull_request:
branches:
# Branches from forks have the form 'user:branch-name' so we only run
# this job on pull_request events for branches that look like fork
# branches. Without this we would end up running this job twice for non
# forked PRs, once for the push and then once for opening the PR.
- '**:**'

jobs:
#Run pytest and build package
Expand Down
4 changes: 4 additions & 0 deletions summit/strategies/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from .sobo import SOBO
from .gryffin import GRYFFIN
from .deep_reaction_optimizer import DRO
from .entmoot import ENTMOOT


def strategy_from_dict(d):
Expand All @@ -28,6 +29,9 @@ def strategy_from_dict(d):
return LHS.from_dict(d)
elif d["name"] == "DRO":
return DRO.from_dict(d)
elif d["name"] == "ENTMOOT":
return ENTMOOT.from_dict(d)

else:
raise ValueError(f"""Strategy {d["name"]} not found.""")

Loading