Skip to content

Commit

Permalink
[ANTBO]: add option to optimize from table of candidates.
Browse files Browse the repository at this point in the history
  • Loading branch information
AntGro committed Mar 10, 2024
1 parent e0dfd88 commit e7f18bd
Show file tree
Hide file tree
Showing 10 changed files with 569 additions and 496 deletions.
4 changes: 3 additions & 1 deletion AntBO/bo/botask.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import numpy as np
from bo.base import TestFunction
from task.tools import Absolut, Manual
from task.tools import Absolut, Manual, TableFilling
import torch

class BOTask(TestFunction):
Expand Down Expand Up @@ -28,6 +28,8 @@ def __init__(self,
self.fbox = Absolut(self.bbox)
elif self.bbox['tool'] == 'manual':
self.fbox = Manual(self.bbox)
elif self.bbox['tool'] == 'table_filling':
self.fbox = TableFilling(self.bbox)
else:
assert 0,f"{self.bbox['tool']} Not Implemented"

Expand Down
185 changes: 66 additions & 119 deletions AntBO/bo/localbo_cat.py

Large diffs are not rendered by default.

Loading

0 comments on commit e7f18bd

Please sign in to comment.