voiage.metamodels.RandomForestMetamodel
A metamodel that uses a Random Forest to predict the target values.
Methods
Section titled “Methods”fit([positional or keyword] self: None = None, [positional or keyword] x: ParameterSet = None, [positional or keyword] y: np.ndarray = None) -> NoneFit the metamodel to the data.
Parameters:
selfxParameterSetynp.ndarray
Returns: None
predict
Section titled “predict”predict([positional or keyword] self: None = None, [positional or keyword] x: ParameterSet = None) -> np.ndarrayPredict the target values for the given input parameters.
Parameters:
selfxParameterSet
Returns: np.ndarray
score([positional or keyword] self: None = None, [positional or keyword] x: ParameterSet = None, [positional or keyword] y: np.ndarray = None) -> floatReturn the coefficient of determination R^2 of the prediction.
Parameters:
selfxParameterSetynp.ndarray
Returns: float
rmse([positional or keyword] self: None = None, [positional or keyword] x: ParameterSet = None, [positional or keyword] y: np.ndarray = None) -> floatReturn the root mean squared error of the prediction.
Parameters:
selfxParameterSetynp.ndarray
Returns: float