Learn R Programming

snnR (version 1.0)

initw: Initialize weights and biases of a neural network.

Description

Function to initialize the weights and biases in a neural network.

Usage

initw(nHidden, nvaibles)

Arguments

nHidden

(positive integer, \(1\times h\)) matrix that indicates number of neurons and number layers of neural network.

nvaibles

(positive integer) number of parameters to be estimate including only weights and biases.

Value

A list containing initial values for weights and biases.