|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.app.analyst.wizard.AnalystWizard
public class AnalystWizard
The Encog Analyst Wizard can be used to create Encog Analyst script files from a CSV file. This class is typically used by the Encog Workbench, but it can easily be used from any program to create a starting point for an Encog Analyst Script. Several items must be provided to the wizard. Desired Machine Learning Method: This is the machine learning method that you would like the wizard to use. This might be a neural network, SVM or other supported method. Normalization Range: This is the range that the data should be normalized into. Some machine learning methods perform better with different ranges. The two ranges supported by the wizard are -1 to 1 and 0 to 1. Goal: What are we trying to accomplish. Is this a classification, regression or autoassociation problem.
| Field Summary | |
|---|---|
static int |
DEFAULT_EVAL_PERCENT
The default evaluation percent. |
static double |
DEFAULT_TRAIN_ERROR
The default training error. |
static int |
DEFAULT_TRAIN_PERCENT
The default training percent. |
static String |
FILE_BALANCE
The balanced file. |
static String |
FILE_CLUSTER
The clustered file. |
static String |
FILE_EVAL
The evaluation file. |
static String |
FILE_EVAL_NORM
The eval file normalization file. |
static String |
FILE_ML
The machine learning file. |
static String |
FILE_NORMALIZE
The normalized file. |
static String |
FILE_OUTPUT
The output file. |
static String |
FILE_RANDOM
The randomized file. |
static String |
FILE_RAW
The raw file. |
static String |
FILE_TRAIN
The training file. |
static String |
FILE_TRAINSET
The training set. |
| Constructor Summary | |
|---|---|
AnalystWizard(EncogAnalyst theAnalyst)
Construct the analyst wizard. |
|
| Method Summary | |
|---|---|
int |
getEvidenceSegements()
|
AnalystGoal |
getGoal()
|
int |
getLagWindowSize()
|
int |
getLeadWindowSize()
|
double |
getMaxError()
|
WizardMethodType |
getMethodType()
|
HandleMissingValues |
getMissing()
|
NormalizeRange |
getRange()
|
AnalystField |
getTargetField()
|
boolean |
isIncludeTargetField()
|
boolean |
isNaiveBayes()
|
boolean |
isTaskBalance()
|
boolean |
isTaskCluster()
|
boolean |
isTaskNormalize()
|
boolean |
isTaskRandomize()
|
boolean |
isTaskSegregate()
|
void |
reanalyze()
Reanalyze column ranges. |
void |
setEvidenceSegements(int evidenceSegements)
|
void |
setGoal(AnalystGoal theGoal)
Set the goal. |
void |
setIncludeTargetField(boolean theIncludeTargetField)
|
void |
setLagWindowSize(int theLagWindowSize)
|
void |
setLeadWindowSize(int theLeadWindowSize)
|
void |
setMaxError(double maxError)
|
void |
setMethodType(WizardMethodType theMethodType)
|
void |
setMissing(HandleMissingValues missing)
|
void |
setNaiveBayes(boolean naiveBayes)
|
void |
setRange(NormalizeRange theRange)
|
void |
setTargetField(AnalystField theTargetField)
Set the target field. |
void |
setTargetField(String theTargetField)
|
void |
setTaskBalance(boolean theTaskBalance)
|
void |
setTaskCluster(boolean theTaskCluster)
|
void |
setTaskNormalize(boolean theTaskNormalize)
|
void |
setTaskRandomize(boolean theTaskRandomize)
|
void |
setTaskSegregate(boolean theTaskSegregate)
|
void |
wizard(File analyzeFile,
boolean b,
AnalystFileFormat format)
Analyze a file. |
void |
wizard(URL url,
File saveFile,
File analyzeFile,
boolean b,
AnalystFileFormat format)
Analyze a file at the specified URL. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_TRAIN_PERCENT
public static final int DEFAULT_EVAL_PERCENT
public static final double DEFAULT_TRAIN_ERROR
public static final String FILE_RAW
public static final String FILE_NORMALIZE
public static final String FILE_RANDOM
public static final String FILE_TRAIN
public static final String FILE_EVAL
public static final String FILE_EVAL_NORM
public static final String FILE_TRAINSET
public static final String FILE_ML
public static final String FILE_OUTPUT
public static final String FILE_BALANCE
public static final String FILE_CLUSTER
| Constructor Detail |
|---|
public AnalystWizard(EncogAnalyst theAnalyst)
theAnalyst - The analyst to use.| Method Detail |
|---|
public final AnalystGoal getGoal()
public final int getLagWindowSize()
public final int getLeadWindowSize()
public final WizardMethodType getMethodType()
public final NormalizeRange getRange()
public final AnalystField getTargetField()
public final boolean isIncludeTargetField()
public final boolean isTaskBalance()
public final boolean isTaskCluster()
public final boolean isTaskNormalize()
public final boolean isTaskRandomize()
public final boolean isTaskSegregate()
public final void reanalyze()
public final void setGoal(AnalystGoal theGoal)
theGoal - The goal.public final void setIncludeTargetField(boolean theIncludeTargetField)
theIncludeTargetField - the includeTargetField to setpublic final void setLagWindowSize(int theLagWindowSize)
theLagWindowSize - the lagWindowSize to setpublic final void setLeadWindowSize(int theLeadWindowSize)
theLeadWindowSize - the leadWindowSize to setpublic final void setMethodType(WizardMethodType theMethodType)
theMethodType - the methodType to setpublic final void setRange(NormalizeRange theRange)
theRange - the range to setpublic final void setTargetField(AnalystField theTargetField)
theTargetField - The target field.public final void setTaskBalance(boolean theTaskBalance)
theTaskBalance - the taskBalance to setpublic final void setTaskCluster(boolean theTaskCluster)
theTaskCluster - the taskCluster to setpublic final void setTaskNormalize(boolean theTaskNormalize)
theTaskNormalize - the taskNormalize to setpublic final void setTaskRandomize(boolean theTaskRandomize)
theTaskRandomize - the taskRandomize to setpublic final void setTaskSegregate(boolean theTaskSegregate)
theTaskSegregate - the taskSegregate to set
public final void wizard(File analyzeFile,
boolean b,
AnalystFileFormat format)
analyzeFile - The file to analyze.b - True if there are headers.format - The file format.
public final void wizard(URL url,
File saveFile,
File analyzeFile,
boolean b,
AnalystFileFormat format)
url - The URL to analyze.saveFile - The save file.analyzeFile - The Encog analyst file.b - True if there are headers.format - The file format.public HandleMissingValues getMissing()
public void setMissing(HandleMissingValues missing)
missing - the missing to setpublic boolean isNaiveBayes()
public void setNaiveBayes(boolean naiveBayes)
naiveBayes - the naiveBayes to setpublic int getEvidenceSegements()
public void setEvidenceSegements(int evidenceSegements)
evidenceSegements - the evidenceSegements to setpublic double getMaxError()
public void setMaxError(double maxError)
public void setTargetField(String theTargetField)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||