Skip to content

voiage.metamodels.EnsembleMetamodel

A metamodel that combines predictions from multiple metamodels.

fit([positional or keyword] self: None = None, [positional or keyword] x: ParameterSet = None, [positional or keyword] y: np.ndarray = None) -> None

Fit all metamodels in the ensemble.

x : ParameterSet The input parameters. y : np.ndarray The target values.

Parameters:

  • self
  • x ParameterSet
  • y np.ndarray

Returns: None

predict([positional or keyword] self: None = None, [positional or keyword] x: ParameterSet = None) -> np.ndarray

Predict using the ensemble of metamodels.

x : ParameterSet The input parameters.

np.ndarray The ensemble predictions.

Parameters:

  • self
  • x ParameterSet

Returns: np.ndarray

score([positional or keyword] self: None = None, [positional or keyword] x: ParameterSet = None, [positional or keyword] y: np.ndarray = None) -> float

Return the coefficient of determination R^2 of the ensemble prediction.

x : ParameterSet The input parameters. y : np.ndarray The true target values.

float R^2 score of the ensemble.

Parameters:

  • self
  • x ParameterSet
  • y np.ndarray

Returns: float

rmse([positional or keyword] self: None = None, [positional or keyword] x: ParameterSet = None, [positional or keyword] y: np.ndarray = None) -> float

Return the root mean squared error of the ensemble prediction.

x : ParameterSet The input parameters. y : np.ndarray The true target values.

float RMSE of the ensemble.

Parameters:

  • self
  • x ParameterSet
  • y np.ndarray

Returns: float