small fixes

This commit is contained in:
Robert 2021-03-27 11:58:44 +01:00
parent ea377961c3
commit d560d04146
2 changed files with 2 additions and 2 deletions

View File

@ -168,7 +168,7 @@
"\n",
"Average number of ratings per item is 59.453.\n",
"\n",
"Data sparsity (% of missing entries) is 6.3047%.\n"
"Data sparsity (% of missing entries) is 93.6953%.\n"
]
}
],
@ -179,7 +179,7 @@
"\n",
"print(f'Average number of ratings per user is {round(ratings/users,4)}. \\n')\n",
"print(f'Average number of ratings per item is {round(ratings/items,4)}.\\n')\n",
"print(f'Data sparsity (% of missing entries) is {round(100*ratings/(users*items),4)}%.')"
"print(f'Data sparsity (% of missing entries) is {round(100*(1-ratings/(users*items)),4)}%.')"
]
},
{

Binary file not shown.