org.encog.ml
Class BasicML
- java.lang.Object
-
- org.encog.ml.BasicML
-
- All Implemented Interfaces:
- java.io.Serializable, MLMethod, MLProperties
- Direct Known Subclasses:
- AbstractPNN, ART, BAM, BasicNetwork, BasicPopulation, BasicUniverse, BayesianNetwork, CPN, FreeformNetwork, HiddenMarkovModel, RBFNetwork, SOM, SVM, ThermalNetwork
public abstract class BasicML extends java.lang.Object implements MLMethod, MLProperties, java.io.Serializable
A class that provides basic property functionality for the MLProperties interface.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description BasicML()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description java.util.Map<java.lang.String,java.lang.String>getProperties()doublegetPropertyDouble(java.lang.String name)Get the specified property as a double.longgetPropertyLong(java.lang.String name)Get the specified property as a long.java.lang.StringgetPropertyString(java.lang.String name)Get the specified property as a string.voidsetProperty(java.lang.String name, double d)Set a property as a double.voidsetProperty(java.lang.String name, long l)Set a property as a long.voidsetProperty(java.lang.String name, java.lang.String value)Set a property as a double.abstract voidupdateProperties()Update any objeccts when a property changes.
-
-
-
Method Detail
-
getProperties
public java.util.Map<java.lang.String,java.lang.String> getProperties()
- Specified by:
getPropertiesin interfaceMLProperties- Returns:
- A map of all properties.
-
getPropertyDouble
public double getPropertyDouble(java.lang.String name)
Get the specified property as a double.- Specified by:
getPropertyDoublein interfaceMLProperties- Parameters:
name- The name of the property.- Returns:
- The property as a double.
-
getPropertyLong
public long getPropertyLong(java.lang.String name)
Get the specified property as a long.- Specified by:
getPropertyLongin interfaceMLProperties- Parameters:
name- The name of the specified property.- Returns:
- The value of the specified property.
-
getPropertyString
public java.lang.String getPropertyString(java.lang.String name)
Get the specified property as a string.- Specified by:
getPropertyStringin interfaceMLProperties- Parameters:
name- The name of the property.- Returns:
- The value of the property.
-
setProperty
public void setProperty(java.lang.String name, double d)Set a property as a double.- Specified by:
setPropertyin interfaceMLProperties- Parameters:
name- The name of the property.d- The value of the property.
-
setProperty
public void setProperty(java.lang.String name, long l)Set a property as a long.- Specified by:
setPropertyin interfaceMLProperties- Parameters:
name- The name of the property.l- The value of the property.
-
setProperty
public void setProperty(java.lang.String name, java.lang.String value)Set a property as a double.- Specified by:
setPropertyin interfaceMLProperties- Parameters:
name- The name of the property.value- The value of the property.
-
updateProperties
public abstract void updateProperties()
Description copied from interface:MLPropertiesUpdate any objeccts when a property changes.- Specified by:
updatePropertiesin interfaceMLProperties
-
-
DMelt 3.0 © DataMelt by jWork.ORG