saealib.LHSInitializer#

class saealib.LHSInitializer(n_init_archive, n_init_population, seed=None)[ソース]#

ベースクラス: Initializer

Latin Hypercube Sampling Initializer.

パラメータ:
  • n_init_archive (int)

  • n_init_population (int)

  • seed (int | None)

n_init_archive#

The number of individuals to initialize in the archive.

Type:

int

n_init_population#

The number of individuals to initialize in the population.

Type:

int

seed#

The seed for the random number generator.

Type:

int | None

Methods

__init__

contract

Return the LHS initializer contract.

initialize

Initialize Population and Archive with LHS samples.

Method Details

LHSInitializer.__init__(n_init_archive, n_init_population, seed=None)[ソース]#
パラメータ:
  • n_init_archive (int)

  • n_init_population (int)

  • seed (int | None)

LHSInitializer.contract()[ソース]#

Return the LHS initializer contract.

戻り値の型:

ComponentContract

LHSInitializer.initialize(provider, problem)[ソース]#

Initialize Population and Archive with LHS samples.

パラメータ:
  • provider (ComponentProvider) -- The component provider instance.

  • problem (Problem) -- The problem instance.

戻り値の型:

OptimizationState