Skip to content

Commit

Permalink
tqdm error unhashable type fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
awarebayes committed Nov 23, 2019
1 parent 5d1dc07 commit 6fe3a76
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,27 @@
"jtplot.style(theme='grade3')"
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'4.32.1'"
]
},
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"import tqdm\n",
"tqdm.__version__"
]
},
{
"cell_type": "code",
"execution_count": 2,
Expand Down
31 changes: 26 additions & 5 deletions examples/[Library Basics]/1. Getting Started.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
{
"cell_type": "code",
"execution_count": 18,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -46,13 +46,13 @@
},
{
"cell_type": "code",
"execution_count": 19,
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "1b7b6d91db8d491e952504edfda5e1ca",
"model_id": "c552329800d74192831117036889e6ce",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -63,10 +63,17 @@
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n"
]
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "7610e3d8b10e405398e4ed6e9eeac7f2",
"model_id": "62fc38b490824d23a19e2f67c956fcde",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -77,10 +84,17 @@
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n"
]
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "1721557df4944cccb0742d94a1902e7b",
"model_id": "853d950bccb646c8ace3ee41b90b6deb",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -90,6 +104,13 @@
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n"
]
}
],
"source": [
Expand Down
2 changes: 1 addition & 1 deletion recnn/data/dataset_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def prepare_dataset(df, key_to_id, frame_size, env, sort_users=False, **kwargs):
"""

df['rating'] = df['rating'].progress_apply(lambda i: 2 * (i - 2.5))
df['movieId'] = df['movieId'].progress_apply(key_to_id.get)
df['movieId'] = df['movieId'].progress_apply(lambda i: key_to_id.get(i))

users = df[['userId', 'movieId']].groupby(['userId']).size()
users = users[users > frame_size]
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
scikit-learn
tqdm
pandas
numpy
tqdm
pytest
pytest

0 comments on commit 6fe3a76

Please sign in to comment.