mlp_net-export-import: Export and import multilayer perceptron network to/from a...

Description Usage Arguments Details Value See Also Examples

Description

These functions can be used to export and import multilayer perceptron network to/from a text file in FCNN format.

Usage

1
2
3
mlp_export_fcnn(fname, net)

mlp_import_fcnn(fname)

Arguments

fname

character string with the filename

net

an object of mlp_net class

Details

Files are organised as follows:

Value

mlp_export_fcnn returns logical value, TRUE if export was successful, FALSE otherwise.

mlp_import_fcnn returns an object of mlp_net class or NULL, if import failed.

See Also

mlp_net for network representation details.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# create a 2-3-1 network
net <- mlp_net(c(2, 3, 1))
# randomise weights
net <- mlp_rnd_weights(net)
# show the network
show(net)
# export network
mlp_export_fcnn("test.net", net)
# show the output file
file.show("test.net")
# import network
net2 <- mlp_import_fcnn("test.net")
# show the imported network
show(net2)

FCNN4R documentation built on May 29, 2017, 4:26 p.m.