**There seems to be a bug in the first question of the Machine Learning II objective exam 2 (Q1).** They are asking to get the R^2 and MAE values of a random forest regressor, to which I put

```
# R_squared calculation
R_squared = rf.score(x_test, y_test)
y_pred = rf.predict(x_test)
# MAE calculation
MAE = mean_absolute_error(y_test, y_pred)
```

but I keep getting the message " Your R_squared value does not match what we expected. Make sure not to round after applying `.score()`

".

Is there anything I’m not seeing??? This is exactly how they suggest to calculate the R^2 in all of the lessons, i also tried using r2_score from sklearn.metrics (using the y_pred), but I get the same error!

This is literally the last objective exam I have for the course, I’m going crazy over this. Is this a bug?