Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Group: Neural Networks
See also: nninit nnvisu

Function: nnfunc
Description: nnfunc computes for a given feed forward network the result for a datavector x.

Usage: y = nnfunc (wei, unit, x)
Input:
wei n x 3 matrix of weights
unit m x 2 matrix of units
x p x k input values
Output:
y p x l output values

Example:



x = read ("bank2")       ; read bank2 data

y = (1:200).<101

;; build logit model

wei  = (1:6)~(7.*matrix(6))~normal(6)

unit = trans(#(-1,0)).*matrix(7)|trans(#(1,2))

ind  = nninit (wei, unit)

wei  = index (wei, ind)

randomize(0) 

yh   = nnfunc (wei, unit, x)

y~yh

Result:



Contents of _tmp


Group: Neural Networks
See also: nninit nnvisu

Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

(C) MD*TECH Method and Data Technologies, 21.9.2000