Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/TheAlgorithms/Python
/ xgboost_regressor.py
File
xgboost_regressor.py
machine_learning/xgboost_regressor.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
# XGBoost Regressor Example
2
import
numpy
as
np
3
from
sklearn.datasets
import
fetch_california_housing
4
from
sklearn.metrics
import
mean_absolute_error, mean_squared_error
Callers
nothing calls this directly
Calls
1
main
Function · 0.70
Tested by
no test coverage detected