We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5533741 + 4548273 commit 0b3cb12Copy full SHA for 0b3cb12
tests/hypervolume_tests/test_hssp.py
@@ -1,14 +1,15 @@
1
+from __future__ import annotations
2
+
3
import itertools
4
import math
-from typing import Tuple
5
6
import numpy as np
7
import pytest
8
9
import optuna
10
11
-def _compute_hssp_truth_and_approx(test_case: np.ndarray, subset_size: int) -> Tuple[float, float]:
12
+def _compute_hssp_truth_and_approx(test_case: np.ndarray, subset_size: int) -> tuple[float, float]:
13
r = 1.1 * np.max(test_case, axis=0)
14
truth = 0.0
15
for subset in itertools.permutations(test_case, subset_size):
0 commit comments