Learn R Programming

snnR (version 1.0)

write.NeuralNetTools: Prepare data for NeuralNetTools

Description

Create input files and corresponding script for NeuralNetTools soft- ware (An R package at the CRAN site) to show the structure of NNs using parameters (weights and biases).

Usage

write.NeuralNetTools(w,nHidden,x,y)

Arguments

w

(numeric) parameters (weights and biases) of neural network.

nHidden

(positive integer, \(1\times h\)) matrix, h indicates the number of hidden-layers and nHidden[1,h] indicates the neurons of the h-th hidden-layer.

x

((numeric, \(n \times p\)) incidence matrix.

y

(numeric, \(n\)) the response data-vector.

Value

Input data for NeuralNetTools.

References

Beck MW. 2015. NeuralNetTools: Visualization and Analysis Tools for Neural Networks. Version 1.5.0. https://cran.rstudio.com/package=NeuralNetTools

Examples

Run this code
# NOT RUN {
  library(NeuralNetTools)
  optstru=write.NeuralNetTools(w =network$wDNNs,nHidden =nHidden ,x = x,y=y )
  plotnet(optstru$w_re,struct = optstru$structure)
# }

Run the code above in your browser using DataLab