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
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voiddecodeFromArray(double[] encoded)Decode an array to this object.intencodedArrayLength()voidencodeToArray(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.
-
-
DMelt 3.0 © DataMelt by jWork.ORG