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 |
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
Contents of pos