Skip to main content
Version: 0.5.x

BCell

Represents a memory B-cell.

Inheritance

This class extends Cell

Module: aisp.base.immune.cell
Import: from aisp.base.immune.cell import BCell


Attributes

NameTypeDefaultDescription
vectornp.ndarray-A vector of cell features.

Public Methods

hyper_clonal_mutate

def hyper_clonal_mutate(
self,
n: int,
feature_type: FeatureType = "continuous-features",
bounds: Optional[npt.NDArray[np.float64]] = None
) -> npt.NDArray:
...

Generate N clones of the current cell and apply hypermutation to the clones.

Parameters

NameTypeDefaultDescription
nint-Number of clones to generate from the original b-cell.
feature_typeFeatureType"continuous-features"Specifies the type of features of the cell.
boundsOptional[npt.NDArray[np.float64]]NoneArray (n_features, 2) with min and max per dimension.

Returns

TypeDescription
npt.NDArrayAn array containing N mutated vectors from the original cell.