Skip to content

Commit

Permalink
Uranus calculation HV index
Browse files Browse the repository at this point in the history
  • Loading branch information
LebedevIlyaG committed Nov 30, 2024
1 parent 2680ac2 commit 602c7a2
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
import csv

# Для построения HV индекса
from pymoo.util.misc import stack
from pymoo.indicators.hv import HV
# from pymoo.util.misc import stack
# from pymoo.indicators.hv import HV
import numpy as np

def factory_dataset():
Expand Down Expand Up @@ -63,15 +63,15 @@ def factory_dataset():
########################################################################

## Вычисляем отраженное Парето множество
data = 1-np.array(val)
ref_point = np.array([1.0, 1.0])
print("reference point:")
print(ref_point)
print("Pareto set:")
print(data)
# data = 1-np.array(val)
# ref_point = np.array([1.0, 1.0])
# print("reference point:")
# print(ref_point)
# print("Pareto set:")
# print(data)

## Создаем объект для подсчета HV индекса
ind = HV(ref_point=ref_point)
# ind = HV(ref_point=ref_point)

## Считаем и выводим HV индекс
print("HV", ind(data))
# print("HV", ind(data))

0 comments on commit 602c7a2

Please sign in to comment.