mdbs/README.md
2025-08-07 12:01:12 +08:00

1.0 KiB
Raw Blame History

需要的 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_num m点数量 默认为-1若不为-1则优先使用anchor_num不使用anchor_budget

参数可选项

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