知识卡片

普通读书笔记卡 · 6254.d

混合图的度数先分清边类型

理解等级:中级

同一图里既有关注用户的follows,又有加星项目的gazes,总度数会把不同关系相加。要统计群内被关注数,应过滤follows并统计入边目标;某人出度大不等于粉丝多,限制每人500个加星项目也不能限制其全部出边。指标名称应与实际关系口径一致。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      type'] == 'follows']) print # The repository owner is possibly one of the more popular users in this graph. print len([e for e in g.edges_iter(data=True) if e[2]['type'] == 'follow

    参考来源

    - 位置:《社交网站的数据挖掘与分析(原书第2版)》第7章《7.4.3 为用户添加“关注”边来扩展兴趣图谱》(spine113;extracted/OReilly精品图书系列共21册(《Javascript权威指南》、《机器学习:实用案例解析》、《编写可读代码的艺术》、《算法精解》等)/_epub-src/text/part0102.html;u117-ch07-018)。 - 结论依据:原文在“type'] == 'follows'”附近的定义、例子或代码支撑本卡核心说明:同一图里既有关注用户的follows,又有加星项目的gazes,总度数会把不同关系相加。边界按已读前提解释;示例未执行。 - 原始内容:type'] == 'follows']) print # The repository owner is possibly one of the more popular users in this graph. print len([e for e in g.edges_iter(data=True) if e[2]['type'] == 'follow