Class Values

Description

Implements interfaces:

  • since: 2.0.6
  • access: public

Located in /Values.php (line 57)

Filesystem
   |
   --Values
Method Summary
[233]   public   array :  getInputsArray ()
[247]   public   array :  getOutputsArray ()
[121]   public   Values :  input ()
[179]   public   Values :  output ()
[288]   public   Values :  reset ()
[217]   public   Values :  train ()
[263]   public   void :  __wakeup ()
Methods
public  array getInputsArray () [233]

Get internal saved input array

Actually there is no reason to call this method in your application. This method is used by \ANN\Network only.

public  array getOutputsArray () [247]

Get internal saved output array

Actually there is no reason to call this method in your application. This method is used by Network only.

public  Values input () [121]

Input values

List all input values comma separated

  1.  $objValues new \ANN\Values;
  2.  
  3.  $objValues->train()
  4.            ->input(0.120.110.15)
  5.            ->output(0.56);

  1.  $objValues new \ANN\Values;
  2.  
  3.  $objValues->input(0.120.110.15)
  4.            ->input(0.130.120.16)
  5.            ->input(0.140.130.17);

  • throws: Exception
  • access: public
  • uses: Exception::__construct()
public  Values output () [179]

Output values

List all output values comma separated. Before you can call this method you have to call input(). After calling output() you cannot call the same method again. You have to call input() again first.

  1.  $objValues new \ANN\Values;
  2.  
  3.  $objValues->train()
  4.            ->input(0.120.110.15)
  5.            ->output(0.56);

  • throws: Exception
  • access: public
  • uses: Exception::__construct()
public  Values reset () [288]

Reset saved input and output values

All internal saved input and output values will be deleted after calling reset(). If train() was called before, train state does not change by calling reset().

  1.  $objValues new \ANN\Values;
  2.  
  3.  $objValues->train()
  4.            ->input(0.120.110.15)
  5.            ->output(0.56)
  6.            ->reset()
  7.            ->input(0.120.110.15)
  8.            ->output(0.56);

  • access: public
public  Values train () [217]
  • access: public
public  void __wakeup () [263]

Unserializing \ANN\Values

After calling unserialize the train mode is set to false. Therefore it is possible to use a saved object of \ANN\Values to use inputs not for training purposes.

You would not use unserialize in your application but you can call loadFromFile() to load the saved object to your application.

  • access: public

Inherited Methods

Inherited From Filesystem

Filesystem::loadFromFile()
Filesystem::saveToFile()

Documentation generated on Wed, 15 Jun 2011 09:45:48 +0200 by phpDocumentor 1.4.1