to_output: Create Output Layer

Description Usage Arguments Value

View source: R/2-layers-in-out.R

Description

This function automatically creates an output layer for a provided matrix object.

Usage

1
to_output(object, y, name = NULL, ...)

Arguments

object

A keras model.

y

A matrix or list of matrices. The output data.

name

A string or character vector. The name(s) of the layer.

...

Arguments passed to keras::layer_dense.

Value

A layer object (or list of layer objects).


tpq/caress documentation built on March 11, 2021, 8:03 p.m.