public abstract class MachineLearningController extends Object
MachineLearningView and the
MachineLearningModel according to
the MVC Pattern for the machine learning. It implements all methods except
the learn method.| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger
the logger for this class
|
protected MachineLearningModel |
mlModel
the corresponding model
|
protected MachineLearningView |
mlView
the corresponding view
|
| Constructor and Description |
|---|
MachineLearningController() |
| Modifier and Type | Method and Description |
|---|---|
MachineLearningModel |
getMlModel()
returns the corresponding model
|
MachineLearningView |
getMlView()
returns the corresponding model
|
abstract void |
learn(MachineLearningView view)
the abstract learn function to be implemented by the subclasses
|
void |
setMLAlgorithmToModel(String algorithmName)
|
void |
setMlModel(MachineLearningModel mlModel)
sets the corresponding model
|
void |
setMlView(MachineLearningView mlView)
sets the corresponding view
|
protected static org.slf4j.Logger logger
protected MachineLearningView mlView
protected MachineLearningModel mlModel
public MachineLearningView getMlView()
public void setMlView(MachineLearningView mlView)
mlView - corresponding viewpublic void setMLAlgorithmToModel(String algorithmName)
algorithmName - name of the algorithmpublic abstract void learn(MachineLearningView view)
view - corresponding viewpublic MachineLearningModel getMlModel()
public void setMlModel(MachineLearningModel mlModel)
mlModel - corresponding modelCopyright © 2019. All rights reserved.