Table of Contents

Enum LinkPredictionModel<T>.LinkPredictionDecoder

Namespace
AiDotNet.NeuralNetworks.Tasks.Graph
Assembly
AiDotNet.dll

Decoder types for combining node embeddings into edge scores.

public enum LinkPredictionModel<T>.LinkPredictionDecoder

Fields

CosineSimilarity = 1

Cosine similarity: score = (z_i * z_j) / (||z_i|| ||z_j||)

Distance = 3

L2 distance: score = -||z_i - z_j||^2

DotProduct = 0

Dot product: score = z_i * z_j

Hadamard = 2

Element-wise product: score = sum(z_i * z_j)