predict.ANN: Predict the output with an ANN already optimised.

Description Usage Arguments Author(s) Examples

View source: R/ANNGA.R

Description

Once the Artificial Neural Network is optimized, the output can be predicted.

Usage

1
2
## S3 method for class 'ANN'
predict(object, input,...)

Arguments

object

Object of class "ANN", an already optimized ANN.

input

Input inserted into the ANN to predict outputs.

...

not used

Author(s)

Francis Roy-Desrosiesrs

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#use the command demo(ANN) to see how dataANN was created 
data("dataANN")

par( mfrow=c(2,2) )
                plot(sin(t), main="sin")
                plot(noisy_sin, main="sin + 0.5 * rnorm")
                plot(output, main="sin + 0.5 * rnorm in [0,1]")
                plot(input, main="input should be in the range [0,1]")


demoResultANN

ANNObject<-demoResultANN[[3]]


ANNObject 	#or print(ANNObject)
plot(ANNObject)


p		<-predict( ANNObject, input )

#printing 'p'
p
plot(p$predict,main="Predicted Output")

ANN documentation built on May 31, 2017, 2:23 a.m.