r2_score_adjusted¶
- mastml.metrics.r2_score_adjusted(y_true, y_pred, n_features=None)[source]¶
Method that calculates the adjusted R^2 value
- Args:
y_true: (numpy array), array of true y data values
y_pred: (numpy array), array of predicted y data values
n_features: (int), number of features used in the fit
- Returns:
(float): score of adjusted R^2