build_and_compile: Convencience to build a keras model with given specification.

Description Usage Arguments

View source: R/utils.R

Description

Convencience to build a keras model with given specification.

Usage

1
2
3
4
5
6
7
build_and_compile(
  input,
  output,
  optimizer = "adam",
  loss = "mse",
  metric = "acc"
)

Arguments

input

tensor (or keras layer_input) defining model input.

output

tensor (or keras layer_input) defining model output.

optimizer

keras optimizer (character or callable) to use.

loss

loss function (character or callable).

metric

metric to score model with.


ifrit98/R2deepR documentation built on June 19, 2020, 7:45 a.m.