Skip to content

Commit 77fcd97

Browse files
authored
Update xgboostregressor.py
1 parent d6d84d4 commit 77fcd97

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

machine_learning/xgboostregressor.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,11 @@
1-
# -*- coding: utf-8 -*-
2-
"""xgboostregressor.ipynb
3-
4-
Automatically generated by Colaboratory.
5-
6-
Original file is located at
7-
https://colab.research.google.com/drive/1UrXXhxQNEI3rL3182GyZFCqPqyhE1c5g
8-
"""
9-
101
# XGBoost Regressor Example
112
from sklearn.datasets import load_boston
123
from xgboost import XGBRegressor
134
from sklearn.metrics import mean_absolute_error, mean_squared_error
145
from sklearn.model_selection import train_test_split
156

167

17-
def main():
8+
def main() -> None:
189

1910
"""
2011
The Url for the algorithm
@@ -46,4 +37,4 @@ def main():
4637

4738

4839
if __name__ == "__main__":
49-
main()
40+
main()

0 commit comments

Comments
 (0)