This commit is contained in:
miguelgfierro 2017-07-14 06:31:49 +00:00
Родитель 11cf7e3a53
Коммит 4b6bc4b03b
1 изменённых файлов: 15 добавлений и 38 удалений

Просмотреть файл

@ -1379,21 +1379,12 @@
"editable": true
},
"source": [
"```python\n",
"with Timer() as t:\n",
" xgb_clf_pipeline.fit(X_train, y_train)"
]
},
{
"cell_type": "markdown",
"metadata": {
"collapsed": false,
"deletable": true,
"editable": true
},
"source": [
"results_dict['xgb']={\n",
" 'train_time': t.interval\n",
"}"
" xgb_clf_pipeline.fit(X_train, y_train)\n",
"\n",
"results_dict['xgb']={ 'train_time': t.interval }\n",
"```"
]
},
{
@ -1600,19 +1591,12 @@
"editable": true
},
"source": [
"```python\n",
"with Timer() as t:\n",
" y_prob_xgb = np.clip(xgb_clf_pipeline.predict(X_test), 0.0001, 0.9999)"
]
},
{
"cell_type": "markdown",
"metadata": {
"collapsed": false,
"deletable": true,
"editable": true
},
"source": [
"results_dict['xgb']['test_time'] = t.interval"
" y_prob_xgb = np.clip(xgb_clf_pipeline.predict(X_test), 0.0001, 0.9999)\n",
" \n",
"results_dict['xgb']['test_time'] = t.interval\n",
"```"
]
},
{
@ -1743,20 +1727,13 @@
"editable": true
},
"source": [
"```python\n",
"report_xgb = classification_metrics_binary(y_test, y_pred_xgb)\n",
"report2_xgb = classification_metrics_binary_prob(y_test, y_prob_xgb)\n",
"report_xgb.update(report2_xgb)"
]
},
{
"cell_type": "markdown",
"metadata": {
"collapsed": false,
"deletable": true,
"editable": true
},
"source": [
"results_dict['xgb']['performance'] = report_xgb"
"report_xgb.update(report2_xgb)\n",
"\n",
"results_dict['xgb']['performance'] = report_xgb\n",
"```"
]
},
{