public class WTMLearningFunction extends Object
WTMLearningFunction| Constructor and Description |
|---|
WTMLearningFunction(NetworkModel networkModel,
int maxIteration,
MetricModel metrics,
LearningDataModel learningData,
LearningFactorFunctionalModel functionalModel,
NeighbourhoodFunctionModel neighboorhoodFunction)
Creates a new instance of WTMLearningFunction
|
| Modifier and Type | Method and Description |
|---|---|
void |
changeWeight(int neuronNumber,
double[] vector,
int iteration)
Change specified neuron weight
|
int |
getBestNeuron(double[] vector)
Rerturn number of best neuron for specified input vector
|
LearningFactorFunctionalModel |
getFunctionalModel()
Return function model
|
LearningDataModel |
getLearningData()
Return reference to learning data
|
int |
getMaxIteration()
Return maximal number of iteration
|
MetricModel |
getMetrics()
Return metrics
|
NeighbourhoodFunctionModel |
getNeighboorhoodFunction()
Return reference to neighboorhood function
|
NetworkModel |
getNetworkModel()
Return network model
|
boolean |
isShowComments()
Return information if learning process displays information
about learning process.
|
void |
learn()
Start learning process
|
void |
setFunctionalModel(LearningFactorFunctionalModel functionalModel)
Set functional learning factor model
|
void |
setLearningData(LearningDataModel learningData)
Set reference to learning data
|
void |
setMaxIteration(int maxIteration)
Set max interation
|
void |
setMetrics(MetricModel metrics)
Set metrics
|
void |
setNeighboorhoodFunction(NeighbourhoodFunctionModel neighboorhoodFunction)
Set reference to neighboorhood function
|
void |
setNetworkModel(NetworkModel networkModel)
Set network model
|
void |
setShowComments(boolean showComments)
Set if comments during learning process must be shown.
|
public WTMLearningFunction(NetworkModel networkModel, int maxIteration, MetricModel metrics, LearningDataModel learningData, LearningFactorFunctionalModel functionalModel, NeighbourhoodFunctionModel neighboorhoodFunction)
networkModel - reference to network ModelmaxIteration - max number of iterationmetrics - reference to metricslearningData - reference to learning datafunctionalModel - reference to functional ModelneighboorhoodFunction - reference to Neighborhood Functionpublic boolean isShowComments()
public void setShowComments(boolean showComments)
showComments - true if comments must be shown, false otherwisepublic void setNeighboorhoodFunction(NeighbourhoodFunctionModel neighboorhoodFunction)
neighboorhoodFunction - reference to neighboorhood functionpublic NeighbourhoodFunctionModel getNeighboorhoodFunction()
public MetricModel getMetrics()
MetricModelpublic void setMetrics(MetricModel metrics)
metrics - metricspublic void setNetworkModel(NetworkModel networkModel)
networkModel - network modelpublic NetworkModel getNetworkModel()
public void setMaxIteration(int maxIteration)
maxIteration - max interationpublic int getMaxIteration()
public void setLearningData(LearningDataModel learningData)
learningData - reference to learning datapublic LearningDataModel getLearningData()
public void setFunctionalModel(LearningFactorFunctionalModel functionalModel)
functionalModel - functional learning factor modelpublic LearningFactorFunctionalModel getFunctionalModel()
public int getBestNeuron(double[] vector)
vector - input vectorpublic void changeWeight(int neuronNumber,
double[] vector,
int iteration)
neuronNumber - neuron Numbervector - input vectoriteration - iteration numberpublic void learn()
SCaVis 2.2 ©