voiage.metamodels.Metamodel
A protocol for metamodels used in VOI analysis.
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
Section titled “Parameters”x : ParameterSet The input parameters. y : np.ndarray The target values.
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
Section titled “Parameters”x : ParameterSet The input parameters.
Returns
Section titled “Returns”np.ndarray The predicted target values.
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
Section titled “Parameters”x : ParameterSet The input parameters. y : np.ndarray The true target values.
Returns
Section titled “Returns”float R^2 score.
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
Section titled “Parameters”x : ParameterSet The input parameters. y : np.ndarray The true target values.
Returns
Section titled “Returns”float RMSE score.
Parameters:
selfxParameterSetynp.ndarray
Returns: float