Abstract R6 base class for all immune-inspired algorithms.
Subclasses must implement the fit method.
Value
An R6Class generator. ImmuneAlgorithm$new()
returns an ImmuneAlgorithm object. It is an abstract base class: use
AINet for a fitted model.
Public fields
repertoireAn
ImmuneRepertoireobject.configNamed list of algorithm hyperparameters.
modulesNamed list of injected module instances (SHMEngine, IdiotypicNetwork, GerminalCenter, etc.).
historyList of per-iteration metrics.
resultThe result from the last call to
fit().
Methods
Method new()
Create a new ImmuneAlgorithm.
Usage
ImmuneAlgorithm$new(config = list(), modules = list())Method fit()
Fit the algorithm to data. Must be overridden by subclasses.
Method predict()
Predict on new data using the trained repertoire.
Method summary()
Get a summary of the fitting history.
Examples
# ImmuneAlgorithm is abstract; use AINet for concrete instances
algo <- ImmuneAlgorithm$new()
print(algo)
#> <ImmuneAlgorithm>
#> (not yet fitted)
