saealib.KNNObjectiveSet#
- class saealib.KNNObjectiveSet(n_neighbors=50)[ソース]#
ベースクラス:
TrainingSetRetrieve the k nearest archive neighbours of
candidate_x.This is the default training set for
LocalSurrogateManager.- パラメータ:
n_neighbors (int) -- Number of nearest neighbours to retrieve.
Methods
Return k nearest-neighbour archive points around |
|
Return the training-set contract. |
Method Details
- KNNObjectiveSet.build(archive, population, ctx, candidate_x=None)[ソース]#
Return k nearest-neighbour archive points around
candidate_x.- パラメータ:
archive (Archive)
population (Population | None)
ctx (OptimizationState | None)
candidate_x (np.ndarray | None)
- 戻り値の型:
- KNNObjectiveSet.contract()#
Return the training-set contract.
- 戻り値の型: