|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable<java.lang.Object,java.lang.Object>
java.util.Properties
at.tuwien.ifs.somtoolbox.properties.SOMProperties
public class SOMProperties
Properties for SOM training.
Nested Class Summary | |
---|---|
class |
SOMProperties.DatumToUnitMapping
|
static class |
SOMProperties.SelectedClassMode
|
Field Summary | |
---|---|
private double[] |
adaptiveCoordinatesThreshold
|
private boolean |
batchSom
|
private java.lang.String |
classInfoFileName
|
private java.util.Vector<SOMProperties.DatumToUnitMapping> |
datumToUnitMappings
|
static double |
defaultLearnRate
|
private int |
dumpEvery
TODO: move to FileProperties |
private Layer.GridLayout |
gridLayout
|
private Layer.GridTopology |
gridTopology
|
private java.lang.String |
growthQualityMeasureName
|
private double |
learnrate
|
private static java.lang.String |
METRIC_PACKAGE
|
private java.lang.String |
metricName
|
private int |
minimumFeatureDensity
|
private int |
neighbourWidth
|
private int |
numCycles
|
private int |
numIterations
|
(package private) static com.martiansoftware.jsap.FlaggedOption |
OPTION_ADAPTIVE_COORDINATES_THRESHOLD
|
(package private) static com.martiansoftware.jsap.FlaggedOption |
OPTION_BATCH_SOM
|
(package private) static com.martiansoftware.jsap.FlaggedOption |
OPTION_BATCH_SOM_NEIGHBOUR_WIDTH
|
(package private) static com.martiansoftware.jsap.FlaggedOption |
OPTION_CLASS_SELECTION_MODE
|
(package private) static com.martiansoftware.jsap.FlaggedOption |
OPTION_CLASSES_SELECTED
|
(package private) static com.martiansoftware.jsap.FlaggedOption |
OPTION_CLASSINFOFILE
|
(package private) static com.martiansoftware.jsap.FlaggedOption |
OPTION_DATUM_TO_UNIT_MAPPING
|
(package private) static com.martiansoftware.jsap.FlaggedOption |
OPTION_DUMP_EVERY
|
(package private) static com.martiansoftware.jsap.FlaggedOption |
OPTION_GRID_LAYOUT
|
(package private) static com.martiansoftware.jsap.FlaggedOption |
OPTION_GRID_TOPOLOGY
|
(package private) static com.martiansoftware.jsap.FlaggedOption |
OPTION_GROWTH_QUALITY
|
(package private) static com.martiansoftware.jsap.FlaggedOption |
OPTION_LEARNRATE
|
(package private) static com.martiansoftware.jsap.FlaggedOption |
OPTION_METRIC_NAME
|
(package private) static com.martiansoftware.jsap.FlaggedOption |
OPTION_MINIMUM_FEATURE_DENSITY
|
(package private) static com.martiansoftware.jsap.FlaggedOption |
OPTION_NUM_CYCLES
|
(package private) static com.martiansoftware.jsap.FlaggedOption |
OPTION_NUM_ITERATIONS
|
(package private) static com.martiansoftware.jsap.FlaggedOption |
OPTION_SIGMA
|
(package private) static com.martiansoftware.jsap.FlaggedOption |
OPTION_TAU
|
(package private) static com.martiansoftware.jsap.FlaggedOption |
OPTION_USE_PCA
|
(package private) static com.martiansoftware.jsap.FlaggedOption |
OPTION_XSIZE
|
(package private) static com.martiansoftware.jsap.FlaggedOption |
OPTION_YSIZE
|
(package private) static com.martiansoftware.jsap.FlaggedOption |
OPTION_ZSIZE
|
static java.lang.String |
propertiesFileNameSuffix
|
static java.lang.String |
QUALITY_PACKAGE
|
private long |
randomSeed
|
private java.util.ArrayList<java.lang.String> |
selectedClasses
|
private SOMProperties.SelectedClassMode |
selectedClassMode
|
private static long |
serialVersionUID
|
private double |
sigma
|
(package private) static com.martiansoftware.jsap.FlaggedOption[] |
SOM_BATCH_OPTIONS
|
(package private) static com.martiansoftware.jsap.FlaggedOption[] |
SOM_GRID_OPTIONS
|
(package private) static com.martiansoftware.jsap.FlaggedOption[] |
SOM_OTHERS
|
(package private) static com.martiansoftware.jsap.FlaggedOption[] |
SOM_TRAINING_OPTIONS
|
private double |
tau
|
private boolean |
usePCA
|
static java.lang.String |
WORKING_DIRECTORY
|
private int |
xSize
|
private int |
ySize
|
private int |
zSize
|
Fields inherited from class java.util.Properties |
---|
defaults |
Constructor Summary | |
---|---|
SOMProperties(int xSize,
int ySize,
int numIterations,
double lernrate)
|
|
SOMProperties(int xSize,
int ySize,
int zSize,
long seed,
int trainingCycles,
int trainingIterations,
double lernrate,
double sigma,
double tau,
java.lang.String metric,
boolean usePCA)
|
|
SOMProperties(int xSize,
int ySize,
int zSize,
long seed,
int trainingCycles,
int trainingIterations,
int dumpEvery,
double lernrate,
double sigma,
double tau,
java.lang.String metric,
boolean usePCA)
|
|
SOMProperties(int xSize,
int ySize,
long seed,
int numCycles,
int numIterations,
double learnrate,
double sigma,
double tau,
java.lang.String metricName,
boolean usePCA)
|
|
SOMProperties(java.util.Properties properties)
|
|
SOMProperties(java.lang.String fname)
Loads and encapsulated properties for the SOM training process. |
Method Summary | |
---|---|
double[] |
adaptiveCoordinatesTreshold()
|
boolean |
batchSom()
Returns the batch_som status. |
java.util.Vector<SOMProperties.DatumToUnitMapping> |
datumToUnitMappings()
|
java.lang.String |
getClassInfoFileName()
|
int |
getDumpEvery()
Default = -1 --> do not dump. |
Layer.GridLayout |
getGridLayout()
|
Layer.GridTopology |
getGridTopology()
|
int |
getMinimumFeatureDensity()
|
java.util.ArrayList<java.lang.String> |
getSelectedClasses()
Returns an ArrayList of Strings containing the class names which should be excluded from training. |
SOMProperties.SelectedClassMode |
getSelectedClassMode()
|
java.lang.String |
growthQualityMeasureName()
Returns the name of the used quality measure. |
double |
learnrate()
Returns the learnrate. |
java.lang.String |
metricName()
Returns the name of the used metric. |
int |
neighbourWidth()
Returns the neighbour_width. |
int |
numCycles()
Returns the number of training cycles. |
int |
numIterations()
Returns the number of training iterations. |
private void |
parse()
|
boolean |
pca()
|
long |
randomSeed()
Returns the random seed. FIXME: this is a duplicate to FileProperties.randomSeed() |
double |
sigma()
Returns sigma determining the neighbourhood radius. |
double |
tau()
Returns tau determining the desired data representation granularity. |
int |
trainedIterations(int numVectors)
Return the number of iterations really trained, either using numIterations or numCycles ,
whichever value is set. |
private void |
validatePropertyValues()
|
void |
writeToFile(java.lang.String dataName,
java.lang.String outputDir,
boolean normalised)
Writes the properties to a file. |
int |
xSize()
Returns the number of units in horizontal direction. |
int |
ySize()
Returns the number of units in vertical direction. |
int |
zSize()
Returns the number of units in z-direction. |
Methods inherited from class java.util.Properties |
---|
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames |
Methods inherited from class java.util.Hashtable |
---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
static final com.martiansoftware.jsap.FlaggedOption OPTION_XSIZE
static final com.martiansoftware.jsap.FlaggedOption OPTION_YSIZE
static final com.martiansoftware.jsap.FlaggedOption OPTION_ZSIZE
static final com.martiansoftware.jsap.FlaggedOption OPTION_LEARNRATE
static final com.martiansoftware.jsap.FlaggedOption OPTION_SIGMA
static final com.martiansoftware.jsap.FlaggedOption OPTION_NUM_ITERATIONS
static final com.martiansoftware.jsap.FlaggedOption OPTION_NUM_CYCLES
static final com.martiansoftware.jsap.FlaggedOption OPTION_METRIC_NAME
static final com.martiansoftware.jsap.FlaggedOption OPTION_TAU
static final com.martiansoftware.jsap.FlaggedOption OPTION_GROWTH_QUALITY
static final com.martiansoftware.jsap.FlaggedOption[] SOM_TRAINING_OPTIONS
static final com.martiansoftware.jsap.FlaggedOption OPTION_BATCH_SOM
static final com.martiansoftware.jsap.FlaggedOption OPTION_BATCH_SOM_NEIGHBOUR_WIDTH
static final com.martiansoftware.jsap.FlaggedOption[] SOM_BATCH_OPTIONS
static final com.martiansoftware.jsap.FlaggedOption OPTION_USE_PCA
static final com.martiansoftware.jsap.FlaggedOption OPTION_DUMP_EVERY
static final com.martiansoftware.jsap.FlaggedOption OPTION_ADAPTIVE_COORDINATES_THRESHOLD
static final com.martiansoftware.jsap.FlaggedOption OPTION_MINIMUM_FEATURE_DENSITY
static final com.martiansoftware.jsap.FlaggedOption OPTION_DATUM_TO_UNIT_MAPPING
static final com.martiansoftware.jsap.FlaggedOption OPTION_CLASS_SELECTION_MODE
static final com.martiansoftware.jsap.FlaggedOption OPTION_CLASSES_SELECTED
static final com.martiansoftware.jsap.FlaggedOption OPTION_CLASSINFOFILE
static final com.martiansoftware.jsap.FlaggedOption[] SOM_OTHERS
static final com.martiansoftware.jsap.FlaggedOption OPTION_GRID_LAYOUT
static final com.martiansoftware.jsap.FlaggedOption OPTION_GRID_TOPOLOGY
static final com.martiansoftware.jsap.FlaggedOption[] SOM_GRID_OPTIONS
public static final java.lang.String WORKING_DIRECTORY
private static final java.lang.String METRIC_PACKAGE
public static final java.lang.String QUALITY_PACKAGE
public static final double defaultLearnRate
public static final java.lang.String propertiesFileNameSuffix
private static final long serialVersionUID
private boolean batchSom
private int neighbourWidth
private double learnrate
private java.lang.String metricName
private java.lang.String growthQualityMeasureName
private int numCycles
private int numIterations
private int dumpEvery
FileProperties
private long randomSeed
private double sigma
private double tau
private int xSize
private int ySize
private int zSize
private Layer.GridTopology gridTopology
private Layer.GridLayout gridLayout
private boolean usePCA
private java.util.Vector<SOMProperties.DatumToUnitMapping> datumToUnitMappings
private java.util.ArrayList<java.lang.String> selectedClasses
private java.lang.String classInfoFileName
private SOMProperties.SelectedClassMode selectedClassMode
private int minimumFeatureDensity
private double[] adaptiveCoordinatesThreshold
Constructor Detail |
---|
public SOMProperties(int xSize, int ySize, int zSize, long seed, int trainingCycles, int trainingIterations, int dumpEvery, double lernrate, double sigma, double tau, java.lang.String metric, boolean usePCA) throws PropertiesException
PropertiesException
public SOMProperties(int xSize, int ySize, int zSize, long seed, int trainingCycles, int trainingIterations, double lernrate, double sigma, double tau, java.lang.String metric, boolean usePCA) throws PropertiesException
PropertiesException
public SOMProperties(int xSize, int ySize, int numIterations, double lernrate) throws PropertiesException
PropertiesException
public SOMProperties(int xSize, int ySize, long seed, int numCycles, int numIterations, double learnrate, double sigma, double tau, java.lang.String metricName, boolean usePCA) throws PropertiesException
PropertiesException
public SOMProperties(java.lang.String fname) throws PropertiesException
fname
- name of the properties file.
PropertiesException
- thrown if properties file could not be opened or the values of the properties are
illegal.public SOMProperties(java.util.Properties properties) throws PropertiesException
PropertiesException
Method Detail |
---|
public int getDumpEvery()
private void parse() throws PropertiesException
PropertiesException
private void validatePropertyValues() throws PropertiesException
PropertiesException
public java.util.ArrayList<java.lang.String> getSelectedClasses()
public SOMProperties.SelectedClassMode getSelectedClassMode()
public java.lang.String getClassInfoFileName()
public boolean batchSom()
public int neighbourWidth()
public double learnrate()
public java.lang.String metricName()
public java.lang.String growthQualityMeasureName()
public int numCycles()
public int numIterations()
public int trainedIterations(int numVectors)
numIterations
or numCycles
,
whichever value is set.
public long randomSeed()
FileProperties.randomSeed()
public double sigma()
public double tau()
public int xSize()
public int ySize()
public int zSize()
public int getMinimumFeatureDensity()
public boolean pca()
public Layer.GridTopology getGridTopology()
public Layer.GridLayout getGridLayout()
public java.util.Vector<SOMProperties.DatumToUnitMapping> datumToUnitMappings()
public void writeToFile(java.lang.String dataName, java.lang.String outputDir, boolean normalised) throws java.io.IOException
java.io.IOException
public double[] adaptiveCoordinatesTreshold()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |