org.encog.app.generate
Class EncogCodeGeneration
- java.lang.Object
-
- org.encog.app.generate.EncogCodeGeneration
-
public class EncogCodeGeneration extends java.lang.ObjectPerform Encog code generation. Encog is capable of generating code from several different objects. This code generation will be to the specified target language.
-
-
Constructor Summary
Constructors Constructor and Description EncogCodeGeneration(TargetLanguage theTargetLanguage)Construct the generation object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidgenerate(EncogAnalyst analyst)Generate the code from Encog Analyst.voidgenerate(java.io.File method, java.io.File data)Generate from a method and data.TargetLanguagegetTargetLanguage()booleanisEmbedData()static booleanisSupported(MLMethod method)Is the specified method supported for code generation?java.lang.Stringsave()Save the contents to a string.voidsave(java.io.File file)Save the contents to the specified file.voidsetEmbedData(boolean embedData)Set if data should be embeded.
-
-
-
Constructor Detail
-
EncogCodeGeneration
public EncogCodeGeneration(TargetLanguage theTargetLanguage)
Construct the generation object.- Parameters:
theTargetLanguage- The target language.
-
-
Method Detail
-
isSupported
public static boolean isSupported(MLMethod method)
Is the specified method supported for code generation?- Parameters:
method- The specified method.- Returns:
- True, if the specified method is supported.
-
generate
public void generate(EncogAnalyst analyst)
Generate the code from Encog Analyst.- Parameters:
analyst- The Encog Analyst object to use for code generation.
-
generate
public void generate(java.io.File method, java.io.File data)Generate from a method and data.- Parameters:
method- The machine learning method to generate from.data- The data to use perform generation.
-
getTargetLanguage
public TargetLanguage getTargetLanguage()
- Returns:
- the targetLanguage
-
isEmbedData
public boolean isEmbedData()
- Returns:
- True, if data should be embeded.
-
save
public java.lang.String save()
Save the contents to a string.- Returns:
- The contents.
-
save
public void save(java.io.File file)
Save the contents to the specified file.- Parameters:
file- The file to save to.
-
setEmbedData
public void setEmbedData(boolean embedData)
Set if data should be embeded.- Parameters:
embedData- True, if data should embeded.
-
-
DMelt 3.0 © DataMelt by jWork.ORG