Update xgboost_regressor.py#9058
Conversation
|
@cclauss kindly review this PR. |
|
@rohan472000 Can you provide a source that documents this formula change? |
|
This is just a link to the
This is a changelog for scikit-learn 1.0, but the newest stable version is 1.3.0. You said the formula changed in the latest version, so why not link to the changelog for version 1.3.0? Either way, I wasn't able to find any info on either changelog stating that the formula for @rohan472000 I don't doubt that your PR fixes the broken doctests, but you haven't explained why the outputs have changed. Do you have any sources to back up your claim that the formula actually changed? I want to make sure that your new doctest outputs are actually the correct expected outputs and not simply due to an error in the implementation. |
|
Yes ..you are correct as I read an article a month ago regarding metrics error especially mse and rmse, but it is my mistake i concluded that wrong..I also checked but no change in formula I found... closing this PR. |

Describe your change:
The
mean_squared_error()function has been updated in the latest version of scikit-learn. The previous version of the function used a different formula for calculating the mean squared error, which resulted in a different value. This PR updates the code (changed the doctest results) to use the new formula.The new version of the function uses the following formula:
The previous version of the function used the following formula:
Checklist: