gs.xfm.apply_model: Apply Graph Model

Description Usage Arguments Value Author(s)

Description

A function to streamline applying a model over a set of graphs.

Usage

1
gs.xfm.apply_model(graphs, func, model.opts = list(), ...)

Arguments

graphs

the set of n graphs with v vertices. Can be either:

  • [[n]][v, v]a list of n graphs with v vertices.

  • [n, v, v]an array of n graphs with v vertices.

model.opts

the hyper-parameter options to pass to your model as a keyworded list. Defaults to list(), or no hyper-parameters.

...

trailing args.

model.func

the model function to apply to each of the n graphs. Should take as its first argument a [v, v] graph adjacency matrix, and return a model object.

Value

models [[n]] list where models[[i]] corresponds to the model model.func applied to graphs[[i]].

Author(s)

Eric Bridgeford


neurodata/graphstats documentation built on May 14, 2019, 5:19 p.m.