锚点部署
Go to file
bill_juju a8d15c8f94 modified: README.md
renamed:    dataset_for_anchor.txt -> data/dataset_for_anchor.txt
modified:   main.py
modified:   model/anchor_finder.py
2025-08-07 11:58:32 +08:00
data modified: README.md 2025-08-07 11:58:32 +08:00
model modified: README.md 2025-08-07 11:58:32 +08:00
.gitignore new file: .gitignore 2025-05-28 15:43:29 +08:00
main.py modified: README.md 2025-08-07 11:58:32 +08:00
README.md modified: README.md 2025-08-07 11:58:32 +08:00

需要的 python包: numpy

执行python main.py后自动将运行结果需要四个参数

数据格式

event_dict 级联数据, 该demo中给出生产event_dict示例生产中须自行构建event_dict event_dict可使用json或者python字典,形式如下: { event_id : [ { 'user_id': id_1, 'act_time' : time_1, }, { 'user_id': id_2, 'act_time' : time_2, }, .... ] } 其中user_id为用户唯一标识act_time为用户参与事件event_id的时间格式为时间戳

参数必选项

result_path 计算出的结果保存路径; anchor_budget m点预算

参数可选项

anchor_screen m点参与时间的筛选标准默认为1取值0-1可不填写 obs_time 可观测时间,默认为-1可不填写 max_cas_num 处理的事件数量,默认为-1可不填写