org.encog.ml
Interface MLEncodable

All Superinterfaces:
MLMethod
All Known Implementing Classes:
BasicNetwork, FreeformNetwork, RBFNetwork

public interface MLEncodable
extends MLMethod

Defines a Machine Learning Method that can be encoded to a double array. This is very useful for certain training, such as genetic algorithms and simulated annealing.


Method Summary
 void decodeFromArray(double[] encoded)
          Decode an array to this object.
 int encodedArrayLength()
           
 void encodeToArray(double[] encoded)
          Encode the object to the specified array.
 

Method Detail

encodedArrayLength

int encodedArrayLength()
Returns:
The length of an encoded array.

encodeToArray

void encodeToArray(double[] encoded)
Encode the object to the specified array.

Parameters:
encoded - The array.

decodeFromArray

void decodeFromArray(double[] encoded)
Decode an array to this object.

Parameters:
encoded - The encoded array.


Copyright © 2014. All Rights Reserved.