Skip to main content
. 2023 Apr 21;23(8):4168. doi: 10.3390/s23084168
Algorithm 1: GraphSAGE algorithm. The model first takes the node features as inputs. For each layer, the model aggregates the information from neighbors and then updates the hidden state of each node vi.

Input: G=(V,E): The graph G with set of nodes V and set of edges E.

            xi: The input features of node vi

            L: The depth of hidden layers, l{1L}

            AGGk: Differentiable aggregator functions

            N(vi): The set of neighbors of node vi.

Output: Zi: Vector representations for vi.

hi0xi,viV

graphic file with name sensors-23-04168-i001.jpg

ZihiL,viV