Skip to content

Commit cfebb54

Browse files
committed
Addressing additional review feedback.
1 parent d4be7ce commit cfebb54

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

notebooks/learning-to-rank/01-learning-to-rank.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"\n",
1313
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/afoucret/elasticsearch-labs/blob/ltr-notebook/notebooks/learning-to-rank/01-learning-to-rank.ipynb)\n",
1414
"\n",
15-
"In this notebook we will see example on how to train a Learning To Rank model using [XGBoost](https://xgboost.ai/) and how to deploy it to be used as a rescorer in Elasticsearch.\n",
15+
"In this notebook we will see an example on how to train a Learning To Rank model using [XGBoost](https://xgboost.ai/) and how to deploy it to be used as a rescorer in Elasticsearch.\n",
1616
"\n",
1717
"\n",
1818
"**Notes about the Learning To Rank feature:**\n",
@@ -235,7 +235,7 @@
235235
"cell_type": "markdown",
236236
"metadata": {},
237237
"source": [
238-
"## Loading the judgment list\n",
238+
"## Loading the judegment list\n",
239239
"\n",
240240
"Judgemnent list provides human judgement that will be used to train our Learning To Rank model.\n",
241241
"\n",
@@ -726,7 +726,7 @@
726726
" doc_features = feature_logger.extract_features(query_params, doc_ids)\n",
727727
"\n",
728728
" # Adding a column to the dataframe for each features:\n",
729-
" for feature_index, feature_name in enumerate(feature_logger._model_config.feature_names):\n",
729+
" for feature_index, feature_name in enumerate(ltr_config.feature_names):\n",
730730
" query_judgements_group[feature_name] = numpy.array([doc_features[doc_id][feature_index] for doc_id in doc_ids])\n",
731731
"\n",
732732
" return query_judgements_group\n",

0 commit comments

Comments
 (0)