r2_score_noint

mastml.metrics.r2_score_noint(y_true, y_pred)[source]

Method that calculates the R^2 value without fitting the y-intercept

Args:

y_true: (numpy array), array of true y data values

y_pred: (numpy array), array of predicted y data values

Returns:

(float): score of R^2 with no y-intercept