Skip to content

Commit

Permalink
Use actual recommender smile degree now
Browse files Browse the repository at this point in the history
  • Loading branch information
Jensdboc committed Jan 1, 2024
1 parent 1cb1640 commit 60df831
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions experiments/UserData/processData.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 1,
"metadata": {
"ExecuteTime": {
"end_time": "2023-12-27T14:38:07.208570100Z",
Expand All @@ -20,7 +20,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 2,
"metadata": {
"ExecuteTime": {
"end_time": "2023-12-27T14:48:33.003116200Z",
Expand Down Expand Up @@ -83,7 +83,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 3,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -133,7 +133,7 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": 4,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -201,15 +201,15 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 5,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Happiness first part \t = 0.15195369030390737\n",
"Happiness second part \t = 0.12662807525325614\n"
"Happiness first part \t = 0.2347856359841381\n",
"Happiness second part \t = 0.17478925298500678\n"
]
}
],
Expand All @@ -222,8 +222,8 @@
" if key[-1] == \"A\":\n",
" min_len = min(len(values[0]), len(values[1]))\n",
" length_A += min_len\n",
" happiness_first_part += sum(values[0][:min_len//2])\n",
" happiness_second_part += sum(values[0][min_len//2:min_len])\n",
" happiness_first_part += sum(values[1][:min_len//2])\n",
" happiness_second_part += sum(values[1][min_len//2:min_len])\n",
"\n",
"happiness_first_part /= length_A\n",
"happiness_second_part /= length_A\n",
Expand Down

0 comments on commit 60df831

Please sign in to comment.