Add comment explaining what the predicted output format.

This commit is contained in:
pieths.dev@gmail.com 2019-11-06 10:54:37 -08:00
Родитель 361e918f64
Коммит 31bede1c44
1 изменённых файлов: 1 добавлений и 0 удалений

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

@ -301,6 +301,7 @@
"import pandas as pd\n", "import pandas as pd\n",
"scores[['Relevance','QueryID']] = pd.read_csv(test_file, header = None)[[0,1]]\n", "scores[['Relevance','QueryID']] = pd.read_csv(test_file, header = None)[[0,1]]\n",
"\n", "\n",
"# Show the top 10 predicted items for query 5.\n",
"print(\"Prediction scores: \")\n", "print(\"Prediction scores: \")\n",
"scores[scores.QueryID == 5].sort_values('Score', ascending=False).head(10)" "scores[scores.QueryID == 5].sort_values('Score', ascending=False).head(10)"
] ]