Skip to content

voiage.metamodels.RandomForestMetamodel

A metamodel that uses a Random Forest to predict the target values.

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

Fit the metamodel to the data.

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 the target values for the given input parameters.

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 prediction.

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 prediction.

Parameters:

  • self
  • x ParameterSet
  • y np.ndarray

Returns: float