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

Library: nn
See also: nnfunc2 nninit2

Quantlet: nnvisu2
Description: nnvisu2 computes the visualization for a given feed forward network by non-metric multidimensional scaling.

Usage: (xvd,verr)=nnvisu2(dis,xv)
Input:
dis n x 3 matrix of distances
xv m x 2 starting position
Output:
xvd m x 2 computed new positions

Example:
library("nn")
x = read("bank2")       ; read bank2 data
y =(1:200).<101
;; build logit model
wei  =(1:6)~(6.*matrix(6))~normal(6)
unit = trans(#(-1,0)).*matrix(7)|trans(#(1,2))
ind  = nninit2(wei, unit)
wei  = index(wei, ind)
randomize(0)
wei[,3] = abs(wei[,3])    ; most intersting connections are near 0
pos  = normal(rows(unit),2)
pos  = nnvisu2(wei, pos)
pos

Result:
Contents of pos



Author: K. Komorad, W. Haerdle, 20010117 license MD*Tech
(C) MD*TECH Method and Data Technologies, 05.02.2006