Skip to content

Commit 7e2ef08

Browse files
committed
typo fix
1 parent f7e2e5c commit 7e2ef08

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

leaf_indexes_calculation/leaf_indexes_calculation_tutorial.ipynb

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"source": [
3030
"from __future__ import print_function\n",
3131
"\n",
32+
"\n",
3233
"import numpy as np\n",
3334
"from scipy.stats import ttest_rel\n",
3435
"\n",
@@ -40,6 +41,9 @@
4041
"\n",
4142
"from catboost import CatBoostRegressor\n",
4243
"\n",
44+
"import warnings\n",
45+
"warnings.filterwarnings(\"ignore\", category=ConvergenceWarning)\n",
46+
"\n",
4347
"seed = 42"
4448
]
4549
},
@@ -2084,12 +2088,12 @@
20842088
{
20852089
"data": {
20862090
"application/vnd.jupyter.widget-view+json": {
2087-
"model_id": "97d5fcc4c2f94bdca55c64cf4bf86be5",
2091+
"model_id": "32fcc6bdcba642b988bd0403786ee525",
20882092
"version_major": 2,
20892093
"version_minor": 0
20902094
},
20912095
"text/plain": [
2092-
"MetricVisualizer(layout=Layout(align_self=u'stretch', height=u'500px'))"
2096+
"MetricVisualizer(layout=Layout(align_self='stretch', height='500px'))"
20932097
]
20942098
},
20952099
"metadata": {},
@@ -2116,7 +2120,7 @@
21162120
"cb_regressor = CatBoostRegressor(**catboost_params)\n",
21172121
"cb_regressor.fit(X_train, y_train, eval_set=(X_validate, y_validate), plot=True)\n",
21182122
"print(\"tree count: {}\".format(cb_regressor.tree_count_))\n",
2119-
"print(\"best rmse: {:.5}\".format(cb_regressor.best_score_['validation_0'][\"RMSE\"]))"
2123+
"print(\"best rmse: {:.5}\".format(cb_regressor.best_score_['validation'][\"RMSE\"]))"
21202124
]
21212125
},
21222126
{
@@ -2167,7 +2171,7 @@
21672171
"name": "stderr",
21682172
"output_type": "stream",
21692173
"text": [
2170-
"C:\\Users\\strashila\\AppData\\Local\\Continuum\\anaconda2\\lib\\site-packages\\sklearn\\linear_model\\coordinate_descent.py:492: ConvergenceWarning: Objective did not converge. You might want to increase the number of iterations. Fitting data with very small alpha may cause precision problems.\n",
2174+
"/Users/vadimborisov/anaconda3/lib/python3.7/site-packages/sklearn/linear_model/coordinate_descent.py:492: ConvergenceWarning: Objective did not converge. You might want to increase the number of iterations. Fitting data with very small alpha may cause precision problems.\n",
21712175
" ConvergenceWarning)\n"
21722176
]
21732177
},
@@ -2176,7 +2180,7 @@
21762180
"output_type": "stream",
21772181
"text": [
21782182
"best alpha: 0.00316\n",
2179-
"best rmse: 0.591689214194\n"
2183+
"best rmse: 0.5916892141942673\n"
21802184
]
21812185
}
21822186
],
@@ -2269,21 +2273,21 @@
22692273
],
22702274
"metadata": {
22712275
"kernelspec": {
2272-
"display_name": "Python 2",
2276+
"display_name": "Python 3",
22732277
"language": "python",
2274-
"name": "python2"
2278+
"name": "python3"
22752279
},
22762280
"language_info": {
22772281
"codemirror_mode": {
22782282
"name": "ipython",
2279-
"version": 2
2283+
"version": 3
22802284
},
22812285
"file_extension": ".py",
22822286
"mimetype": "text/x-python",
22832287
"name": "python",
22842288
"nbconvert_exporter": "python",
2285-
"pygments_lexer": "ipython2",
2286-
"version": "2.7.15"
2289+
"pygments_lexer": "ipython3",
2290+
"version": "3.7.1"
22872291
}
22882292
},
22892293
"nbformat": 4,

0 commit comments

Comments
 (0)