| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFacemorph.Stats.Model
public class Model
Loads, processes and regresses two sets of data.
| Nested Class Summary | |
|---|---|
protected  class | 
Model.DataDescription
 | 
protected  class | 
Model.ImageSetDescription
 | 
 class | 
Model.ModelException
 | 
| Field Summary | |
|---|---|
static java.lang.String | 
all
 | 
protected  Model.DataDescription | 
dependentVariables
 | 
static java.lang.String | 
equals
 | 
static java.lang.String | 
greaterthan
 | 
protected  Model.DataDescription | 
independentVariables
 | 
protected  iniFile | 
iniFile
INI data  | 
static java.lang.String | 
kFolds
 | 
static java.lang.String | 
leaveOneOut
 | 
static java.lang.String | 
lessthan
 | 
static java.lang.String | 
MOLS
 | 
static java.lang.String | 
none
 | 
static java.lang.String | 
notEqual
 | 
protected  boolean | 
outputStatistics
We are expected to provide output statistics on the methods used  | 
protected  java.io.File | 
outputStatisticsFile
File to use in providing the output statistics  | 
protected  Model.DataDescription | 
outputVariables
 | 
static java.lang.String | 
PCA
 | 
static java.lang.String | 
PLS
 | 
protected  DataReducer | 
preprocessor
A preprocessor for Data-reduction e.g.  | 
static java.lang.String | 
range
 | 
protected  Regressor | 
regressor
A regression method to apply to the data.  | 
| Constructor Summary | |
|---|---|
Model()
 | 
|
Model(iniFile in)
 | 
|
| Method Summary | |
|---|---|
protected  boolean | 
fillIniFile(iniFile in,
            java.lang.String name)
 | 
 boolean | 
initialiseFromIniFile(iniFile in)
Initialise the model using the data contained in an iniFile (i.e.  | 
static void | 
main(java.lang.String[] args)
 | 
protected  boolean | 
outputResults()
 | 
 java.lang.StringBuffer | 
outputStatistics()
 | 
protected  boolean | 
postProcess()
 | 
 double[] | 
predict(BigMat values)
Using the Model previously generated, predict a set of values.  | 
protected  boolean | 
preprocess()
 | 
 void | 
read(java.io.File f)
 | 
 boolean | 
read(iniFile in)
Read from the current position in an iniFile.  | 
protected  boolean | 
regress()
 | 
 void | 
run()
 | 
 void | 
write(java.io.File f)
 | 
 boolean | 
write(iniFile file,
      java.lang.String name)
Writes this Template to file (via a PrintStream)  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected Model.DataDescription independentVariables
protected Model.DataDescription dependentVariables
protected Model.DataDescription outputVariables
public static final java.lang.String all
public static final java.lang.String range
public static final java.lang.String equals
public static final java.lang.String lessthan
public static final java.lang.String greaterthan
public static final java.lang.String notEqual
public static final java.lang.String none
public static final java.lang.String PLS
public static final java.lang.String PCA
public static final java.lang.String MOLS
public static final java.lang.String leaveOneOut
public static final java.lang.String kFolds
protected DataReducer preprocessor
protected Regressor regressor
protected boolean outputStatistics
protected java.io.File outputStatisticsFile
protected iniFile iniFile
| Constructor Detail | 
|---|
public Model()
public Model(iniFile in)
      throws java.io.IOException
java.io.IOException| Method Detail | 
|---|
public boolean initialiseFromIniFile(iniFile in)
                              throws java.io.IOException
in - iniFile containing the data to used, the iniFile must already be in an appropriately typed Block
java.io.IOException
protected boolean fillIniFile(iniFile in,
                              java.lang.String name)
public void run()
run in interface java.lang.Runnableprotected boolean preprocess()
protected boolean regress()
protected boolean postProcess()
public double[] predict(BigMat values)
values - Input variables for the prediction
public void read(java.io.File f)
          throws java.io.FileNotFoundException,
                 java.io.IOException
java.io.FileNotFoundException
java.io.IOExceptionprotected boolean outputResults()
public java.lang.StringBuffer outputStatistics()
public void write(java.io.File f)
           throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic boolean read(iniFile in)
IniHandler
read in interface IniHandler
public boolean write(iniFile file,
                     java.lang.String name)
IniHandler
write in interface IniHandlerfile - The output ini file to fill with class data
public static void main(java.lang.String[] args)
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||