Add comment explaining what the predicted output format.
This commit is contained in:
Родитель
361e918f64
Коммит
31bede1c44
|
@ -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)"
|
||||||
]
|
]
|
||||||
|
|
Загрузка…
Ссылка в новой задаче