pyfemtet.opt.prediction package

モジュール内容

class pyfemtet.opt.prediction.AbstractModel[ソース]

ベースクラス: object

fit(x, y, bounds=None, **kwargs)[ソース]
パラメータ:
  • x (ndarray) –

  • y (ndarray) –

  • bounds (ndarray | None) –

predict(x)[ソース]
パラメータ:

x (ndarray) –

戻り値の型:

tuple[ndarray, ndarray]

class pyfemtet.opt.prediction.PyFemtetModel[ソース]

ベースクラス: object

current_model: AbstractModel
current_trans: _SearchSpaceTransform
fit(history, df, **kwargs)[ソース]
パラメータ:
  • history (History) –

  • df (DataFrame) –

history: History
predict(x)[ソース]
パラメータ:

x (ndarray) –

戻り値の型:

tuple[ndarray, ndarray]

update_model(model)[ソース]
パラメータ:

model (AbstractModel) –

class pyfemtet.opt.prediction.SingleTaskGPModel[ソース]

ベースクラス: AbstractModel

KWARGS = {'device': 'cpu', 'dtype': torch.float64}
fit(x, y, bounds=None, observation_noise=None, likelihood_class=None, covar_module_settings=None)[ソース]
パラメータ:
  • x (ndarray) –

  • y (ndarray) –

  • bounds (ndarray | None) –

  • covar_module_settings (dict | None) –

gp: SingleTaskGP
predict(x)[ソース]
パラメータ:

x (ndarray) –