public interface MultiModel
Implementations should be sure to add a call to operations from MultiModelUtility, where necessary
Modifier and Type | Method and Description |
---|---|
BaseModel |
getGenericModel()
Get the model template
|
BaseModel |
getModel(int index)
Get a specific submodel.
|
int |
NModels() |
void |
setGenericModel(BaseModel x)
Set the model template
|
void |
setModel(int index,
BaseModel x)
Set a specific submodel.
|
void |
setNumberOfModels(int n)
Defines the number of models to be trained.
|
int NModels()
void setGenericModel(BaseModel x)
x
- Template model (will be cloned)BaseModel getGenericModel()
void setModel(int index, BaseModel x)
Any implementation should not clone the model. This will allow people to construct a model used already-trained models.
index
- Index of submodel to be setx
- Model to be used (creates a clone)BaseModel getModel(int index)
index
- Model to retrievevoid setNumberOfModels(int n)
n
- Number of models to use