saealib.ReferencePointComparisonSet#
- class saealib.ReferencePointComparisonSet(ref_source='population_best')[ソース]#
ベースクラス:
TrainingSetBinary labels: 1 if archive point dominates the reference point, 0 otherwise.
Unlike PairwiseComparisonSet, train_x has shape (n_archive, dim), making it compatible with GlobalSurrogateManager and LocalSurrogateManager.
- パラメータ:
ref_source (str) -- How to select the reference point: -
"population_best"(default): best individual in the current population -"archive_best": best individual in the archive- 例外:
ValueError -- If ctx is None (comparator required).
ValueError -- If ref_source="population_best" and population is None.
Methods
Return binary labels: 1 if archive point dominates reference, 0 otherwise. |
|
Return the training-set contract. |
Method Details
- ReferencePointComparisonSet.__init__(ref_source='population_best')[ソース]#
- パラメータ:
ref_source (str)
- 戻り値の型:
None
- ReferencePointComparisonSet.build(archive, population, ctx, candidate_x=None)[ソース]#
Return binary labels: 1 if archive point dominates reference, 0 otherwise.
- パラメータ:
archive (Archive)
population (Population | None)
ctx (OptimizationState | None)
candidate_x (np.ndarray | None)
- 戻り値の型:
- ReferencePointComparisonSet.contract()#
Return the training-set contract.
- 戻り値の型: