import xgboost as xgb from sklearn.model_selection import GridSearchCV from sklearn.datasets import load_boston from sklearn.metrics import mean_squared_error # ãã¼ã¿èªã¿è¾¼ã¿ boston = load_boston() X_train, X_test = boston.data[:400], boston.data[400:] y_train, y_test = boston.target[:400], boston.target[400:] # xgboostã¢ãã«ã®ä½æ reg = xgb.XGBRegressor() # ãã¤ãã¼ãã©ã¡ã¼ã¿æ¢ç´¢ reg_cv = GridSearchCV(reg, {'max_depth'
{{#tags}}- {{label}}
{{/tags}}