neuralnetwork: Initialize a neural network

Description Usage Arguments Value Examples

View source: R/neuralnetwork.R

Description

Initialize a neural network

Usage

1
2
3
4
5
6
7
8
neuralnetwork(
  formula,
  hidden = 0,
  startweights = NULL,
  linear.output = TRUE,
  activation_fun = sig,
  dactivation_fun = dsig
)

Arguments

formula

formula

hidden

numeric vector for the number of neurons per hidden layer.

startweights

NULL, "zero" or list of matrices of the startweights.

linear.output

logic : are the outputs linear or passed through the activation_fun?

activation_fun

function : activation function for neurons.

dactivation_fun

function : derivative of the activation function.

Value

neural network (class : nn)

Examples

1
neuralnetwork(out~inputs, 1)

wiper8/AI documentation built on Dec. 23, 2021, 5:15 p.m.