Skip to content

Commit

Permalink
merge cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cahity committed Oct 28, 2024
1 parent c95a12d commit dec45f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion test/test_confidence_region.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ def setUp(self):

def test_diagonal(self):
"""Test the diagonal method."""
print(self.confidence_region.diagonal())
self.assertTrue(np.sqrt(2) == self.confidence_region.diagonal())

def test_update(self):
Expand Down
7 changes: 3 additions & 4 deletions vectoptal/algorithms/paveba_gp.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import logging
from typing import Literal

import numpy as np
Expand Down Expand Up @@ -175,7 +176,7 @@ def pareto_updating(self):
for pt in new_pareto_pts:
self.S.remove(pt)
self.P.add(pt)
print(f"Pareto: {str(self.P)}")
logging.debug(f"Pareto: {str(self.P)}")

def useful_updating(self):
"""
Expand All @@ -193,7 +194,7 @@ def useful_updating(self):
):
self.U.add(pt)
break
print(f"Useful: {str(self.U)}")
logging.debug(f"Useful: {str(self.U)}")

def evaluating(self):
"""
Expand Down Expand Up @@ -260,6 +261,4 @@ def compute_alpha(self) -> float:
(np.pi**2 * self.round**2 * self.design_space.cardinality) / (6 * self.delta)
)

print("alpha:", alpha)

return alpha / self.conf_contraction

0 comments on commit dec45f9

Please sign in to comment.