CalculateKernelCpp {graphkernels}R Documentation

An C++ implementation of graph kernels

Description

This function calculates a kernel matrix.

Usage

CalculateKernelCpp(graph_info_list, par_r, kernel_type)

Arguments

graph_info_list

a list of igraph graphs

par_r

parameters of kernels

kernel_type

type of kernel

Value

a kernel matrix of the respective kernel

Author(s)

Mahito Sugiyama

References

Sugiyama, M., Borgwardt, K. M.: Halting in Random Walk Kernels, Advances in Neural Information Processing Systems (NIPS 2015), 28, 1630-1638 (2015) https://papers.nips.cc/paper/5688-halting-in-random-walk-kernels.pdf.

Examples

data(mutag)
graph.info.list <- vector("list", length(mutag))
for (i in 1:length(mutag)) { graph.info.list[[i]] <- GetGraphInfo(mutag[[i]]) }
K <- CalculateKernelCpp(graph.info.list, 5, 11)

[Package graphkernels version 1.6.1 Index]