Abstract R6 base class for all immune-inspired algorithms.
Subclasses must implement the fit method.
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 print()
Print summary of the algorithm.
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)
