图机器学习基础知识——CS224W(01-Intro)

CS224W: Machine Learning with Graphs

Stanford / Winter 2021

01-Intro

  • Why Graph Machine Learning So Hard ?

    • Arbitrary size and complex topological structure (No spatial locality like grids)

    • No fixed node ordering or reference point

    • Often dynamic and have multimodal features

    在这里插入图片描述

  • CS224W & Representation Learning

    • (Supervised) Machine Learning Lifecycle: This feature, that feature. Every single time!

    • Map nodes to d-dimensional embeddings such that similar nodes in the network are embedded close together

    在这里插入图片描述

  • Different Types of Tasks

    • Node level

    • Edge-level

    • Community (subgraph) level

    • Graph-level prediction, Graph generation

    在这里插入图片描述

  • Classic Graph ML Tasks

    • Node classification: Predict a property of a node

      • Categorize online users/items
    • Link prediction: Predict whether there are missing links between two nodes

      • Knowledge graph completion
    • Graph classification: Categorize different graphs

    • Clustering: Detect if nodes from a community

      • Social circle detection
    • Other tasks

      • Graph generation: Drug discovery

      • Graph evolution: Physical simulation

  • Compoments of a Network

    • Objects: nodes, vertices N \quad N N

    • Interations: links, edges E \quad E E

    • System: network, graph G ( N , E ) \quad G(N,E) G(N,E)

  • How do you define a graph ?

    • The way you assign links will determine the nature of the question you can study
  • Directed vs. Undirected Graphs

  • Node Degrees

  • Bipartite Graph

    二部图

    • A graph whose nodes can be divided into two disjoint sets U U U and V V V such that every link connects a node in U U U to one in V V V; that is, U U U and V V V are independent sets

    • Authors-to-Papers (they authored)

    • Actors-to-Movies (they appeared in)

    在这里插入图片描述

  • Folded/Projected Bipartite Graphs

    • Create a connection between a pair of nodes if they have at least one neighbor in common

    在这里插入图片描述

  • Representing Graphs: Adjacency Matrix

    • Adjacency Matrices are Sparse

    • Networks are Sparse Graphs: Most real-world networks are sparse ( E < < E m a x E << E_{max} E<<Emax or k < < N − 1 k << N-1 k<<N1)

  • More Types of Graphs

    • Unweighted and Weighted

      在这里插入图片描述

    • Self-edges (self-loops) and Multigraph

      在这里插入图片描述

  • Connectivity of Undirected Graphs

    无向图的连通性

    • Connected (undirected) graph: Any two vertices can be joined by a path

    • Disconnected graph: Made up by two or more connected components
      在这里插入图片描述

    • 无向非连通图的邻接矩阵可以被写成分块对角矩阵的形式(block-diagonal form),因为零元素可以被限制在次对角的两个分块中

      在这里插入图片描述

  • Connectivity of Directed Graphs

    有向图连通性

    • Strongly connected directed graph: has a path from each node to every other node and vice versa (A-B and B-A)

    • Weakly connected directed graph: is (weakly) connected if we disregard the edge directions (e.g. its corresponding undirected graph is connected)

      在这里插入图片描述

    • Strongly connected components (SCCs) can be identified, but not every node is part of a nontrivial strongly connected component

      在这里插入图片描述

Supplement From Graph Representation Learning

  • Homogeneous and Heterogeneous Graph

    同质图和异质图

    • Homogeneous Graph: 节点和边的类型(关系类型)只有一种

    • Heterogeneous Graph:节点和边的类型(关系类型)不止一种

  • Graph or Network ?

    • Graph: 抽象数据结构,更关注数学层面、抽象层面的理论性质

    • Network: 抽象数据结构的实例化,更关注真实数据本身的特征与性质

  • 节点分类中,训练数据(图中的节点)打破了i.i.d.的假设,对一组相互连接的节点进行建模,而不是对一组符合i.i.d.的节点进行建模(但在Graph-level的任务中,训练数据是整张图,符合i.i.d.)

  • Link Prediction = Relational Inference

  • 24
    点赞
  • 20
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值