flexconn_model: FLEXCONN Model

Description Usage Arguments Value Examples

View source: R/flexconn_combined_model.R

Description

FLEXCONN Model

Usage

1
2
3
4
5
6
7
8
flexconn_model(
  prefixes = c("t1", "fl"),
  ndim = 2,
  ds = 2,
  num_filters = 128,
  kernel_size_1 = 3,
  kernel_size_2 = 5
)

Arguments

prefixes

The prefixes for each of the layers of the model.

ndim

Number of dimensions for convolution chain (2 or 3)

ds

Some fixed number???

num_filters

Nubmer of filters

kernel_size_1

Size of first kernel

kernel_size_2

Size of second kernel

Value

A keras model object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
user = Sys.getenv("USER")
if (user %in% c("johnmuschelli", "travis") &
Sys.info()["sysname"] == "Darwin"){
reticulate::use_python(paste0(
"/Library/Frameworks/Python.framework/Versions/3.5/bin/python3"))
} else {
python = system("which python", intern = TRUE)
print(python)
reticulate::use_python(python)
}
res = flexconn_model()
res = flexconn_model(prefixes = c("t1", "fl", "t2"))

neuroconductor/flexconn documentation built on Sept. 25, 2020, 10:51 a.m.