Skip to content

Commit

Permalink
closes #6, loosen reqs
Browse files Browse the repository at this point in the history
  • Loading branch information
cahity committed Nov 18, 2024
1 parent 76daf4a commit ea4aa35
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 29 deletions.
22 changes: 5 additions & 17 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,18 @@
name: torch
name: vectopt
channels:
- conda-forge
- pytorch
- gpytorch
- nvidia
- gurobi
- mosek
dependencies:
- python=3.10
- pytorch=2.0.1
- pytorch-cuda=11.7
- gpytorch=1.11.0
- botorch=0.10.0
- pymoo=0.5.0
- python>=3.10
- gpytorch
- botorch<0.12.0
- cvxpy
- scikit-learn
- scipy
- oyaml
- gpy
- jupyter
- matplotlib
- numpy
- pandas
- seaborn
- jupyter
- gurobi
- pytest
- pytest-cov
- flake8
Expand All @@ -34,4 +22,4 @@ dependencies:
- bandit
- sphinx_rtd_theme
- pip:
- docs/requirements.txt
- -r docs/requirements.txt
12 changes: 3 additions & 9 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
torch==2.0.1
gpytorch==1.11.0
botorch==0.10.0
pymoo==0.5.0
gpytorch
botorch<0.12.0
cvxpy
scikit-learn
scipy
oyaml
gpy
jupyter
matplotlib
numpy
pandas
seaborn
jupyter
pytest
pytest-cov
Expand All @@ -20,5 +13,6 @@ flake8-print
pydocstyle
black
bandit
sphinx_rtd_theme

-r docs/requirements.txt
4 changes: 1 addition & 3 deletions vectoptal/acquisition/acquisition.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from vectoptal.models import Model, ModelList
from vectoptal.design_space import DiscreteDesignSpace

import torch
import numpy as np


Expand Down Expand Up @@ -270,8 +269,7 @@ def optimize_acqf_discrete(

chosen = 0
while chosen < q:
with torch.no_grad():
acq_values = acq(choices)
acq_values = acq(choices)

best_idx = np.argmax(acq_values)
candidate_list.append(choices[best_idx])
Expand Down

0 comments on commit ea4aa35

Please sign in to comment.