linear: A linear activation function, and its derivative.

View source: R/activations-losses.R View source: R/.ipynb_checkpoints/activations-losses-checkpoint.R

linearR Documentation

A linear activation function, and its derivative.

Description

A linear activation function, and its derivative.

Usage

linear(X, deriv = FALSE)

Arguments

X

A matrix.

deriv

Set this to TRUE if you want the derivative instead of the function.

Value

X, or its derivative (a matrix of all 1s).


Greg-Hallenbeck/easy.mlp documentation built on March 10, 2023, 6:31 a.m.