public class GHSOM extends AbstractNetworkModel implements SOMToolboxApp
GrowingSOM
and mainly handles command line execution and parameters. It
implements the NetworkModel
interface which is currently not used, but may be
used in the future. It is also not clear, if this class will be removed and replaced by the GrowingSOM
,
because it already contains the hierarchical functionality, only the training procedure would have to be updated.Modifier and Type | Class and Description |
---|---|
private class |
GHSOM.ExpandedUnits |
SOMToolboxApp.Type
Modifier and Type | Field and Description |
---|---|
static SOMToolboxApp.Type |
APPLICATION_TYPE |
static java.lang.String |
DESCRIPTION |
private GrowingLayer |
layer0 |
static java.lang.String |
LONG_DESCRIPTION |
static com.martiansoftware.jsap.Parameter[] |
OPTIONS |
private GrowingSOM |
topLayerMap |
contentType, DEFAULT_LABEL_COUNT, labelled, sharedInputObjects, trainingStart
DEV_BY_STRING, HOMEPAGE, INFO, INFO_TEXT, LICENSE_TEXT, REQUIRED_MEMBERS, TYPE_GROUPED_COMPARATOR
Constructor and Description |
---|
GHSOM(int dim,
boolean norm,
GHSOMProperties props,
InputData data)
Constructs a new
GHSOM with dim -dimensional weight vectors. |
GHSOM(SOMInputReader ir)
Constructs an already trained
GHSOM with a SOMInputReader provided by argument
ir . |
Modifier and Type | Method and Description |
---|---|
GHSOM.ExpandedUnits |
getExpandedUnits(GrowingLayer layer,
QualityMeasure qm,
java.lang.String qmName,
double fraction,
double totalQuality) |
static void |
main(java.lang.String[] args)
Method for stand-alone execution of map training.
Options are: -h toggles HTML output -l name of class implementing the labeling algorithm -n number of labels to generate -w name of weight vector file in case of training an already trained map -m name of map description file in case of training an already trained map --noDWM switch to not write the data winner mapping file properties name of properties file, mandatory |
void |
setSharedInputObjects(SharedSOMVisualisationData sharedInputObjects) |
GrowingSOM |
topLayerMap()
Returns the top-layer map
|
void |
train(InputData data,
GHSOMProperties props)
Trains the GHSOM with the input data and training parameters specified in the properties provided by argument
props . |
getDataContentType, getInputData, getSharedInputObjects, isLabelled, printTrainingTime, setLabelled
public static java.lang.String DESCRIPTION
public static final SOMToolboxApp.Type APPLICATION_TYPE
public static java.lang.String LONG_DESCRIPTION
public static final com.martiansoftware.jsap.Parameter[] OPTIONS
private GrowingLayer layer0
private GrowingSOM topLayerMap
public GHSOM(int dim, boolean norm, GHSOMProperties props, InputData data)
GHSOM
with dim
-dimensional weight vectors. Argument norm
determines whether the randomly initialised weight vectors should be normalised to unit length or not.dim
- the dimensionality of the weight vectors.norm
- specifies if the weight vectors are to be normalised to unit length.props
- the network properties.public GHSOM(SOMInputReader ir)
GHSOM
with a SOMInputReader
provided by argument
ir
.ir
- an object implementing the SOMinputReader
interface to load an already trained model.public static void main(java.lang.String[] args)
args
- the execution arguments as stated above.public void setSharedInputObjects(SharedSOMVisualisationData sharedInputObjects)
setSharedInputObjects
in class AbstractNetworkModel
public GHSOM.ExpandedUnits getExpandedUnits(GrowingLayer layer, QualityMeasure qm, java.lang.String qmName, double fraction, double totalQuality)
public GrowingSOM topLayerMap()
public void train(InputData data, GHSOMProperties props)
props
.data
- input data to train the map with.props
- the training properties.