Skip to content

Commit 884ccfc

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 77fcd97 commit 884ccfc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

machine_learning/xgboostregressor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# XGBoost Regressor Example
22
from sklearn.datasets import load_boston
3-
from xgboost import XGBRegressor
43
from sklearn.metrics import mean_absolute_error, mean_squared_error
54
from sklearn.model_selection import train_test_split
5+
from xgboost import XGBRegressor
66

77

88
def main() -> None:
@@ -23,8 +23,8 @@ def main() -> None:
2323
x, y, test_size=0.25, random_state=1
2424
)
2525

26-
#XGBoost Regressor
27-
xgb=XGBRegressor()
26+
# XGBoost Regressor
27+
xgb = XGBRegressor()
2828
xgb.fit(x_train, y_train)
2929

3030
# Predict target for test data

0 commit comments

Comments
 (0)