Class ANN_Values

Description
  • since: 2.0.6
  • access: public

Located in /Values.php (line 50)

ANN_Filesystem
   |
   --ANN_Values
Method Summary
[211]   public   array :  getInputsArray ()
[227]   public   array :  getOutputsArray ()
[93]   public   ANN_Values :  input ()
[153]   public   ANN_Values :  output ()
[272]   public   ANN_Values :  reset ()
[193]   public   ANN_Values :  train ()
[245]   public   void :  __wakeup ()
Methods
public  array getInputsArray () [211]

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 () [227]

Get internal saved output array

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

public  ANN_Values input () [93]

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: ANN_Exception
  • access: public
  • uses: ANN_Exception::__construct()
public  ANN_Values output () [153]

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: ANN_Exception
  • access: public
  • uses: ANN_Exception::__construct()
public  ANN_Values reset () [272]

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  ANN_Values train () [193]
  • access: public
public  void __wakeup () [245]

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 ANN_Filesystem

ANN_Filesystem::loadFromFile()
ANN_Filesystem::saveToFile()

Documentation generated on Wed, 06 Jan 2010 19:14:57 +0100 by phpDocumentor 1.4.1