Skip to content

Commit fc0005a

Browse files
committed
fix(eval): search top k
1 parent efd2c0d commit fc0005a

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

evaluation/scripts/longmemeval/lme_search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def process_user(lme_df, conv_idx, frame, version, top_k=20):
179179
mode="local",
180180
db_name=f"lme_{frame}-{version}-{user_id.replace('_', '')}",
181181
user_id=user_id,
182-
top_k=20,
182+
top_k=top_k,
183183
mem_cube_path=f"results/lme/{frame}-{version}/storages/{user_id}",
184184
mem_cube_config_path="configs/mem_cube_config.json",
185185
mem_os_config_path="configs/mos_memos_config.json",

evaluation/scripts/run_lme_eval.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
# Common parameters for all scripts
44
LIB="memos-local"
5-
VERSION="071503"
5+
VERSION="071701"
66
WORKERS=10
7-
TOPK=20
7+
TOPK=40
88

99
# echo "Running lme_ingestion.py..."
1010
# CUDA_VISIBLE_DEVICES=0 python scripts/longmemeval/lme_ingestion.py --lib $LIB --version $VERSION --workers $WORKERS
@@ -34,10 +34,10 @@ if [ $? -ne 0 ]; then
3434
exit 1
3535
fi
3636

37-
echo "Running lme_metrics.py..."
38-
CUDA_VISIBLE_DEVICES=0 python scripts/longmemeval/lme_metrics.py --lib $LIB --version $VERSION
37+
echo "Running lme_metric.py..."
38+
CUDA_VISIBLE_DEVICES=0 python scripts/longmemeval/lme_metric.py --lib $LIB --version $VERSION
3939
if [ $? -ne 0 ]; then
40-
echo "Error running lme_metrics.py"
40+
echo "Error running lme_metric.py"
4141
exit 1
4242
fi
4343

src/memos/memories/textual/tree_text_memory/organize/reorganizer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
import time
44
import traceback
55

6+
from collections import Counter, defaultdict
67
from concurrent.futures import ThreadPoolExecutor, as_completed
78
from queue import PriorityQueue
89
from typing import Literal
9-
from collections import Counter, defaultdict
10+
1011
import numpy as np
1112
import schedule
1213

0 commit comments

Comments
 (0)