text_plain_output_1.png
"""from catboost import CatBoost
params = {
        'depth': [7],
        'learning_rate' : [0.15],
        'l2_leaf_reg': [15,20, 25],
        'iterations': [300],
         'verbose' : [False], #shut up!!!
        }
gsc = GridSearchCV(
        estimator=catboost.CatBoostRegressor(),
        param_grid=params,
        cv=3,
        scoring='r2', 
        verbose=0, 
        n_jobs=-1)
grid_result = gsc.fit(X_train, Y_train)
print('Best params:', grid_result.best_params_)
print('Best score:', grid_result.best_score_)
cboost = catboost.CatBoostRegressor(loss_function='RMSE', verbose=False, learning_rate = 0.15, l2_leaf_reg = 20, iterations = 300)
cboost.fit(X_train, Y_train)
print("train score", cboost.score(X_train, Y_train))
print("test score", cboost.score(X_test, Y_test))
#print("crossVal score", cross_val_score(cboost, X, Y, cv=3).mean())"""