|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.app.analyst.EncogAnalyst
public class EncogAnalyst
The Encog Analyst runs Encog Analyst Script files (EGA) to perform many common machine learning tasks. It is very much like Maven or ANT for Encog. Encog analyst files are made up of configuration information and tasks. Tasks are series of commands that make use of the configuration information to process CSV files.
Field Summary | |
---|---|
static String |
TASK_FULL
The name of the task that SHOULD everything. |
static int |
UPDATE_TIME
The update time for a download. |
Constructor Summary | |
---|---|
EncogAnalyst()
Construct the Encog analyst. |
Method Summary | |
---|---|
void |
addAnalystListener(AnalystListener listener)
Add a listener. |
void |
addCommand(Cmd cmd)
Add a command. |
void |
analyze(File file,
boolean headers,
AnalystFileFormat format)
Analyze the specified file. |
int |
determineInputCount()
Determine the input count. |
int |
determineInputFieldCount()
Determine the input field count, the fields are higher-level than columns. |
int |
determineMaxTimeSlice()
|
int |
determineMinTimeSlice()
|
int |
determineOutputCount()
Determine the output count, this is the number of output columns needed. |
int |
determineOutputFieldCount()
Determine the number of output fields. |
int |
determineTotalColumns()
|
int |
determineTotalInputFieldCount()
Determine the total input field count, minus ignored fields. |
int |
determineUniqueColumns()
Determine how many unique columns there are. |
int |
determineUniqueInputFieldCount()
Determine the unique input field count. |
int |
determineUniqueOutputFieldCount()
Determine the unique output field count. |
void |
download()
Download a raw file from the Internet. |
void |
executeTask(AnalystTask task)
Execute a task. |
void |
executeTask(String name)
Execute a task. |
int |
getLagDepth()
|
int |
getLeadDepth()
|
List<AnalystListener> |
getListeners()
|
int |
getMaxIteration()
|
MLMethod |
getMethod()
|
Map<String,String> |
getRevertData()
|
AnalystScript |
getScript()
|
AnalystUtility |
getUtility()
|
boolean |
isTimeSeries()
|
void |
load(File file)
Load the specified script file. |
void |
load(InputStream stream)
Load from an input stream. |
void |
load(String filename)
Load from the specified filename. |
void |
reanalyze(File file,
boolean headers,
AnalystFileFormat format)
Analyze the specified file. |
void |
removeAnalystListener(AnalystListener listener)
Remove a listener. |
void |
reportTraining(MLTrain train)
Report training. |
void |
reportTrainingBegin()
Report that training has begun. |
void |
reportTrainingEnd()
Report that training has ended. |
void |
save(File file)
Save the script to a file. |
void |
save(OutputStream stream)
Save the script to a stream. |
void |
save(String filename)
Save the script to a filename. |
void |
setCurrentQuantTask(QuantTask task)
Set the current task. |
void |
setMaxIteration(int i)
Set the max iterations. |
void |
setMethod(MLMethod method)
|
boolean |
shouldStopCommand()
Should the current command be stopped. |
void |
stopCurrentTask()
Stop the current task. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String TASK_FULL
public static final int UPDATE_TIME
Constructor Detail |
---|
public EncogAnalyst()
Method Detail |
---|
public void addAnalystListener(AnalystListener listener)
listener
- The listener to add.public void addCommand(Cmd cmd)
cmd
- The command to add.public void analyze(File file, boolean headers, AnalystFileFormat format)
file
- The file to analyze.headers
- True if headers are present.format
- The format of the file.public void reanalyze(File file, boolean headers, AnalystFileFormat format)
file
- The file to analyze.headers
- True if headers are present.format
- The format of the file.public int determineInputCount()
public int determineInputFieldCount()
public int determineOutputCount()
public int determineOutputFieldCount()
public int determineUniqueColumns()
public int determineUniqueInputFieldCount()
public int determineTotalInputFieldCount()
public int determineUniqueOutputFieldCount()
public void download()
public void executeTask(AnalystTask task)
task
- The task to execute.public void executeTask(String name)
name
- The name of the task to execute.public int getLagDepth()
public int getLeadDepth()
public List<AnalystListener> getListeners()
public int getMaxIteration()
public Map<String,String> getRevertData()
public AnalystScript getScript()
public void load(File file)
file
- The file to load.public void load(InputStream stream)
stream
- The stream to load from.public void load(String filename)
filename
- The filename to load from.public void removeAnalystListener(AnalystListener listener)
listener
- The listener to remove.public void reportTraining(MLTrain train)
train
- The trainer.public void reportTrainingBegin()
public void reportTrainingEnd()
public void save(File file)
file
- The file to save to.public void save(OutputStream stream)
stream
- The stream to save to.public void save(String filename)
filename
- The filename to save to.public void setCurrentQuantTask(QuantTask task)
task
- The current task.public void setMaxIteration(int i)
i
- The value for max iterations.public boolean shouldStopCommand()
public void stopCurrentTask()
public boolean isTimeSeries()
public MLMethod getMethod()
public void setMethod(MLMethod method)
method
- the method to setpublic int determineTotalColumns()
public int determineMaxTimeSlice()
public int determineMinTimeSlice()
public AnalystUtility getUtility()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |